New Lua Function: GetPet(Spawn)

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: GetPet(Spawn)

Post by Jabantiz » Sun Sep 30, 2012 5:26 pm

This will return the pet of the given spawn.

Code: Select all

function cast(Caster, Target, PetID)
	SummonPet(Caster, PetID)
	pet = GetPet(Caster)
	SetSpellList(pet, 1)
end

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests