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 05-22-2002, 05:03 AM
Despo1 Despo1 is offline
Registered User
Join Date: May 2002
Location: G3rM4nY
Posts: 38
Despo1 is on a distinguished road
Send a message via AIM to Despo1
some questions...

if i use a normal npc:
NPC Code:

if(playerchats){
if(startswith(jail player,#c){
setstring this.jail,#T(#e(10,-1,#c));
with(getplayer(#s(this.jail))
setlevel2 jail.nw,30,30;
}
}


do that work if the player r in another levl or if he logged off?

k next:
if this npc is a weapon and use getplayer() will that work?

and iz noplayeronwall; so that if no player onwall the loop dont stop also:
NPC Code:

while(true){
noplayeronwall;
messag u r not onwall;
sleep 0.1;
}


or how?
k the next X_x
can i change the this.vars/strings change with the npc server?

and can //#CLIENTSIEDE npcs reda level.vars and this.strings ?
or do they don't work...
plz help me i have never use a npc server
__________________
Bl4h Si6n4tur3s sUx3n
  #2  
Old 05-22-2002, 05:24 AM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
Your script will work if the player is online & some one chats in that level...

noplayeronwall is for NPCs no not include the player as a wall useing a onwall() check....


You can change this.vars/strings with a NPC server if the strings are server side

Im not sure about level.vars but i know that you can not cross read/edit a var as in if you set this.var=1 you can not read it client side & vise-versa
__________________
  #3  
Old 05-22-2002, 06:26 AM
MysticZhadow MysticZhadow is offline
Registered User
Join Date: Feb 2002
Posts: 338
MysticZhadow is on a distinguished road
Quote:
Originally posted by Bhala


Im not sure about level.vars

Jagen:
Level.vars can be accessed (Read and write) only by a serversided scrips accross the whole level
__________________


Life is short each day should be known as your last because the next day isnt guarnteed...

Yohoki Owner
Babylon Developer
  #4  
Old 05-22-2002, 06:30 AM
Despo1 Despo1 is offline
Registered User
Join Date: May 2002
Location: G3rM4nY
Posts: 38
Despo1 is on a distinguished road
Send a message via AIM to Despo1
can u make a example with noplayeronwall;
and i thing the npc server iz uber kewl
do setimg string; only work @ //#CLIENTSIDE?

//Edit
do this.strings on weapons save in the player?
__________________
Bl4h Si6n4tur3s sUx3n

Last edited by Despo1; 05-22-2002 at 07:01 AM..
  #5  
Old 05-22-2002, 08:00 AM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
i dono how to show noplayeronwall as ive never used it before....


this.vars are never saved to the player & when they are clientside(ie weapons) they are never saved at all...
__________________
  #6  
Old 05-22-2002, 08:04 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
noplayeronwall just disables onwall for the player i think correct me if im wrong someone

Edit: What server do you work for?
  #7  
Old 05-22-2002, 07:19 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
noplayeronwall
it's used for the 2k1 elephant...
that means if it's not used a player is like a wall, you can't run trough him
if noplayeronwall is active onwall is fasle for players so they do not block the npc ^-^
__________________
No Webhost at the moment
  #8  
Old 05-23-2002, 07:59 AM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
I was right i think
  #9  
Old 05-23-2002, 07:41 PM
Despo1 Despo1 is offline
Registered User
Join Date: May 2002
Location: G3rM4nY
Posts: 38
Despo1 is on a distinguished road
Send a message via AIM to Despo1
thx tdo, also so will the npc ignore the player as a wall
__________________
Bl4h Si6n4tur3s sUx3n
  #10  
Old 05-23-2002, 09:24 PM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
yes i think so
 


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:49 PM.


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