Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   Warpto (https://forums.graalonline.com/forums/showthread.php?t=23483)

Python523 02-10-2002 11:48 AM

Warpto
 
I just really got into NPC Server scripting and I need a little help, I can't get this NPC to warp and can someone tell me if they see any errors in this script:
if (playerchats&&startswith(Warp,#c))
{tokenize #c;
warpto #t(1),strtofloat(#t(2)),strtofloat(#t(3));
}

BTW: Yes I had it added in the NC correctly

SaijinGohan 03-08-2002 08:03 PM

I thought warpto was just x,y stuff. Also is this a weapon or a level based NPC?

cell424 03-09-2002 04:24 AM

This might help.
 
I dont know if this would help, but it should.
if (playerchats&&startswith(Warp,#c)) {
tokenize #c;
if (tokenscount==4) {
warpto #t(1),strtofloat(#t(2)),strtofloat(#t(3));
}
}

Python523 03-09-2002 04:27 AM

I figured it out awhile ago...I had forgot to put the canwarp or canwarp2, forgot which one it was

SaijinGohan 03-09-2002 04:33 AM

Very odd.


All times are GMT +2. The time now is 04:43 AM.

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