How would i do this...

Mu online season 21 - grand opening

Bon

Legend
Legendary
Jul 29, 2004
6,745
346
330
Kent, UK
I want a box to pop up at certain levels, givin the person a prize

like at lvl 7 they get given fencing

lvl 40 goldchest

etc etc

hows this done plz thx x
oh and while we're here how do u make ur own custom commands?

eg. @sabuk etc


anddddd how do u make gold into bag, rather than dropin on floor?
 
Last edited:

NewHope

Golden Oldie
Golden Oldie
Nov 18, 2005
1,311
28
184
Level up messages is done via Q-Function.

[@LevelUp]
#IF
CHECKLEVELEX = 7
#ACT
SENDMSG 0 "<%S> has just reached level 7. Congratulations!"
goto @level7

[@level7]
#IF
checkjob warrior
#ACT
giveitem Fencing 1
#SAY
Congratulations on reaching this level.\
#ELSEACT
goto @level7a

[@level7a]
#IF
checkjob wizard
#ACT
giveitem Fireball 1
#SAY
Congratulations on reaching this level.\
#ELSEACT
goto @level7b

[@level7b]
#IF
checkjob taoist
#ACT
giveitem Healing 1
#SAY
Congratulations on reaching this level.\
#ELSEACT
goto @level7

I wrote this little script as an example.
It should shout you've reached level 7, via the SENDMSG part.
Then should give you a book, and bring up a pop up box saying: Congratulations on reaching this level.

CustomCommands are also done via the Q-Function, with help of the customcommands.txt in the Envir folder.
You go into the customcommands folder and add @sabuk .
Then in the Q-Function.txt you create a script for this function by using [@sabuk].

So you'd put something like....

[@sabuk]
#IF
ISCASTLEGUILD
#ACT
goto @sabukmember
#ELSEACT
goto @notsabukmember
[@sabukmember]
#IF
#ACT
mapmove 3 641 286
SENDMSG 6 "You were safely teleported to SabukWall <$USERNAME>."
break
[@notsabukmember]
#IF
#ACT
SENDMSG 7 "You are not a member of SabukWall guild."
break

Well exactly like that actually... its from my might server script. :eek:
That only allows sabuk members to use the function.
You can change it by tweaking the script but it has the basics.
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,745
346
330
Kent, UK
probably bein retarded, but wheres Q-Function? i cant see it ne where, altho im sure i saw it somewhere earlier -.-

even did a search for it and didnt show up lol
 
Upvote 0

NewHope

Golden Oldie
Golden Oldie
Nov 18, 2005
1,311
28
184
probably bein retarded, but wheres Q-Function? i cant see it ne where, altho im sure i saw it somewhere earlier -.-

even did a search for it and didnt show up lol

mirserver\M2Server\Envir\Market_Def\Q-Function.txt

I think you can edit the way gold drops through the actual M2Server, i'm just not sure which part - although i seem to have done it - so it can't be too difficult.
 
Upvote 0

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
Looks like this server might take you a while hey Bon ;)

Gold straight into bag can be changed in the !setup.txt
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,745
346
330
Kent, UK
Looks like this server might take you a while hey Bon ;)

Gold straight into bag can be changed in the !setup.txt
lol dunno, ive alrdy added everything that was on 1.4 oldskool, added all mobs ive found on forums (appart from the hell 1s.. that big RME style 1.. cant find dl link for it.. nor the maps... was gonna ask u about it). and im alrdy done up to lvl 50 caves lol.

just gotta get the basics done 1st then i wanan start addin some other stuff.

fixed the q-fuction thing thx

and btw ur script was wrong, its just give... not giveitem :P

also sorted gold in bag

actualyl 1 more thing

u know doin the level ups... wot script would u put for the rest of the levels?

as obv u cant put [@levelup] again.

do u have to continue it off the lvl 7

if ne1 has a script for it would be gr8
 
Last edited:
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,708
35
3,349
520
and btw ur script was wrong, its just give... not giveitem :P

i think that depends on the files. giveitem works fine with some sets. since they use givegold aswell.
 
Upvote 0

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
Never known it to be giveitem tbh.

With the rank system thing you asked about bon... try something like

[@LevelUp]
#IF
CHECKLEVEL > 1
#ACT
SENDMSG 0 "Well done.. hp and mp has now been increased"
#IF
CHECKLEVELEX = 7
#ACT
SENDMSG 0 "<%S> has just reached level 7. Congratulations!"

perhaps something like that
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,745
346
330
Kent, UK
Never known it to be giveitem tbh.

With the rank system thing you asked about bon... try something like

[@LevelUp]
#IF
CHECKLEVEL > 1
#ACT
SENDMSG 0 "Well done.. hp and mp has now been increased"
#IF
CHECKLEVELEX = 7
#ACT
SENDMSG 0 "<%S> has just reached level 7. Congratulations!"

perhaps something like that
yer its ok i sorted it
 
Upvote 0