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, 02:13 AM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
server flags... My things never work online...

Hrmh how come simple if flag is true script like this doesnt work online?

if (serverr.flaggy) {setimg picture.gif; y=24;}

Simple as that. I need a server flag to change image on an npc.
Client or server side it doesnt work online.
Im not sure if I should use server. or serverr.

Curse the npc server. I never tought it could mess up a script so simple.

I propably need to do some trigger action and function crazyness again but Im not realy sure how...
Reply With Quote
  #2  
Old 11-23-2004, 02:58 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Please, learn about the NPC Server before trying to code for it.
__________________
Reply With Quote
  #3  
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
  #4  
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
  #5  
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
  #6  
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
  #7  
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
  #8  
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
  #9  
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
  #10  
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
  #11  
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
  #12  
Old 11-23-2004, 07:13 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
Both can only be edited serverside, you buffoon.
sence when , i dont remember them both, and buffoon is heading you back to preschool maturity. besides i really dont use server flags cause they're laggy and useless, as far as the r part i was just using my knowledge from clientr. flags cause they can only be edited serverside. thanks for showing your true immature side, if you can't give any insight without making a lame atempt to insult someone maybe you should'nt comment at all.
__________________

Reply With Quote
  #13  
Old 11-23-2004, 07:41 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
sence when , i dont remember them both
That's hardly my fault.

Quote:
buffoon is heading you back to preschool maturity
It's easy to say that, but what is so immature about using choice insults? And what excuses you from the rule?

In any case, I would have been more restrained if you had not suggested that I had failed to read your post.

Quote:
besides i really dont use server flags cause they're laggy and useless
Oh man. You really shouldn't be attempting to advise people in this forum.
__________________
Reply With Quote
  #14  
Old 11-23-2004, 08:22 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
Oh man. You really shouldn't be attempting to advise people in this forum.
ok thats why i've helped more people here, why don't you just insult them cause thats the cool thing to do, and hey if your so great... how come your not gobal? cause i think part of being gst is to help people not insult them, which most of your posts are, hence i dont think you should be tring to give any advice what so ever , as far as i am considered your just a washed up g2k1 scripter
__________________

Reply With Quote
  #15  
Old 11-23-2004, 08:26 PM
Zero Hour Zero Hour is offline
Stiff Upper Lip
Zero Hour's Avatar
Join Date: Oct 2006
Location: Nova Scotia, Canada
Posts: 0
Zero Hour is on a distinguished road
Send a message via AIM to Zero Hour
You're starting to annoy me, Sern.
__________________
Reply With Quote
  #16  
Old 11-23-2004, 08:31 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 Zero Hour
You're starting to annoy me, Sern.
who are you.... and how am i getting annoying when im pointing out facts or does everyone seem to have a personal problem with me
__________________

Reply With Quote
  #17  
Old 11-23-2004, 09:00 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
ok thats why i've helped more people here
Than me? Not a chance, junior. But I really don't think this should be a competition on how many people we've helped. We should at least include all the ones you've hindered.

Quote:
hey if your so great... how come your not gobal?
Because I voluntarily quit the GST?

Quote:
i dont think you should be tring to give any advice what so ever
It seems that I'm more qualified for it than you. Does bad advice become better than good advice if it's accompanied by a smile?

Quote:
as far as i am considered your just a washed up g2k1 scripter
Haha! As far as I'm concerned, you're just a nobody desperately trying to convince himself that he has some relative worth despite lacking the skill to back it up.
__________________
Reply With Quote
  #18  
Old 11-23-2004, 09: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
whatever dude , why dont you keep insulting people at least we all know who has the more maturity , if you believe your more qualified than me i'd be happy to prove your not , i've prob been scripting for graal for about prob as long as you, 4 years , im not tring to prove anything little boy i m just tring to help people, and for your information i haven't hindered 1 person on this entire forum.
__________________

Reply With Quote
  #19  
Old 11-23-2004, 09:16 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
why dont you keep insulting people at least we all know who has the more maturity
Yes: The one that isn't pretending to be something he's not. You yap about maturity and whine about insults, but then you show yourself to be a hypocrite by insulting me back. Personally I don't think that willingness to insult should necessarily be a factor in determining maturity, but if it were then you'd be just as guilty as I.

Quote:
if you believe your more qualified than me i'd be happy to prove your not , i've prob been scripting for graal for about prob as long as you, 4 years
Perhaps so, but you don't seem to have learned much from it.

Quote:
im not tring to prove anything little boy
When I first read this statement I laughed out loud, because I had guessed from your typing and your arguments that you were about fifteen at the most. Then I checked your actual age and laughed even more

Quote:
for your information i haven't hindered 1 person on this entire forum.
That kind of claim doesn't usually work when it's made in a thread where you've already given inaccurate advice.
__________________
Reply With Quote
  #20  
Old 11-23-2004, 09:22 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
just drop it this is stupid, were all here for the same reason i dont know why people have to argue like this
__________________

Reply With Quote
  #21  
Old 11-23-2004, 09:53 PM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
It's because Kai has no life besides arguing with people
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #22  
Old 11-23-2004, 10:00 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 dont know why people have to argue like this
Then some honest introspection is required.

