NPC flags don't work..

Mu online season 21 - grand opening

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
125
New york
Any clue why these don't work? It returns false everytime.

I go to test2 of course first.

Code:
[@test2]
#ACT
SET [777] 1

[@test1]
#IF
CHECK [777] 0
#SAY
777 is false
#ELSESAY
777 is true
 

|Druid|

Banned
Banned
Dedicated Member
Jul 1, 2005
23
0
28
happened to me so i did this

[@test2]
#ACT
addnamelist flag1.txt

[@test1]
#IF
checknamelist flag1.txt
#SAY
flag1.txt is false
#ELSESAY
flag1.txt is true


[@main]
#if
checknamelist 1.txt
#act
goto @monkey
break

#if
checknamelist 2.txt
#act
goto @monkey2
break

#elseact
goto @news

[@news]
Hello do yes nana\
<go 1/@add>\
<go 2/@add1>

[@add]
#act
addnamelist 1.txt

[@add1]
#addnamelist 2.txt

[@monkey1]
yo

[@monkey2]
noob


MentaL
 

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
105
Stoke, England
try this:

Code:
[@main]
#IF
#ACT
Set [777] 1
#SAY
777 is set\ \
 <Test it!/@test>

[@test]
#IF
Check [777] 1
#SAY
777 is set and working\ \
 <W00t!/@exit>
#ELSESAY
777 is fudged up and won't work\ \
 <BAH/@exit>
 

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
125
New york
Nope still doesn't work..

and mental I really didn't want to resort to using text files :-s...but I guess i'll have to.
 

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
105
Stoke, England
Change the flag number to 100 then or soemthing like that

It kept refusing me when i tried using 900+, but seems to work qith 100-600ish
 

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
125
New york
Does anyone know how to execute code like giving exp without showing an npc box or exiting it? without user having to click anything?
 

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
105
Stoke, England
I think it you need to use the 'break' command

as in:

Code:
[@main]
#IF
#ACT
give WoodenSword 1
break
 
Last edited:

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
125
New york
Re: NPC flags don't work..http://www.lomcn.co.uk/forum/showthread.php?p=367632#post36

Slanesh said:
use the 'break' command

as in:

Code:
[@main]
#IF
#ACT
give WoodenSword 1
break

give me a kiss :P.............
 

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
125
New york
Back again lol.. how does random work? Say I want to have 1/20 chance of doing something.. say:

Code:
#IF
random 20
#ACT
;do code
break
 

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
105
Stoke, England
Code:
[@main]
#IF
random 5
#ACT
Give gold 500
break
#ELSEACT
Give gold 250
break

I think that's how it goes. That means teh server generates a random number between 1 and 5. If it is a 5 you get the 500 gold, but if it's a 1,2,3 or 4 you get the 250 gold... So basically random 5 means there's a 1/5 chance of whatever happening.
 

NickAKAVexus

Golden Oldie
Golden Oldie
Apr 16, 2005
1,427
1
125
New york
Hm I'm having trouble with the MapQuest.txt

Code:
n008  [001]    1      RedSnake           *               RedSnake

then in MapQuest_def I have RedSnake.txt
It doesn't seem to be working.. i'm trying to run a script on mobs death.
 

Slanesh

Golden Oldie
Golden Oldie
Sep 6, 2004
522
6
105
Stoke, England
What is the actual problem? Does just nothing happen when you kill the mob?

Do your [001] flag clash with any other flags? And are you killing the monster on map n008?

Also, can you post up what your RedSnake.txt file is plz, 'cause there might be a problem with that....

Start of the script should be like:

Code:
[@main]
#ACT
give gold 1000000
#SAY
You have defeated the RedSnake!\
 <I am teh r0x0rz/@exit>

I'm pretty sure it's got to be [@main] and if you want to to appear it needs to have the #SAY in it...
 

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
for the map quest to work i find that you need to have your flag in this case 001 set to 1 for it to load the text file for killing the red snake, you will need to do it by an npc before the map quest thing works
 

™blade™

Golden Oldie
Golden Oldie
Oct 31, 2004
799
1
155
hi i thoughti would post here to save starting annew thread

canne one tell me how to make it so an npc can be use only once be each player plz
 

Fire

Golden Oldie
Golden Oldie
Apr 15, 2003
1,302
1
175
Code:
[@main]
#IF
CHECK [flag] 1
#ACT
goto @used
#ELSEACT
goto @speech

[@used]
#IF
#SAY
You have already used me

[@speech]
#IF
SET [flag] 1
#SAY

there you go