Few 2.3 NPC stuff

Mu online season 21 - grand opening

Xanan

LOMCN Veteran
Veteran
Loyal Member
Jan 5, 2006
1,203
10
124
Basically i need a little bit of help with 2.3 npcs due to the fact im not up to scratch with them.

Firstly i'd like to know how its possible to allow an npc to be used every two hours, for like 10 minutes.

For example, at 6am it can be used for 10 minutes, then at 8am it can be used for 10 minutes etc etc.


Secondly i would like to know if its possible to have an automatic spawn of mobs that will mission to a certain point, so for example every saturday night at 6pm, 2 woomas 5 zoomas and a yob will spawn and mission to a certain point.

Cheers in advance.
 

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
Basically i need a little bit of help with 2.3 npcs due to the fact im not up to scratch with them.

Firstly i'd like to know how its possible to allow an npc to be used every two hours, for like 10 minutes.

For example, at 6am it can be used for 10 minutes, then at 8am it can be used for 10 minutes etc etc.


Secondly i would like to know if its possible to have an automatic spawn of mobs that will mission to a certain point, so for example every saturday night at 6pm, 2 woomas 5 zoomas and a yob will spawn and mission to a certain point.

Cheers in advance.

not sure about npc having multiple times in one day i know you can have
#if
dayofweek command and you can specify a time for npc to become active and to shut off perhaps the script can be duplicated and then it would do it not sure ... lol

second question yes, you can use the robot system to do a mobmission / invasions we use it on bandet occasionally its pretty simple to do bud
 
Upvote 0

Xanan

LOMCN Veteran
Veteran
Loyal Member
Jan 5, 2006
1,203
10
124
Cheers for reply,

would be helpful if you could give a little infomation on how the dayofweek command works, also how the robot works.

and that NPC would be interesting to look at if you could post it.
 
Upvote 0

CandyMan

LOMCN Veteran
Veteran
Dec 29, 2004
330
1
45
Middlesbrough
Im currently trying to figure that command myself for my last man standing.

Its

#IF
DAYOFWEEK (MON, TUE, WED, THU, FRI, SAT SUN)
HOUR 00 00
MIN 00 00
#ACT
MAPMOVE (MapName) (Co-ords if needed)
Break
 
Upvote 0

™blade™

Golden Oldie
Golden Oldie
Oct 31, 2004
799
1
155
Code:
[@main]
#IF
HOUR 00
#ACT
goto @error
#ELSEACT
goto @check

[@check]
#IF
HOUR 01
#ACT
goto @error
#ELSEACT
goto @check2

[@check2]
#IF
HOUR 02
#ACT
goto @error
#ELSEACT
goto @check3

[@check3]
#IF
HOUR 03
#ACT
goto @error
#ELSEACT
goto @check4

[@check4]
#IF
HOUR 04
#ACT
goto @error
#ELSEACT
goto @check5

[@check5]
#IF
HOUR 05
#ACT
goto @error
#ELSEACT
goto @check6

[@check6]
#IF
HOUR 06
#ACT
goto @error
#ELSEACT
goto @check7

[@check7]
#IF
HOUR 07
#ACT
goto @error
#ELSEACT
goto @check8

[@check8]
#IF
HOUR 08
#ACT
goto @error
#ELSEACT
goto @check9

[@check9]
#IF
HOUR 09
#ACT
goto @error
#ELSEACT
goto @check10

[@check10]
#IF
HOUR 10
#ACT
goto @error
#ELSEACT
goto @check11

[@check11]
#IF
HOUR 11
#ACT
goto @error
#ELSEACT
goto @check12

[@check12]
#IF
HOUR 12
#ACT
goto @error
#ELSEACT
goto @check13

[@check13]
#IF
HOUR 13
#ACT
goto @error
#ELSEACT
goto @check14

[@check14]
#IF
HOUR 14
#ACT
goto @error
#ELSEACT
goto @check15

[@check15]
#IF
HOUR 15
#ACT
goto @error
#ELSEACT
goto @check16

[@check16]
#IF
HOUR 16
#ACT
goto @error
#ELSEACT
goto @check17

[@check17]
#IF
HOUR 17
#ACT
goto @error
#ELSEACT
goto @check18

[@check18]
#IF
HOUR 18
#ACT
goto @tele
#ELSEACT
goto @check19

[@check19]
#IF
HOUR 19
#ACT
goto @tele
#ELSEACT
goto @check20

[@check20]
#IF
HOUR 20
#ACT
goto @tele
#ELSEACT
goto @check21

