SHOW:
|
|
- or go back to the newest paste.
1 | if (intid == 25) then | |
2 | pPlayer:DismissPet() | |
3 | - | pUnit:SpawnCreature(1513, pUnit:GetX(), pUnit:GetY(), pUnit:GetZ(), pUnit:GetO(), 0, 0, 35, 0, 0) |
3 | + | local pet = pUnit:SpawnCreature(1513, pUnit:GetX(), pUnit:GetY(), pUnit:GetZ(), pUnit:GetO(), 0, 0, 35, 0, 0) |
4 | - | pUnit:GetCreatureNearestCoords(pUnit:GetX(), pUnit:GetY(), pUnit:GetZ(), 1513) |
4 | + | if(pet) then |
5 | - | pUnit:SetPetOwner(pPlayer) |
5 | + | pet:SetPetOwner(pPlayer) |
6 | end | |
7 | pPlayer:GossipComplete() |