Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   server flags... My things never work online... (https://forums.graalonline.com/forums/showthread.php?t=56127)

Salaisuus 11-23-2004 02:13 AM

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...

Kaimetsu 11-23-2004 02:58 AM

Please, learn about the NPC Server before trying to code for it.

ZeroTrack 11-23-2004 03:16 AM

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.

Loriel 11-23-2004 03:50 PM

Quote:

Originally Posted by ZeroTrack
sence it has no value it just deletes the string

No one is talking about strings.

ZeroTrack 11-23-2004 04:03 PM

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?

Kaimetsu 11-23-2004 06:02 PM

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.

ZeroTrack 11-23-2004 06:17 PM

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.

Spark910 11-23-2004 06:22 PM

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]

Kaimetsu 11-23-2004 06:33 PM

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.

ZeroTrack 11-23-2004 06:44 PM

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.

Kaimetsu 11-23-2004 06:46 PM

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.

ZeroTrack 11-23-2004 07:13 PM

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.

Kaimetsu 11-23-2004 07:41 PM

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.

ZeroTrack 11-23-2004 08:22 PM

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

Zero Hour 11-23-2004 08:26 PM

You're starting to annoy me, Sern.


All times are GMT +2. The time now is 11:12 PM.

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