[@check21]
#IF
HOUR 21
#ACT
goto @tele
#ELSEACT
goto @check22

[@check22]
#IF
HOUR 22
#ACT
goto @tele
#ELSEACT
goto @check23

[@check23]
#IF
HOUR 23
#ACT
goto @error
#ELSEACT
goto @check24

[@check24]
#IF
HOUR 00
#ACT
goto @error

[@error]
#SAY
Sorry, it's not the correct time!\
<Okay/@exit>

[@tele]
#if
#act
mapmove bw1 45 45
 
Last edited:
Upvote 0

Xanan

LOMCN Veteran
Veteran
Loyal Member
Jan 5, 2006
1,203
10
124
[@MAIN]
#SAY
Hello <$USERNAME>, im the mission master.\
I can offer you missions that will benefit\
you greatly assuming you manage to complete\
them.\
<Show/@m1> me the missions.\
<Show/@m2> me the mission times.\
<Show/@m9> me the sub missions.\\
<Exit/@exit>

[@m1]
<Take me/@m3> to the Exp Mission.\
<Take me/@m4> to the Treasure Mission.\
<Take me/@m5> to the Guardians Mission.\\
<Back/@main> to main page.\
<Exit/@exit>

[@m2]
<Times/@m6> for Exp Mission.\
<Times/@m7> for Treasure Mission.\
<Times/@m8> for Guardians Mission.\\
<Back/@main> to main page.\
<Exit/@exit>

[@m6]
Exp Mission;\
12AM 03AM 06AM 09AM\
12PM 03PM 06PM 09PM\\
Please Note: You must be 45 or above.\
<Back/@m2> to times page.\
<Exit/@exit>

[@m7]
Teasure Mission;\
01AM 04AM 07AM 10AM\
01PM 04PM 07PM 10PM\\
Please Note: You must be 50 or above.\
<Back/@m2> to times page.\
<Exit/@exit>

[@m8]
Guardians Mission;\
12AM 04AM 08AM\
12PM 04PM 08PM\\
Please Note: You must be 55 or above.\
<Back/@m2> to times page.\
<Exit/@exit>

[@m9]
<Show Me/@m10> the Light Collection.\\
<Back/main> to main page.\
<Exit/@exit>

[@m3]
#IF
HOUR 00
#ACT
goto @exp
#ELSEACT
goto @m11

[@m11]
#IF
HOUR 03
#ACT
goto @exp
#ELSEACT
goto @m12

[@m12]
#IF
HOUR 06
#ACT
goto @exp
#ELSEACT
goto @m13

[@m13]
#IF
HOUR 09
#ACT
goto @exp
#ELSEACT
goto @m14

[@m14]
#IF
HOUR 12
#ACT
goto @exp
#ELSEACT
goto @m15

[@m15]
#IF
HOUR 15
#ACT
goto @exp
#ELSEACT
goto @m16

[@m16]
#IF
HOUR 18
#ACT
goto @exp
#ELSEACT
goto @m17

[@m17]
#IF
HOUR 21
#ACT
goto @exp
#ELSEACT
goto @fail

[@fail]
#SAY
You cannot enter this mission right now.\
Please check the times for this mission,\
they are displayed on the main page.\\
<Back/@main> to main page.\
<Exit/@exit>

[@exp]
#IF
checklevel 45
#SAY
In this mission you must kill as many\
mosters as possible, but be aware, you\
only have half an hour in here!\
<Take/@exp1> me there!\
<Back/@main> to main page.\
<Exit/@exit>
#ELSESAY
Im afraid you must be level 45 to enter\
this mission, please come back when you\
are level 45.\\
<Back/@main> to main page.\
<Exit/@exit>

[@exp1]
#ACT
MAPMOVE Map x y
timerecall 30
break

[@m4]
#IF
HOUR 01
#ACT
goto @tre
#ELSEACT
goto @m18

[@m18]
#IF
HOUR 04
#ACT
goto @tre
#ELSEACT
goto @m19

[@m19]
#IF
HOUR 07
#ACT
goto @tre
#ELSEACT
goto @m20

[@m20]
#IF
HOUR 10
#ACT
goto @tre
#ELSEACT
goto @m21

[@m21]
#IF
HOUR 13
#ACT
goto @tre
#ELSEACT
goto @m22

[@22]
#IF
HOUR 16
#ACT
goto @tre
#ELSEACT
goto @m23

[@m23]
#IF
HOUR 19
#ACT
goto @tre
#ELSEACT
goto @m24

[@m24]
#IF
HOUR 21
#ACT
goto @tre
#ELSEACT
goto @fail

