Quote:
Originally Posted by joligario
Yes, you would spawn it in perl upon task completion.
If you want to use globals, this might be what you are trying to do:
(untested)
Code:
sub EVENT_DEATH {
if (defined($qglobals{orcpawndeath}) {
quest::setglobal("orcpawndeath",$qglobals{orcpawndeath}+1,0,"F");
}
else {
quest::setglobal("orcpawndeath",1,0,"F");
}
if ($qglobals{orcpawndeath} == 4) {
quest::setglobal("orcpawndeath",0,0,"F");
quest::unique_spawn(999149,0,0,1652,1535,-9,69);
}
}
|
Ill give it a try and see if i can get it to work. I just realized i dont need it to be for each player, just server wide so whenever all 4 orcs are dead at the same time the mob spawns.
Lemme see if i understand what your doing here so i actually learn and dont have to beg people to write scripts for me lol.
If its defined you set it to orcpawndeath +1, if its not defined you just set it to 1, when it hits 4, you reset it and spawn the mob. Do i have to enter this variable in to the database at all or just enable the qglobals on the mob like you said before