Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   NPCServer Commands and offline mode (https://forums.graalonline.com/forums/showthread.php?t=19063)

Faheria_GP2 12-17-2001 01:29 AM

NPCServer Commands and offline mode
 
okay, I am getting awfully tired of trying to debug my scripts in offline mode and having NPCServer commands, so here is my list of how each NPCServer command should be delt with in offline mode

with (getplayer()) {} = should operate if the account matches the player's

this.strings = simply just add them (this is obviously possible)

canwarp,canwarp2,cannotwarp = these will be just dummy commands

join classname = again, a dummy command

warpto level,x,y = yet another dummy command

If these things were added to offline mode, it would be vast amounts of helpful in testing NPCServer scripts in offline mode

KJS 12-17-2001 01:37 AM

Re: NPCServer Commands and offline mode
 
Quote:

Originally posted by Faheria_GP2
okay, I am getting awfully tired of trying to debug my scripts in offline mode and having NPCServer commands, so here is my list of how each NPCServer command should be delt with in offline mode

with (getplayer()) {} = should operate if the account matches the player's

this.strings = simply just add them (this is obviously possible)

canwarp,canwarp2,cannotwarp = these will be just dummy commands

join classname = again, a dummy command

warpto level,x,y = yet another dummy command

If these things were added to offline mode, it would be vast amounts of helpful in testing NPCServer scripts in offline mode

well if I remeber correctly you can say
NPC Code:

if(created){
followplayer;
canwarp;
}



then it will follow you to any level (but this code will only work offline)

Faheria_GP2 12-17-2001 01:51 AM

yes, it does work, but you get "error: Unknown command: canwarp" so you can't put any commands after it

zell12 12-17-2001 04:18 AM

why can't p2p and non-p2p scripting just be the same :grrr:

Faheria_GP2 12-17-2001 07:27 AM

Quote:

Originally posted by zell12
why can't p2p and non-p2p scripting just be the same :grrr:
...i will make a revolution not to insult you here...but in order for P2P to have all the neat features it does, it needs different commands...

AlexH 12-17-2001 07:36 AM

p2p and non p2p scripting are the same
p2p scripting just has more neat commands to make life easier

Slaktmaster 12-17-2001 02:28 PM

okay alexh

p2p scripting is the same because p2p has more commands, k

:rolleyes:

btedji 12-17-2001 11:30 PM

Stefan is ever so slowly removing free play online

Andor_NPC-Admin1 12-18-2001 01:24 AM

Client side scripting for p2p servers is totally the same as scripting for non p2p. The server side part of scripting is what everyone messes up on =)


All times are GMT +2. The time now is 08:53 AM.

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