script error: CheckUnit [0] 1

Mu online season 21 - grand opening

NickDawes

Dedicated Member
Dedicated Member
Jul 7, 2004
220
0
43
Heya, ive recently updated my m2server to the latest chinese release, and im having a problem when running npc scripts.

"script error: CheckUnit [0] 1"

is now appearing for numerous npc's in the mir2server.

has the CheckUnit command been altered in this release?
 

Toxick

Golden Oldie
Golden Oldie
Apr 17, 2003
1,397
0
173
post one of the npc scripts that has this problem, or else open the m2server and search for the string "CheckUnit" if it isnt there it might of been altered:/
 

NickDawes

Dedicated Member
Dedicated Member
Jul 7, 2004
220
0
43
[@Main]
#If
CheckPkPoint 2
#Say
Vulk:\
How'd you get past the guards?! I aint havin' your kind usin' my\

service!\\
<Exit/@Exit>
#ElseAct
Goto @Main1

[@Main1]
#If
CheckJob Warrior
#Act
goto @Warrior
#ElseAct
Goto @Taoist

[@Taoist]
#If
CheckJob Taoist
#Say
Vulk:\
What's Taoist doin' in these parts? Sorry chump, but me

services\are fer Warrior's only!\\
<Thanks for nothing.../@Exit>
#ElseAct
Goto @Wizard

[@Wizard]
#If
CheckJob Wizard
#Say
Vulk:\
What's Wizard doin' in these parts? Sorry chump, but me\services

are fer Warrior's only!\\
<Thanks for nothing.../@Exit>

[@Warrior]
#If
CheckUnit [1] 1
#Act
Goto @Main2
#ElseAct
Set [1] 1
#Say
Vulk:\
Ahh... I see ya chose the path of the mighty warrior! A fine

choice,\<$USERNAME>. You should get yerself a Wolf...\ \
\\
<A wolf?/@Main2>\

[@Main2]
#Say
Vulk:\
I bred these Wolves up meself, they make fer handy companions\
in battle I can tell yer that! How bout it? One Wolf fer 3000\Gold?\ \
\\
<Buy wolves./@BuyWolves>\
<Not right now thankyou./@Exit>

[@BuyWolves]
#If
CheckMarry 3
#Act
TakeGold 3000
Marry Mob Wolf
#Say
Vulk:\
Look after the lil' fella! It might jus' save yer skin in battle!\ \
\\
<Exit/@Exit>\
#ElseSay
Vulk:\
Yer already got 3 of me wolves!\ \
\\
<Exit/@exit>\
 

Toxick

Golden Oldie
Golden Oldie
Apr 17, 2003
1,397
0
173
try "check" instead of "checkunit"

its just basicly Flags? so it should be check instead of check unit
 

NickDawes

Dedicated Member
Dedicated Member
Jul 7, 2004
220
0
43
yup, i changed it to "Check" its working now... could u help me out with these flags? total noob to flags to be honest...

[@Warrior]
#If
Check [1] 1
#Act
Goto @Main2
#ElseAct
Set [1] 1
#Say
Vulk:\
Ahh... I see ya chose the path of the mighty warrior! A fine choice,\<$USERNAME>. You should get yerself a Wolf...\ \
\\
<A wolf?/@Main2>\

[@Main2]
#Say
Vulk:\
I bred these Wolves up meself, they make fer handy companions\
in battle I can tell yer that! How bout it? One Wolf fer 3000\Gold? You can only have 3 mind...\ \

i want to make it so the NPC only says the "@Warrior" passage once, the first time u click him!
 

Ali3n

Golden Oldie
Golden Oldie
Apr 27, 2004
705
5
155
Leicestershire
[@main]
#IF
Check [001] 0
#ACT
goto @warrior
set [001] 1
#ELSEACT
goto @main2

[@Warrior]
Vulk:\
Ahh... I see ya chose the path of the mighty warrior! A fine choice,\<$USERNAME>. You should get yerself a Wolf...\ \
\\
<A wolf?/@Main2>\

[@Main2]
#Say
Vulk:\
I bred these Wolves up meself, they make fer handy companions\
in battle I can tell yer that! How bout it? One Wolf fer 3000\Gold? You can only have 3 mind...\ \