[@tre]
#IF
checklevel 50
#SAY
In this mission the aim is to complete\
the treasure hunting tasks the npcs set\
you within an hour, talk to the npc in \
the middle to start.\
<Take/@tre1> me there!\
<Back/@main> to main page.\
<Exit/@exit>
#ELSESAY
Im afraid you must be level 50 to enter\
this mission, please come back when you\
are level 50.\\
<Back/@main> to main page.\
<Exit/@exit>

[@tre1]
MAPMOVE Map x y
timerecall 60
break


anyone see a problem with this script, exception of the maps not being right?

It does seem to work atall.
 
Upvote 0

™blade™

Golden Oldie
Golden Oldie
Oct 31, 2004
799
1
155
Code:
[@MAIN]
#SAY
Hello <$USERNAME>, im the mission master.\
I can offer you missions that will benefit\
you greatly assuming you manage to complete\
them.\
<Show/@m1> me the missions.\
<Show/@m2> me the mission times.\
<Show/@m9> me the sub missions.\\
<Exit/@exit>

[@m1]
<Take me/@m3> to the Exp Mission.\
<Take me/@m4> to the Treasure Mission.\
<Take me/@m5> to the Guardians Mission.\\
<Back/@main> to main page.\
<Exit/@exit>

[@m2]
<Times/@m6> for Exp Mission.\
<Times/@m7> for Treasure Mission.\
<Times/@m8> for Guardians Mission.\\
<Back/@main> to main page.\
<Exit/@exit>

[@m6]
Exp Mission;\
12AM 03AM 06AM 09AM\
12PM 03PM 06PM 09PM\\
Please Note: You must be 45 or above.\
<Back/@m2> to times page.\
<Exit/@exit>

[@m7]
Teasure Mission;\
01AM 04AM 07AM 10AM\
01PM 04PM 07PM 10PM\\
Please Note: You must be 50 or above.\
<Back/@m2> to times page.\
<Exit/@exit>

[@m8]
Guardians Mission;\
12AM 04AM 08AM\
12PM 04PM 08PM\\
Please Note: You must be 55 or above.\
<Back/@m2> to times page.\
<Exit/@exit>

[@m9]
<Show Me/@m10> the Light Collection.\\
<Back/main> to main page.\
<Exit/@exit>

[@m3]
#IF
HOUR 01
#ACT
goto @fail
#ELSEACT
goto @m10

[@m10]
#IF
HOUR 01
#ACT
goto @fail
#ELSEACT
goto @m11

[@m11]
#IF
HOUR 02
#ACT
goto @fail
#ELSEACT
goto @m12

[@m12]
#IF
HOUR 03
#ACT
goto @fail
#ELSEACT
goto @m13

[@m13]
#IF
HOUR 04
#ACT
goto @fail
#ELSEACT
goto @m14

[@m14]
#IF
HOUR 05
#ACT
goto @fail
#ELSEACT
goto @m15

[@m15]
#IF
HOUR 06
#ACT
goto @exp
#ELSEACT
goto @m16

[@m16]
#IF
HOUR 07
#ACT
goto @exp
#ELSEACT
goto @m17

[@m17]
#IF
HOUR 08
#ACT
goto @exp
#ELSEACT
goto @m18

[@m18]
#IF
HOUR 09
#ACT
goto @exp
#ELSEACT
goto @m19

[m19]
#IF
HOUR 10
#ACT
goto @fail
#ELSEACT
goto @m20

[@m20]
#IF
HOUR 11
#ACT
goto @fail
#ELSEACT
goto @m21

[@m21]
#IF
HOUR 12
#ACT
goto @exp
#ELSEACT
goto @m22

[m22]
#IF
HOUR 13
#ACT
goto @exp
#ELSEACT
goto @m23

[@m23]
#IF
HOUR 14
#ACT
goto @exp
#ELSEACT
goto @m24

[@m24]
#IF
HOUR 15
#ACT
goto @exp
#ELSEACT
goto @m25

[m25]
#IF
HOUR 16
#ACT
goto @fail
#ELSEACT
goto @m26

[@m26]
#IF
HOUR 17
#ACT
goto @fail
#ELSEACT
goto @m27

[@m27]
#IF
HOUR 18
#ACT
goto @fail
#ELSEACT
goto @m28

[m28]
#IF
HOUR 19
#ACT
goto @fail
#ELSEACT
goto @m29

[@m29]
#IF
HOUR 20
#ACT
goto @fail
#ELSEACT
goto @m30

[@m30]
#IF
HOUR 21
#ACT
goto @fail
#ELSEACT
goto @m31

