Mir source code/files
This is a discussion on Mir source code/files within the Legend of Mir 2 forums, part of the - Old Archived Files category; I once played a privated server where you started with a pet until you reached a certain level. Anyone know ...
-
Member
Mir source code/files
I once played a privated server where you started with a pet until you reached a certain level. Anyone know how to actualy impliment that into my own server?
Thanks,
Rossypoo.
-
-
Member
Re: Mir source code/files
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>
hope this helps out. :winky:
-
Member
Re: Mir source code/files
Thanks alot ^^
There isn't any way that the user could actualy choose which pet they wanted is there? I thought about giving the user semi-GM commands so they could call what monster they wanted. But I'd need restrictions. Maybe their level determins which monsters they can call, something along those lines. Maybe a stupid question, just wondering x)
Thanks for the code again x)
-
Registered
Re: Mir source code/files
yea u could have something like
[@Login]
#IF
CHECKLEVELEX < 10
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)
[@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."
-
Member
Re: Mir source code/files
Thanks alot ^^ really appreciate the help. Think I can work this in with that I'm trying to do. I wanted to make sure you could like limit the monsters that people can summon. Hope you don't mind annother question xD lol, but is it possible to have it so if the player has a specific item, or has 'tamed/killed' the monster, then they can summon it. And if not display a message saying they haven't tamed/killed it before. It seems a bit far fetched to me, but just wondering, wanted to see if it was possible x) lol.
p.s - the taming bit is the necessary bit. It need to be something that says if the player has come in contact with the monster / killed it, then they can summon it later in game.
Hope it makes SOME sence =P lol
Thanks again for the code JamieWeikl/boothy
-
Member
Re: Mir source code/files
Just make a pet NPC that requires items that the monsters drop to be able to summon them. Then add that item to SQL, and add to mon drop list.
Example for drop list:
WoomaTaurus.txt
1/2 WoomaToken (or whatever lol)
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>
Obviously you need to change stuff to suit your needs, just an example.
-
Member
Re: Mir source code/files
Thanks alot for the help x) I may have a few more questions later on, but this is great for now. Thanks again JamieWeikl/boothy
Rossypoo.
-
Member
Re: Mir source code/files
Just wonderrring x)
[EDIT]
Right, the NPC will be used to summon the monsters with tokens. Can it be set so the player can have 2 pets if he has 2 items/tokens, and only 1 pet if he only has 1 item/token. Without taking the players item? To stop the user from summoning the same monster * amount of times with the same token. I that makes sence xD
Thanks.
Last edited by Rossypoo; 29-06-08 at 08:03 PM.
-
Member
Re: Mir source code/files
yeah just use checkslavecount
Have them select how many tokens they have.
If they have 3 tokens:
#IF
checkitem mobtoken 3
checkslavecount < 3
if they only have 1 token
#IF
checkitem mobtoken 1
checkslavecount = 0
-
Member
Re: Mir source code/files
Thanks. I shall try and get these bad boys working before I tackle anything else xD Thanks alot.
Rossypoo.
-
Member
Re: Mir source code/files
Hey, any ideas on these?
I'm wanting the mobs to attack the players pet first, before it attacks the player. is this possible?
Any help welcome x)
Thanks.
Last edited by Rossypoo; 02-07-08 at 12:54 PM.
-
Member
Re: Mir source code/files
Don't think thats possible less its coded into the mobs AI
-
Member
Re: Mir source code/files
Got annother quick question xD
Right, I' was experimenting with all the code that were posted in this thread, and I was just wondering how you seperate the bits of code when they your not supose to make multiple [@logins] - example;
[@login]
#IF
ISNEWHUMAN
CHECKJOB Warrior
#ACT
RECALLMOB yob
<Close/@exit>
#IF
ISNEWHUMAN
CHECKJOB Wizzard
#ACT
RECALLMOB hen
<Close/@exit>
#IF
ISNEWHUMAN
CHECKJOB Taoist
#ACT
RECALLMOB oma
<Close/@exit>
This code was meant to;
@login
IF charjob wizzard
recall hen
IF charjob Warrior
recall yob
IF charjob Taoist
recallmob oma
But at the moment if I login as a warrior, I get a yob and hen, and if I log in as a tao I get a yo and oma o___O
[I've tryed putting it into all one if statment, #ENDIF, BREAK, and just generaly messing about - but I can't work how to get different things to happen to different classes on login]
Any help appreciated, thanks.
Rossypoo
Last edited by Rossypoo; 21-07-08 at 08:12 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules