Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   flags and differentiating them (https://forums.graalonline.com/forums/showthread.php?t=32030)

Warcaptain 06-21-2002 10:36 AM

flags and differentiating them
 
ok....... im trying to make chests that when you open then set a flag that says the x,y and levelname of the cehst, like in offline mode (of course without #) but its not possible it seems

for one.... #letterhere() declarations dont work in flag setting

and another thing.. they dont work in flag detection.

i hope theres a way to do this, other than making a string array or individualy changing the flag for each chest...

Warcaptain 06-22-2002 02:19 AM

yes but there are 80 of this particular chest..


i dont want to have 80 values in a string array, that will lag...

mikepg 06-23-2002 09:53 PM

hmm
 
I can't imagine it lagging too badly....Personally, Having 80 values in a string is MUCH nicerlooking than having 80 flags take up the whole window...but that's just my opinion.

Or, like Kam said...do something like

NPC Code:

if (playertouchsme) {
setstring client.chest_#F_#v(x)_#v(y),open;
}




That Would actlike a flag, and instead of checking if it's true, you'd just check to see if it's "open"
:)

Warcaptain 06-24-2002 03:02 AM

Re: hmm
 
Quote:

Originally posted by mikepg
I can't imagine it lagging too badly....Personally, Having 80 values in a string is MUCH nicerlooking than having 80 flags take up the whole window...but that's just my opinion.

Or, like Kam said...do something like

NPC Code:

if (playertouchsme) {
setstring client.chest_#F_#v(x)_#v(y),open;
}




That Would actlike a flag, and instead of checking if it's true, you'd just check to see if it's "open"
:)

but i want to set the flag: #co#chestx#chesty#chestlevel

so it will show up in chest list >_<

Cybnext 06-24-2002 03:27 AM

Re: Re: hmm
 
Quote:

Originally posted by Warcaptain


but i want to set the flag: #co#chestx#chesty#chestlevel

so it will show up in chest list >_<

Want me to ask stefan to add string handling in flag setting since he is adding new stuff sometime soon?


All times are GMT +2. The time now is 03:31 AM.

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