Making your Own Commands

Mu online season 21 - grand opening

Demonic

LOMCN VIP
VIP
Dec 1, 2003
1,806
2
165
A Feature often Overlooked in 3G serve files, in the CD.INI you will see @_Newcommand1 and above this the command - I will show you how to add in some new stuff and idea of what you can use this for...

CruelDragon.INI
In there we have:


Code:
ÃüÁî1=NewOrder1
ȨÏÞ1=0
񈧏1=@_NewCommand1
ÃüÁî2=witch
ȨÏÞ2=0
񈧏2=@_NewCommand2
ÃüÁî3=NewOrder3
ȨÏÞ3=0
񈧏3=@_NewCommand3


Where it says NewOrder1/2/3 is where you can overwrite this with the Name of your CHoice, as I have done with Witch. Now in game on Any char you can type @witch and it runs that command.

Envir\Market_Def\00Default.txt

In here we have:


Code:
[@_NewCommand1]
#IF
#ACT
goto @CruelDragonMir3G4

[@CruelDragonMir3G4]
#CALL [HLSCRIPT\CruelDragonMir3G.txt] @Mir3G_4

[@_NewCommand2]
#IF
#ACT
goto @CruelDragonMir3G5

[@CruelDragonMir3G5]
#CALL [HLSCRIPT\CruelDragonMir3G.txt] @Mir3G_5

[@_NewCommand3]
#IF
#ACT
goto @CruelDragonMir3G6

[@CruelDragonMir3G6]
#CALL [HLSCRIPT\CruelDragonMir3G.txt] @Mir3G_6


This jumps off to :

\Envir\QuestDiary\HLSCRIPT\CruelDragonMir3G.txt

And in here we find:


Code:
[@MIR3G_4]
{
#IF
#ACT
#SAY
Please input your solution to lock the password, carries on character's solution lock\
Under the fixed condition, how won't you be able to do operate\
1.Walks\
2.Moves\
3.Attack\
4.Throws\
5.Black magic\
6.Chats\
7.Use goods\
8.Throws the goods\
9.Transaction\
<Input password/@@*11_Input_PassWord>\


[@@*11_Input_PassWord]
#IF
#ACT
mov  A0  %PASSWD(9)
mov  A1  %INPUTSTR

#IF
equal A0 %A1
#ACT
HLSCRIPTCMD UNLOCKUSER
#SAY
{FCOLOR/10}The password is correct, your character already solved the lock.{FCOLOR/12}\\
<Exit/@exit>\\

#ELSESAY
{FCOLOR/1}Password mistake.{FCOLOR/12}\ \
<Exit/@exit>

}




}



[@MIR3G_5]
{
#IF
checkmonrecall
#ACT
monrecall Witch 7 3

#ELSESAY
You already have a Pet out..\\
<Exit/@exit>\
}




[@MIR3G_6]
{
#if
#say
Uses @NewOrder3 Command\
<Exit/@exit>\
}[/LEFT]

What Can I do with this though??

Well in my Example (do not use this by the way), the user type @witch and it summons a pet Witch level 3 for 7 hours. If they type it again, it says "You already have a Pet". You could for example check if they are wearing a ring (or any item) or have something in there bag before it Summons it - a bit like HolyDeva but for All Classes. You can check there Job (tao) if you only wanted Taos to have this - the list goes on & On bascially.

Have fun with this..​
 

Azura

Mir3 Coder & Adviser
Untrusted Member
Golden Oldie
Mar 12, 2005
3,260
116
330
Nice Job I'll try the pet idea later.
 

gandy

Dedicated Member
Dedicated Member
May 13, 2003
94
0
82
Very nice, i was looking for something like this, i can use a few of my Mir2 user command ideas now :)
 

DrowninG

Golden Oldie
Golden Oldie
Mar 23, 2003
733
11
155
they have this on euro mir, i did a DQ and got a zuma archer as reward


nice find tho
 

MiloFoxburr

LOMCN VIP
VIP
Mar 23, 2003
7,276
207
350
Dublin, Ireland
DrowninG said:
they have this on euro mir, i did a DQ and got a zuma archer as reward


nice find tho

um, you reading the same thread?

To my knowledge EuroMir3 does not have a command that allows you to summon a pet

i.e @zumaarcher
 

Zordon

Golden Oldie
Golden Oldie
Apr 26, 2008
1,176
20
125
Manchester, UK
A Feature often Overlooked in 3G serve files, in the CD.INI you will see @_Newcommand1 and above this the command - I will show you how to add in some new stuff and idea of what you can use this for...

CruelDragon.INI
In there we have:


Code:
ÃüÁî1=NewOrder1
ȨÏÞ1=0
񈧏1=@_NewCommand1
ÃüÁî2=witch
ȨÏÞ2=0
񈧏2=@_NewCommand2
ÃüÁî3=NewOrder3
ȨÏÞ3=0
񈧏3=@_NewCommand3


Ok I've made my own commands and I'm just basically wondering, if I put something like this into cd.ini, and made the right links in 00default.txt, would it work?

Code:
ȨÏÞ1=0
񈧏1=@_NewCommand1
ÃüÁî2=witch
ȨÏÞ2=0
񈧏2=@_NewCommand2
ÃüÁî3=NewOrder3
ȨÏÞ3=0
񈧏3=@_NewCommand3
ȨÏÞ4=0
񈧏4=@_NewCommand4
ÃüÁî5=NewOrder5
ȨÏÞ5=0
񈧏5=@_NewCommand5
ÃüÁî6=NewOrder6
ȨÏÞ6=0
񈧏6=@_NewCommand6

Would that work when i typed the @ commands?

EDIT: I've put this into cd.ini and I'll test it next time I boot the server up.
 
Last edited: