Script need help.

Play Now

ashleyuk

Dedicated Member
Dedicated Member
Loyal Member
Nov 18, 2008
2,000
23
125
Ok i was trying to put all 3 classes in 1 script. But it seems like it doesnt work. The problem is when im a warrior it will tele me in. But when im a wizard/taoist it wont. The npc is ment to teleport the classes to the spot it says. But it wont let Tao/Wiz click the npc.

Script::

[@main]
#IF
CheckJob Warrior
#ACT
Goto @War
#ELSEACT
Goto Main2

[@War]
#IF
#ACT
CLEARMAPMON Challenge
PARAM1 Challenge
PARAM2 24
PARAM3 31
MONGEN MolternKing 1 0
Mapmove Challenge 8 13
SENDMSG 6 "You Are Now At Challenge_Room."
SENDMSG 0 "The Challenge Boss has been Challenged!!"

[@Main2]
#IF
CheckJob Wizard
#ACT
Goto @Wiz
#ELSEACT
Goto Main3

[@Wiz]
#IF
#ACT
Mapmove Challenge 10 45
SENDMSG 6 "You Are Now At Challenge_Room."

[@Main3]
#IF
CheckJob Taoist
#ACT
Goto @Tao
#ELSEACT
Goto @Denied

[@Tao]
#IF
#ACT
Mapmove Challenge 40 15
SENDMSG 6 "You Are Now At Challenge_Room."

[@Denied]
Huh...\

Any idea?

Thanks :)

HMM I think i found the problem... With the breaks ima check...

EDIT: Nope still same you recon i would need a reboot?
 
Last edited:

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
[@main]
#IF
checkjob wizard
#ACT
goto @4.11
break
#IF
checkjob taoist
#ACT
goto @4.22
break
#IF
checkjob warrior
#ACT
goto @4.33

[@4.11]
#IF
#ACT
Mapmove Challenge 10 45
SENDMSG 6 "You Are Now At Challenge_Room."

[@4.22]
#IF
#ACT
Mapmove Challenge 40 15
SENDMSG 6 "You Are Now At Challenge_Room."
Break


[@4.33]
#IF
#ACT
CLEARMAPMON Challenge
PARAM1 Challenge
PARAM2 24
PARAM3 31
MONGEN MolternKing 1 0
Mapmove Challenge 8 13
SENDMSG 6 "You Are Now At Challenge_Room."
SENDMSG 0 "The Challenge Boss has been Challenged!!"


then do do the rest
 
Upvote 0

Trinity2.3

Dedicated Member
Dedicated Member
Jun 15, 2010
154
0
42
This will work, the only problem you have is if your not a warrior it wont spawn any mobs, and if you put that on each char it will spawn another each time you go in, hopfully that will suit your needs.


[@main]
#IF
CheckJob Warrior
#ACT
CLEARMAPMON Challenge
PARAM1 Challenge
PARAM2 24
PARAM3 31
MONGEN MolternKing 1 0
Mapmove Challenge 8 13
SENDMSG 6 "You Are Now At Challenge_Room."
SENDMSG 0 "The Challenge Boss has been Challenged!!"
#IF
CheckJob Wizard
#ACT
Mapmove Challenge 10 45
SENDMSG 6 "You Are Now At Challenge_Room."
#IF
CheckJob Taoist
#ACT
Mapmove Challenge 40 15
SENDMSG 6 "You Are Now At Challenge_Room."
#ELSESAY
What the hell are you :/

Why is it people make huge scripts when only a small one is needed, people make things more complex than they ever really need to be, and then wonder what theve done wrong :P
 
Last edited:
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
if u look above the way i called it npc has to check class befor hand
 
Upvote 0

twisterdmk

Golden Oldie
Golden Oldie
May 13, 2009
759
28
115
USA
Yeh Iceman's way of scripting is more formitable in my opinion, as it checks your class first then sends you to the map, and gives message.
 
Upvote 0

ashleyuk

Dedicated Member
Dedicated Member
Loyal Member
Nov 18, 2008
2,000
23
125
[@main]
#IF
checkjob wizard
#ACT
goto @4.11
break
#IF
checkjob taoist
#ACT
goto @4.22
break
#IF
checkjob warrior
#ACT
goto @4.33

[@4.11]
#IF
#ACT
Mapmove Challenge 10 45
SENDMSG 6 "You Are Now At Challenge_Room."

[@4.22]
#IF
#ACT
Mapmove Challenge 40 15
SENDMSG 6 "You Are Now At Challenge_Room."
Break


[@4.33]
#IF
#ACT
CLEARMAPMON Challenge
PARAM1 Challenge
PARAM2 24
PARAM3 31
MONGEN MolternKing 1 0
Mapmove Challenge 8 13
SENDMSG 6 "You Are Now At Challenge_Room."
SENDMSG 0 "The Challenge Boss has been Challenged!!"


then do do the rest


Thanks man :) Should of asked you on msn:P But your a busy man so dint wanna distruct you.
 
Upvote 0

Trinity2.3

Dedicated Member
Dedicated Member
Jun 15, 2010
154
0
42
if u look above the way i called it npc has to check class befor hand

The way you have scripted serves no additional purpose, placing an "ACT goto" simply makes the CPU search for the correct function, placing an IF statement simply means that if it returns a false value, to move onto the next of the methods statements, in this case the next "IF" statement.

Im a games development student, i think i know how to script.
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
thats nice and good luck at that, grab the codes and show us what you know

but i know after yrs what works in mir.
 
Upvote 0

twisterdmk

Golden Oldie
Golden Oldie
May 13, 2009
759
28
115
USA
thats nice and good luck at that, grab the codes and show us what you know

but i know after yrs what works in mir.


In essence, I wish I knew how to code or I would make Mir 3 Open Source. But the simple fact is I don't, Iceman has been around Mir for quite sometime. It's good your going to school, hopefully you'll learn and open a Mir 3 Source Project.

-D-
 
Upvote 0