So im making this capture the flag event and I am starting on the blue teams base, so basically, i disabled the flag to be moved from blue teams spot, but i made it to where if red team touches it, it goes to the playersx,y. Now, between the blue base and the red base, there are 3 levels you gotta pass, and for some reason, when you leave the blue teams base, the flag stops right before the link to the next room.
someone help me fix it, to where no matter what ctf level you go to, it will follow the player until the red base.
here is the script, btw I have the image npc on graal editor joined to a class, heres the class script:
PHP Code:
function onPlayerTouchsMe()
{
if (player.guild == "Red Team")
{
dontblock;
x=player.x;
y=player.y;
}
else
player.addMsg("I must be in Red Team to take this flag");
}
I would appreciate the help [;