Finding a mob's Spawn Group
I'm trying to find a way to get the Spawn Group ID (or even better yet, a Spawn Point ID) for an NPC in a quest. This is what I have found so far:
Quote:
Code:
NPCCode:
my $spawngroup = $npc->GetSp2();Quote:
Code:
my $spawngroup = $mob->CastToNPC()->GetSp2();Code:
$spawngroup = $npc->GetSp2(); |
Put the variable inside the event and it will work.
Code:
sub EVENT_DEATH { |
Thanks Thepeer, that did it :-)
|
| All times are GMT -4. The time now is 04:36 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.