[DM2]NPC correction

Mu online season 21 - grand opening

ImapsI

Dedicated Member
Dedicated Member
Mar 10, 2004
148
0
42
got a script im working on, not working as i require it, some 1 point out where im going wrong?:


[@main]
#SAY
words!\ \

<next./@ben1>

[@ben1]
#Say
words!\ \

<Next/@next1>\ \

[@next1]
#IF GENDER Man
#ACT
goto @Next2
break

#ELseACT
goto @next3
break

[@next2]
#IF Checkjob Warrior
#ACT
GIVE HeavyArmour(M)
#act
goto @end
break

#ELSEACT
#IF Checkjob Wizard

GIVE MagicRobe(M)
#act
goto @end
break

#ELSEACT
#IF Checkjob Taoist

GIVE SoulArmour(M)
#act
goto @end
break

[@next3]
#IF CheckGroupClass Warrior
#ACT
GIVE HeavyArmour(f)
#act
goto @end
break

#ELSEACT
#IF CheckGroupClass Wizard

GIVE MagicRobe(f)
#act
goto @end
break

#ELSEACT
#IF CheckGroupClass Taoist

GIVE SoulArmour(f)
#act
goto @end
break

[@end]
#Say
I hope this will help you out.\ \

<Thanks!/@exit>
 

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
[@main]
#if
check [200] 1
#act
goto @alreadydone
#elseact
goto @main2

[@main2]
#SAY
words!\ \
<next./@ben1>\

[@ben1]
#Say
words!\ \
<Next/@next1>\ \

[@next1]
#IF GENDER Man
#ACT
goto @Next2
#ELseACT
goto @next5
break

[@next2]
#IF Checkjob Warrior
#ACT
GIVE HeavyArmour(M) 1
set [200] 1
#SAY
I hope this will help you out.\ \
<Close/@exit>\
#ELSEACT
goto @next3

[@next3]
#IF Checkjob Wizard
#ACT
GIVE MagicRobe(M) 1
set [200] 1
#SAY
I hope this will help you out.\ \
<Close/@exit>\
#ELSEACT
goto @next4

[@next4]
#IF Checkjob Taoist
#act
GIVE SoulArmour(M) 1
set [200] 1
#SAY
I hope this will help you out.\ \
<Close/@exit>\

[@next5]
#IF checkjob Warrior
#ACT
GIVE HeavyArmour(f) 1
set [200] 1
#SAY
I hope this will help you out.\ \
<Close/@exit>\
#ELSEACT
goto @next6

[@next6]
#IF checkjob Wizard
#act
GIVE MagicRobe(f) 1
set [200] 1
#SAY
I hope this will help you out.\ \
<Close/@exit>\
#ELSEACT
goto @next6

[@next6]
#IF checkjob Taoist
#act
GIVE SoulArmour(f) 1
set [200] 1
#SAY
I hope this will help you out.\ \
<Close/@exit>\

[@alreadydone]
Iam sorry <$USERNAME> it seems i have already given you some kit\
<OK/@exit>\

i have used a flag to set when the kit has been given, this is because if you dont the npc can be used over and over again to gain/exploit more kit

hope this helps

koni
 
Last edited:
Upvote 0

ImapsI

Dedicated Member
Dedicated Member
Mar 10, 2004
148
0
42
thx! will try it soon.

was gonna do that thing you added for me after i got the main part of the script right, seems you saved me an extra job, thanks again :P
 
Upvote 0