Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-13-2003, 02:17 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
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...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #2  
Old 02-13-2003, 02:28 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
#P(#,index) gany attributes :O
Reply With Quote
  #3  
Old 02-14-2003, 01:18 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
That's no better than setting a string...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #4  
Old 02-14-2003, 06:35 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura about
Send a message via AIM to adam
-> 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. >.<
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #5  
Old 02-14-2003, 07:54 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to 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,;
}

Reply With Quote
  #6  
Old 02-14-2003, 07:58 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
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
Reply With Quote
  #7  
Old 02-14-2003, 08:28 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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
Reply With Quote
  #8  
Old 02-16-2003, 06:27 AM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Why do you need to set strings? You can pass it using parameters for the triggeraction.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #9  
Old 02-16-2003, 07:15 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
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...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
Reply


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 05:54 PM.


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