Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-12-2009, 02:43 AM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
event script help

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 [;
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.