A pet Script

Mu online season 21 - grand opening

MythRohan

LOMCN Veteran
Veteran
Nov 18, 2011
2,147
82
135
Northant's Town : Serious Gamer
when a noob starts the game he can have a pet till a level of "your" choice

example:

In Qmanage.txt(inside m2server/envir/mapquest_def folder) add the following under [@login]
(
All [@login] entries go under only ONE [@login]<--don't make multiple [@login]'s)

[@login]
#IF
ISNEWHUMAN
#ACT
RECALLMOB Oma 1
RECALLMOB Oma 1
sendmsg 1 "<%s> Has Just Joined YOURSERVERNAME Server! Everyone Say Hello!"
#SAY
Welcome <$USERNAME> to <$SERVERNAME> Server! We hope\
you have a fun and exciting stay! Enjoy these 2 pets to help you\
get started on your Mir journey.\ \
<Close/@exit>

#IF
ISCASTLEMASTER
#ACT
SendMsg 1 "Sabuk Wall Lord < %S> has logged on!"
break

#IF
ISCASTLEGUILD
#ACT
SENDMSG 1 "Sabuk Wall Member < %S> has logged on!"


#IF
CHECKLEVELEX < 10 (can change to whatever level you want)
CHECKSLAVECOUNT = 0 (<--avoids spawning pets for NEW HUMANS)
#ACT
RECALLMOB OMA 1 (<--recalls a level 1 oma)
RECALLMOB OMA 2 (<--recalls a level 2 oma)
#SAY
Since you are STILL below the level of 10, your noob pets have\
been revived.\ \
<Close/@exit>


or you could have somthing like:

[@Login]
#IF
CHECKLEVELEX < 10 <<<< you can put what ever u feel suits you (players level)
CHECKSLAVECOUNT = 0
#SAY
Hello <$USERNAME>, seen as you are still under\
level 10 I will allow you to choose a pet from the\
list given.\ \
<Choose a pet/@choose> \
<No Thanks/@exit>

[@choose]
#SAY
Choose a pet from below.\ \
<Oma Please/@oma> <Yeti Please/@yeti> \ \
(You can add more here if nessecery)

[@oma]
RECALLMOB OMA
RECALLMOB OMA
sendmsg 6 "You have received 2 Oma pets."

[@yeti]
RECALLMOB Yeti
RECALLMOB Yeti
sendmsg 6 "You have received 2 Yeti pets."


Maybe somthing looking for somthing Different?

Mon Drop Tokens To Get Pet:

Example for drop list:

WoomaTaurus.txt
1/2 WoomaToken (or whatever you would lie to call the item)

Script example:

[@main]
Here you can summon pets if you have acquired the correct item\
Which do you have?\
<WoomaTaurus/@wooma>\
<Close/@exit>

[@wooma]
To summon this monster as a pet, you will need one\
WoomaToken. Do you have it?\ \
<Yes/@wooma1>------------<Go Back/@main>\
<No/@exit>

[@wooma1]
#IF
CHECKSLAVECOUNT < 1 (<---makes so they can have 2 pets at a time)
CHECKITEM WoomaToken 1
#ACT
TAKE WoomaToken 1
RECALLMOB WoomaTaurus
#SAY
There you are, enjoy!\ \ \
<Thanks/@exit>
#ELSESAY
You don't have it...\ \ \
<Back/@main>\
<Exi/@exit>

you may need to change the stuff around to suit your needs,this is just an example.

hope this helps out
 
Last edited: