New Lua Function: SummonPet(Spawn, int32)

Discussions on development of both the EQ2Emulator LUA Script Engine and Script specifications

Moderator: Team Members

Post Reply
Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

New Lua Function: SummonPet(Spawn, int32)

Post by Jabantiz » Wed Sep 26, 2012 8:30 pm

This is meant to be used for spell scripts, it will summon a combat pet. The first param is the caster, whoever the pet will belong to, the second is the DB id of the pet, can use any npc in the spawn table. I modified the necro pet spell Undead Knight to pass a single value to the spell script, the DB id of some random skeleton, and changed the spell script to the following

Code: Select all

function cast(Caster, Target, PetID)
	SummonPet(Caster, PetID)
end
This will spawn the pet at the casters location. This code will be on Dev SVN tonight.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests