Spawn2 // Itemturn in
Was trying to get an npc to assign the task (which it did) and upon turn in of 4 of the same item it would depop and spawn another mob in its place. Tried several variations and just couldn't figure this out. Where did I go wrong? The elseif part?
Code:
sub EVENT_SAY { |
You are missing a comma in
Code:
quest::spawn2(58083,0,0,$x,$y,$z$h); |
my God... 2 hours of fiddling and it's a comma... lol thank you !
|
Alright, so it was working somewhat and I am running into the following issues:
1. Spawns 2 of the mobs on turn in 2. Spawns the mob when given less than 4 items but stays up 3. Gives double message when less than 4 items turned in 4. Upon completion, it's crashing the zone - log back in and task rewards is on cursor Am I missing some particular rule code ? (I only changed the bottom code and the top remains the same). Code:
sub EVENT_ITEM |
Your spawn command is outside of the if statements so any turn in is going to trigger it.
|
I'm confused what you mean. The spawn2 comes after
Code:
if (plugin::check_handin(\%itemcount, 119782=> 4)) |
Code:
sub EVENT_ITEM |
Def. thought that was part of the top code needed. Didn't realize it was an actual code line.. :? thank you !
|
All times are GMT -4. The time now is 12:43 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.