Graal Forums

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

Despo1 05-22-2002 05:03 AM

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 :(

Bhala 05-22-2002 05:24 AM

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

MysticZhadow 05-22-2002 06:26 AM

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

Despo1 05-22-2002 06:30 AM

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?

Bhala 05-22-2002 08:00 AM

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...

user13-xo 05-22-2002 08:04 AM

noplayeronwall just disables onwall for the player i think correct me if im wrong someone

Edit: What server do you work for?

TDO2000 05-22-2002 07:19 PM

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 ^-^

user13-xo 05-23-2002 07:59 AM

I was right i think :D

Despo1 05-23-2002 07:41 PM

thx tdo, also so will the npc ignore the player as a wall :)

user13-xo 05-23-2002 09:24 PM

yes i think so


All times are GMT +2. The time now is 10:52 PM.

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