Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-29-2006, 07:13 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Databases: clientside > serverside

How can I transfer data from the clientsided part in a db to the serversided part?

Ive tried setting server strings (didnt work), trigger actions, set flags without lead... I dont think I did anything wrong, but, please tell me how you would do it.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #2  
Old 09-29-2006, 07:20 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
client -> server = triggeraction(x, y, "ACTION", PARAMS);

-> Should work w/ a setshape <-
Reply With Quote
  #3  
Old 09-29-2006, 02:30 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
this.trigger() probably works aswell.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #4  
Old 09-29-2006, 03:04 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
The thing is, I tried both of them and also had another person look at the script to spot any errors, and none of us could..

On the clientsided part, its a showcharacter(); - so I doubt setshape is needed?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #5  
Old 09-29-2006, 06:05 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
save[0] ... save[9]

example
PHP Code:
function onCreated(){
  if(
save[0] == 1) echo("Debug: String was saved");
}
//#CLIENTSIDE
function onCreated() save[0] = 1
__________________


Last edited by ZeroTrack; 09-29-2006 at 06:16 PM..
Reply With Quote
  #6  
Old 09-29-2006, 08:57 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Quote:
Originally Posted by ZeroTrack View Post
save[0] ... save[9]

example
PHP Code:
function onCreated(){
  if(
save[0] == 1) echo("Debug: String was saved");
}
//#CLIENTSIDE
function onCreated() save[0] = 1
Save never works for me =(
Reply With Quote
  #7  
Old 09-29-2006, 09:55 PM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Maybe your using it incorrectly? Show me how you'd use it and i'll see if anything is wrong.
__________________

Reply With Quote
  #8  
Old 09-30-2006, 09:29 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
save's can only be set serversided, and I want to send information FROM clientside to serverside.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #9  
Old 10-01-2006, 02:11 AM
ZeroTrack ZeroTrack is offline
G2K1 Developer
ZeroTrack's Avatar
Join Date: Apr 2004
Location: LongIsland, NY
Posts: 402
ZeroTrack is on a distinguished road
Send a message via AIM to ZeroTrack
Negitive , i've used save clientside many times.
__________________

Reply With Quote
  #10  
Old 10-01-2006, 02:48 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Well, Maloria Dev's NPC server was.. old and outdated, thats why nothing I tried worked. Now I dont even need to send the data from clientside to serverside, because what I was trying to do works serverside.
__________________
Follow my work on social media post-Graal:Updated august 2025.
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 04:15 PM.


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