Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-17-2001, 01:29 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
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
  #2  
Old 12-17-2001, 01:37 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
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)
__________________
Thanks,
-KJL
  #3  
Old 12-17-2001, 01:51 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
yes, it does work, but you get "error: Unknown command: canwarp" so you can't put any commands after it
  #4  
Old 12-17-2001, 04:18 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
why can't p2p and non-p2p scripting just be the same :grrr:
__________________
  #5  
Old 12-17-2001, 07:27 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
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...
  #6  
Old 12-17-2001, 07:36 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
p2p and non p2p scripting are the same
p2p scripting just has more neat commands to make life easier
__________________
QUICK LOOK BUSY JESUS IS COMING!
  #7  
Old 12-17-2001, 02:28 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
okay alexh

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

  #8  
Old 12-17-2001, 11:30 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Stefan is ever so slowly removing free play online
  #9  
Old 12-18-2001, 01:24 AM
Andor_NPC-Admin1 Andor_NPC-Admin1 is offline
Registered User
Join Date: Nov 2001
Posts: 69
Andor_NPC-Admin1 is on a distinguished road
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 =)
 


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 07:54 AM.


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