Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-13-2006, 12:54 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
Post Triggers

I'm triggering the server to get info on another player and this is what is in the server options.

PHP Code:
function onActionServerside(){
if (
params[0] == "getinfo"){
for (
aallplayers){
with (a){
if (
== params[1]){
setstring("this.kills"clientr.b031504k);
setstring("this.deaths"clientr.b031504d);
setstring("this.money"clientr.money572R7S);
setstring("this.hp"client.hp);
setstring("this.maxhp"clientr.mhp);
setstring("this.guild"clientr.tagon);
setstring("this.ec"client.etcoins);
}
}
}
}
triggerAction(0,0"clientside""Tools/Police Tool""gotinfo"this.killsthis.deathsthis.moneythis.hpthis.maxhpthis.guildthis.ec);

And here is how the clientside part reads it

PHP Code:
function onActionClientside(){
if (
params[0] == "gotinfo"){
info1 params[1];
info2 params[2];
info3 params[3];
info4 params[4];
info5 params[5];
info6 params[6];
info7 params[7];
}


When i read the info(1-6) parts it shows MY stats and not the other players :/ help plz
__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin
Reply With Quote
  #2  
Old 02-13-2006, 01:33 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
I would take a look at this.

Also, you don't have to go through every player to get one.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 02-13-2006, 01:46 AM
talkingnoodle talkingnoodle is offline
Rapidwolve
talkingnoodle's Avatar
Join Date: Nov 2005
Location: Leominster, MA
Posts: 229
talkingnoodle is on a distinguished road
Send a message via AIM to talkingnoodle Send a message via MSN to talkingnoodle
I understand why you sent me that site, is it becuase of the setstring()? If it is I already know I can just use this.blah = watever, but for some reason I just changed setstring.
__________________


AIM: Rapidwolve Graal
MSN: [email protected]


2/12/06 - Crossroads NPC Admin
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:58 AM.


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