Can you Use a value "Example A0" to define a Flag ??

Mu online season 21 - grand opening

truefyt

Dedicated Member
Dedicated Member
May 11, 2007
17
0
27
Something like this :

LoadValue A0 " ........\Flag.txt" [Flag] [Num]
then
Set [A0] #
*-*-*-*-*-*-*-*-*-*
Inside flag.txt
[Flag]
Num=800
*-*-*-*-*-*-*-*-*-*
Thats mean Flag 800 will be set whit #
There is a way to do that ???
 

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
Yeah, just have a quick browse through the files, that sort of thing is used in numerous locations, if you are still stuck, post again, and one of us will sort you out.
 
Upvote 0

truefyt

Dedicated Member
Dedicated Member
May 11, 2007
17
0
27
well i tried , but always have the same error

11:39:05:Script error at #ACT: "SET ["D1"] 1"
11:45:05:Script error at #ACT: "SET [%D1] 1"
11:49:05:Script error at #ACT: "SET [D1] 1"
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
The Target File in this case.. "QuestDiary\System\FlagInfo\Flags.txt".. contains something like this

Code:
[Sting]
FlagA=1
FlagB=17
[idaBigA]
FlagA=11
FlagB=7
etc

Load a Value

Code:
#ACT
Mov A0 %USERNAME
LoadValue D1 "QuestDiary\System\FlagInfo\Flags.txt" [%A0] FlagA
LoadValue D2 "QuestDiary\System\FlagInfo\Flags.txt" [%A0] FlagB

Save a Value

Code:
#ACT
Mov  A1  %USERNAME
Mov  N1  5  ;Whatever you want to save in it
SaveValue "QuestDiary\System\FlagInfo\Flags.txt" [%A1] FlagA  %N1
 
Upvote 0

truefyt

Dedicated Member
Dedicated Member
May 11, 2007
17
0
27
Thx Idabiga ... i will tell you later if the scrips work fine ... thx so much.
 
Upvote 0

truefyt

Dedicated Member
Dedicated Member
May 11, 2007
17
0
27
Thx so much for your help, i was able to create a HouseSystem and HouseKeeper without keys ;)
 
Upvote 0