Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Engine Improvements (https://forums.graalonline.com/forums/showthread.php?t=42714)

Tyhm 02-13-2003 02:17 AM

Engine Improvements
 
Some command to pass a parameter to the npc's serverside from clientside and vice versa. Like callnpc 0,string[,string..]; but that works - callnpc 0 on clientside only goes back to the same npc clientside, it seems...

Python523 02-13-2003 02:28 AM

#P(#,index) gany attributes :O

Tyhm 02-14-2003 01:18 AM

That's no better than setting a string...

adam 02-14-2003 06:35 AM

-> What I want. Any surefire way to send data from clientside to serverside and back again. That works between different npc scripts. no matter the type. or where it is. Without using things that are meant for other things.


This does not exist. This is far from existing. >.<

Warcaptain 02-14-2003 07:54 AM

cant you do something liek this:

NPC Code:

if (actionserverside){
with (getnpc(dbnpc)) setstring local.data,#s(this.data);
triggeraction playerx+1,playery+1,load,#w;
}
//#CLIENTSIDE
if (weaponfired) triggeraction 0,0,serverside,weapon,;
if (actionload&&strequals(#p(0),#w)) {
this.data=strtofloat(#s(local.data));
setstring local.data,;
}


Python523 02-14-2003 07:58 AM

Quote:

Originally posted by Warcaptain
cant you do something liek this:

NPC Code:

if (actionserverside){
with (getnpc(dbnpc)) setstring local.data,#s(this.data);
triggeraction playerx+1,playery+1,load,#w;
}
//#CLIENTSIDE
if (weaponfired) triggeraction 0,0,serverside,weapon,;
if (actionload&&strequals(#p(0),#w)) {
this.data=strtofloat(#s(local.data));
setstring local.data,;
}


local strings are clientside ONLY :o

Warcaptain 02-14-2003 08:28 AM

Quote:

Originally posted by Python523

local strings are clientside ONLY :o


YAWN ALL YOU WANT

everyone makes mistakes
especialy when they are drunk, eh jagen, dun worry i wont tell people bout last night

and well then just do client.string, or you could do....


NPC Code:

if (actionserverside){
with (getnpc(dbnpc)) data=this.data;
triggeraction playerx+1,playery+1,load,#w,#v(data);
}
//#CLIENTSIDE
if (weaponfired) triggeraction 0,0,serverside,weapon,;
if (actionload&&strequals(#p(0),#w)) {
this.data=strtofloat(#p(1));
}



happy mr.whatilackinlooksigaininscriptknowlege

Com013 02-16-2003 06:27 AM

Why do you need to set strings? You can pass it using parameters for the triggeraction.

Tyhm 02-16-2003 07:15 AM

Triggeraction is untidy. Another NPC can pass in front of the action location, they can hypothetically be sent a false triggeraction from another clientside NPC...


All times are GMT +2. The time now is 12:39 AM.

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