Quote:
Originally Posted by falco10291029
It's because Kai has no life besides arguing with people
Well, my life is certainly very much different to yours, but I don't think that is a negative factor
__________________
Reply With Quote
  #23  
Old 11-23-2004, 10:51 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Dear Sern,
please remove the "&& Scripting Judge" from your title. It holds no meaning.
With regards, Chad
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #24  
Old 11-23-2004, 11:08 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
I think it was 2 years ago or maybe 3 when I was like woah look it's Sern. Now he's arguing with the forum's most popular/smartest/arguative people and trying to win a losing battle.
__________________
Reply With Quote
  #25  
Old 11-23-2004, 11:14 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 Dach
Dear Sern,
please remove the "&& Scripting Judge" from your title. It holds no meaning.
With regards, Chad
whats that have to do with anything i believe its personal choice what goes there , i m really not looking for a "title". With regards, Sern

Quote:
Originally Posted by Gerami
I think it was 2 years ago or maybe 3 when I was like woah
look it's Sern. Now he's arguing with the forum's most popular/smartest/arguative people and trying to win a losing battle.
__________________

Reply With Quote
  #26  
Old 11-23-2004, 11:17 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
if you guys are going to try and argue against Kai's personal agenda or whatever, take it to pms, it doesn't concern any of us
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #27  
Old 11-24-2004, 04:59 AM
falco10291029 falco10291029 is offline
BEst User EVER!
Join Date: Apr 2004
Posts: 1,186
falco10291029 is on a distinguished road
Yes it does, since Kai argues with pretty much anyone
__________________
BEst Insult ever: If I had a dollar for every brain you DIDNT have, i'd have one dollar!
Reply With Quote
  #28  
Old 11-24-2004, 05:06 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Salaisuus, if you want to read any sort of server.flag, you have to set said flag serverside. You cannot set server. or serverr. flags clientside. It is this way for security reasons.


Sern, please refer to rule 4 of this forum.
Reply With Quote
  #29  
Old 11-24-2004, 05:07 AM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
BABABABAABA lost of useless talk in my topic.

Anyhow, the script works now so thanks.

As for the rest... Well Im sure I have said this before but I wish that people would just post scripting related messages in this forum and leave the "ur dumb u stupid smel hed" messages out of it.
Reply With Quote
  #30  
Old 11-24-2004, 05:30 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 Lance
Sern, please refer to rule 4 of this forum.
im not giving bad advice! the only thing i was "wrong" on was the fact that BOTH have to be changed serverside i believe i was dead right on everything else
__________________

Reply With Quote
  #31  
Old 11-24-2004, 10:28 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
He has got it to work, Close this thread.
__________________
Reply With Quote
  #32  
Old 11-24-2004, 04:30 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
im not giving bad advice! the only thing i was "wrong" on was the fact that BOTH have to be changed serverside
So this statement:

"the diffrence between server.flags and serverr.flags is that serverr.flags can only be edited serverside"

Was bad advice, no?

Quote:
Originally Posted by xAndrewx
He has got it to work, Close this thread.
Ugh, more backseat moderators.
__________________
Reply With Quote
  #33  
Old 11-24-2004, 06:44 PM
Zero Hour Zero Hour is offline
Stiff Upper Lip
Zero Hour's Avatar
Join Date: Oct 2006
Location: Nova Scotia, Canada
Posts: 0
Zero Hour is on a distinguished road
Send a message via AIM to Zero Hour
Quote:
Originally Posted by Kaimetsu
Ugh, more backseat moderators.
We can't do much more than backseat moderate, besides it's relatively fun.
__________________
Reply With Quote
  #34  
Old 11-24-2004, 07:48 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
So this statement:

"the diffrence between server.flags and serverr.flags is that serverr.flags can only be edited serverside"

Was bad advice, no?
That not 100% true =p, all my advice was good except that which i didnt know cause like i said i dont use server flags, anything needing anything like that i use db npc's i havent used server flags sence i scripted on sanstrata about 3 years ago, i just used my knowledge about clientr. flags for that, cause it sounded right in my head =p
__________________

Reply With Quote
  #35  
Old 11-24-2004, 08:42 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
"ALL MY ADVICE WAS GOOD EXCEPT IT WAS partially WRONG"
Reply With Quote
  #36  
Old 11-24-2004, 09:15 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
all my advice was good except that which i didnt know
So the remainder was bad advice, yes?
__________________
Reply With Quote
  #37  
Old 11-24-2004, 11:48 PM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by Zero Hour
We can't do much more than backseat moderate, besides it's relatively fun.
PMing a moderator is an option.

That does not, however, mean that I will close a thread for a silly reason.

Quote:
Originally Posted by ZeroTrack
That not 100% true =p, all my advice was good except that which i didnt know cause like i said i dont use server flags, anything needing anything like that i use db npc's i havent used server flags sence i scripted on sanstrata about 3 years ago, i just used my knowledge about clientr. flags for that, cause it sounded right in my head =p
Here's a simple idea: if you don't know what you're doing, don't give advice. That's all I ask.
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 08:34 PM.


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