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 11-23-2004, 03:16 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
Quote:
Originally Posted by Salaisuus
Hrmh how come simple if flag is true script like this doesnt work online?

if (serverr.flaggy) {setimg picture.gif; y=24;}
how are setting the flag, offline if you just did
PHP Code:
set serverr.flag
it would set it as a player flag, how ever online it tries to set it as a server flag, but sence it has no value it just deletes the string, however if you set it as
PHP Code:
setstring serverr.flag,true
and are checking just the name as you are above it will come back false cause the value attached to the flag is 'true'. therefore you'd have to set and check it like so.
PHP Code:
if(createdsetstring serverr.flag,true;

if(
strequals(#s(serverr.flag),true)) {
    
setimg picture.gif;
    
y=24;

although serverr.flags have to be set serverside, you can still check them clientside as well as serverside
Quote:
Im not sure if I should use server. or serverr.
the diffrence between server.flags and serverr.flags is that serverr.flags can only be edited serverside.

Quote:
Originally Posted by Kaimetsu
Please, learn about the NPC Server before trying to code for it.
I gather thats what hes doing here, tring to understand better is what this forum is for.
__________________

Reply With Quote
  #2  
Old 11-23-2004, 03:50 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by ZeroTrack
sence it has no value it just deletes the string
No one is talking about strings.
Reply With Quote
  #3  
Old 11-23-2004, 04:03 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
Quote:
Originally Posted by Loriel
No one is talking about strings.
im pretty sure server flags HAVE to be strings..... considering thats what hes talking about, or are you just out to try and put me down for some unknown reason?
__________________

Reply With Quote
  #4  
Old 11-23-2004, 06:02 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by ZeroTrack
I gather thats what hes doing here, tring to understand better is what this forum is for.
Man, you ignored the entire latter half of my text.

Quote:
Originally Posted by ZeroTrack
the diffrence between server.flags and serverr.flags is that serverr.flags can only be edited serverside
And that's utterly wrong.
__________________
Reply With Quote
  #5  
Old 11-23-2004, 06:17 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
Quote:
Originally Posted by Kaimetsu
And that's utterly wrong.
thats the diffrence that only pertained to this matter, are there other diffrences yes , but it is true that r flags if there clientr. flags or serverr. flags they can only be edited in serverside thats why there mostly used now for custom money and hp systems cause the way hackers USED to hack money is by somehow putting one of their weapons in a level (this is also why toweapons is considered a hacking command if you watch RC when you touch a weapon with that in it , it will warn you) and have it drop tons of money, now even if they tried that they can't add weapons, and even if they tried to change the flag if they figured it out, trainers can only work clientside , there is no way to edit those flags unless done serverside.
__________________

Reply With Quote
  #6  
Old 11-23-2004, 06:22 PM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Quote:
Originally Posted by ZeroTrack
thats the diffrence that only pertained to this matter, are there other diffrences yes , but it is true that r flags if there clientr. flags or serverr. flags they can only be edited in serverside thats why there mostly used now for custom money and hp systems cause the way hackers USED to hack money is by somehow putting one of their weapons in a level (this is also why toweapons is considered a hacking command if you watch RC when you touch a weapon with that in it , it will warn you) and have it drop tons of money, now even if they tried that they can't add weapons, and even if they tried to change the flag if they figured it out, trainers can only work clientside , there is no way to edit those flags unless done serverside.
[DOESNT-KNOW-GSCRIPT-SO-WILD-THOUGHT]
Isnt clientr. only READABLE by the client, preventing writing (e.g: Editing by the client to cheat/abuse)
Cant think of how to apply it to serverr flags, but its the same sort of read protection I think. But without knowledge on how its wrote to, to change it, I can't have a wild thought on it. [/DOESNT-KNOW-GSCRIPT-SO-WILD-THOUGHT]
__________________
--Spark911
Reply With Quote
  #7  
Old 11-23-2004, 06:33 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
This is very sad.

No type of server flag can be edited clientside. The only distinction between server and serverr flags is that the latter can be read by the client.
__________________
Reply With Quote
  #8  
Old 11-23-2004, 06:44 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
Quote:
Originally Posted by Kaimetsu
This is very sad.

No type of server flag can be edited clientside. The only distinction between server and serverr flags is that the latter can be read by the client.
i said that.......i said it can ONLY be edited serverside, please read up more.
__________________

Reply With Quote
  #9  
Old 11-23-2004, 06:46 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by ZeroTrack
i said that.......i said it can ONLY be edited serverside, please read up more.
Both can only be edited serverside, you buffoon.
__________________
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:44 PM.


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