Issue information

Issue ID
#3559
Status
Duplicate
Severity
None
Started
Hercules Elf Bot
Sep 5, 2009 15:47
Last Post
Hercules Elf Bot
Sep 5, 2009 15:47
Confirmation
N/A

Hercules Elf Bot - Sep 5, 2009 15:47

Originally posted by [b]Blackthunder[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3559

Hi, i figured today out:
When you have a npc lets call Him MonsterSpawner in Prontera(or any other map)
You spawn a monster with event label "MonsterSpawner::OnMobDead" (or any other label) in geffen(same as above every map)
And this NPC has a OnTouch Trigger.

Player kills the monster in geffen, OnMobDead dont get triggered. But label get attached to the monster and you can kill it with killmonster label

So players dont trigger the ontouch because they are in the other map.

Short script to reproduce

CODE
prontera,154,180,6    script    Test::mobtest    -1,2,2,{
if(badringdead == 1) end;
monster "geffen",119,69,"Badring",1002,1,"mobtest::OnMobDead";
initnpctimer;
end;

OnTimer10000:
killmonster "geffen","mobtest::OnMobDead"; //this works
end;

OnMobDead:
set badringdead,1; //this not work
end;
OnTouch:
if(badringdead == 1) { mes "WoW You killed the BadRing!!"; close; } //cant work since var dont get settet.
end;
}


I think its a bug.
PS: dont know why codebox dont likeme, it never work :(
Edit: [codebox ] doesn't work in Bug Tracker. Use [code ]

This post has been edited by BrianL: Sep 5 2009, 06:46 PM