[m31]
#IF
HOUR 22
#ACT
goto @fail
#ELSEACT
goto @m32

[@m32]
#IF
HOUR 23
#ACT
goto @fail
#ELSEACT	
goto @m33

[@m33]
#IF
HOUR 24
#ACT
goto @fail
#ELSEACT
goto @m34

[m34]
#IF
HOUR 00
#ACT
goto @fail


[@fail]
#SAY
You cannot enter this mission right now.\
Please check the times for this mission,\
they are displayed on the main page.\\
<Back/@main> to main page.\
<Exit/@exit>

[@exp]
#IF
checklevel 45
#SAY
In this mission you must kill as many\
mosters as possible, but be aware, you\
only have half an hour in here!\
<Take/@exp1> me there!\
<Back/@main> to main page.\
<Exit/@exit>
#ELSESAY
Im afraid you must be level 45 to enter\
this mission, please come back when you\
are level 45.\\
<Back/@main> to main page.\
<Exit/@exit>

[@exp1]
#ACT
MAPMOVE Map x y
timerecall 30
break

[@m4]
#IF
HOUR 00
#ACT
goto @fail
#ELSEACT
goto @c0

[@c0]
#IF
HOUR 01
#ACT
goto @tre
#ELSEACT
goto @c1

[@c1]
#IF
HOUR 02
#ACT
goto @tre
#ELSEACT
goto @c2

[@c2]
#IF
HOUR 03
#ACT
goto @tre
#ELSEACT
goto @c3

[@c3]
#IF
HOUR 04
#ACT
goto @tre
#ELSEACT
goto @c4

[@c4]
#IF
HOUR 05
#ACT
goto @fail
#ELSEACT
goto @c5

[@c5]
#IF
HOUR 06
#ACT
goto @fail
#ELSEACT
goto @c6

[@c6]
#IF
HOUR 07
#ACT
goto @tre
#ELSEACT
goto @c7

[@c7]
#IF
HOUR 08
#ACT
goto @tre
#ELSEACT
goto @c8

[@c8]
#IF
HOUR 09
#ACT
goto @tre
#ELSEACT
goto @c9

[@c9]
#IF
HOUR 10
#ACT
goto @tre
#ELSEACT
goto @c10

[@c10]
#IF
HOUR 11
#ACT
goto @fail
#ELSEACT
goto @c11

[@c11]
#IF
HOUR 12
#ACT
goto @fail
#ELSEACT
goto @c12

[@c12]
#IF
HOUR 13
#ACT
goto @tre
#ELSEACT
goto @c13

[@c13]
#IF
HOUR 14
#ACT
goto @tre
#ELSEACT
goto @c14

[@c14]
#IF
HOUR 15
#ACT
goto @tre
#ELSEACT
goto @c15

[@c15]
#IF
HOUR 16
#ACT
goto @tre
#ELSEACT
goto @c16

[@c16]
#IF
HOUR 17
#ACT
goto @fail
#ELSEACT
goto @c17

[@c17]
#IF
HOUR 18
#ACT
goto @fail
#ELSEACT
goto @c18

[@c18]
#IF
HOUR 19
#ACT
goto @tre
#ELSEACT
goto @c19

[@c19]
#IF
HOUR 20
#ACT
goto @tre
#ELSEACT
goto @c20

[@c20]
#IF
HOUR 21
#ACT
goto @tre
#ELSEACT
goto @c21

[@c21]
#IF
HOUR 22
#ACT
goto @tre
#ELSEACT
goto @c22

[@c22]
#IF
HOUR 23
#ACT
goto @fail
#ELSEACT
goto @c23

[@c23]
#IF
HOUR 24
#ACT
goto @fail
#ELSEACT
goto @c24

[@c24]
#IF
HOUR 00
#ACT
goto @fail


[@tre]
#IF
checklevel 50
#SAY
In this mission the aim is to complete\
the treasure hunting tasks the npcs set\
you within an hour, talk to the npc in \
the middle to start.\
<Take/@tre1> me there!\
<Back/@main> to main page.\
<Exit/@exit>
#ELSESAY
Im afraid you must be level 50 to enter\
this mission, please come back when you\
are level 50.\\
<Back/@main> to main page.\
<Exit/@exit>

[@tre1]
MAPMOVE Map x y
timerecall 60
break

try that mate that should work tell me know if it does
 
Last edited:
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
123
Germany
mhh on a fast look for me it looks fine if something is wrong and i say IF than u did only a simple error like wrong mXX or something like that

try it it should work
 
Upvote 0