Originally posted by [b]Saithis[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3535
Edit:
just ignore that Q_Q
if you would change that, you couldn't escape from an OnTouch NPC xD *forgot that*I made this little script: (I know, that this script should better not run on a live server^^)
CODE
prontera,160,190,4 script Hallo -1,1,1,{
end;
OnTouch:
if(!HP) end;
set $@flaghoulder,getcharid(3);
while($@flaghoulder == getcharid(3) && HP){
specialeffect2 20;
sleep2 5;
getmapxy(.@map$,.@x,.@y,0);
disablenpc "Hallo";
movenpc "Hallo",.@x,.@y;
sleep2 5;
enablenpc "Hallo";
}
end;
}
and I think I found a bug here
you need 2 players and player B doesn't move at all while the next steps
1. Player A runs over the NPC and the NPC follows him
2. Player A runs through Player B -> Player B triggers the OnTouch and now has the effect on him
3. Player A runs through Player B -> Player A triggers the OnTouch and gets the effect back
4. Player A again runs through Player B, but nothing happens!!
I think this happens, because sd->areanpc_id doesn't get set to 0 if you don't move
Is this working as intended, or is it a bug?
This post has been edited by Saithis: Aug 26 2009, 02:21 PM