Pet NPC problems...

Desolation Mir2 (Med Rate Server)

Infestation

LOMCN n00bie
Oct 26, 2003
3
0
12
Here is my Pet NPC script:
[@main]
Well <$USERNAME> I can offer you many of the mobs in Mir.\
Do you want to buy one?\
---------------------------------------------------------------------\
<Yeah!/@yeah> <Nope/@exit>\

[@yeah]
Well,You Seem Worthy Of My Creatures. Please Make Your Choise.\
-----------------------------------------------------------------------\
<WoomaGuardian/@WGuard>\
<Exit/@exit>\
;--------------------------------------------------------\
[@WGuard]
#IF
CHECKSLAVECOUNT = 1
#ACT
goto @say
#ELSEACT
goto @mob6
[@mob6]
#ACT
RECALLMOB WoomaGuardian 1
break
[@say]
#SAY
You already have too many pets!\\

I have this m2server.exe http://www.lomcn.co.uk/forum/showthread.php?t=28438, which should work with pet rentals, but it just gets these script errors:
script error: CHECKSLAVECOUNT = 1 line:14 : c:\Mirserver\Mir200\Envir\Npc_def\PetNPC-0.txt
script error: RECALLMOB WoomaGuardian 1 line:21 : c:\Mirserver\Mir200\Envir\Npc_def\PetNPC-0.txt

Does anyone know how I can solve this problem please?

ty
 

Dano

Golden Oldie
Golden Oldie
Apr 18, 2006
696
6
105
Wales
soz but i cba to reed all - :P frm wahat im guessing you havent addited it to nep , merchent .. etc..
 
Upvote 0

Infestation

LOMCN n00bie
Oct 26, 2003
3
0
12
Thank you Senture thats half the problem solved :)

Does anyone know the 1.4 command for CHECKSLAVECOUNT?

This would be a great help,

Cheers

EDIT:
Ok I took the CHECKSLAVECOUNT out of the script just to see if the MARRY command would work as RECALLMOB and it just sends a message saying the mob name instead of recalling one.. I dont know if this is as a result of taking out CheckSlaveCount or if its something to do with the Marry command, if anyone has a 1.4 working petNPC script i would be very greatful to see it :agree:
 
Last edited:
Upvote 0

Senture

LOMCN VIP
VIP
Feb 8, 2004
1,529
1
164
This is part of my old 1.4 script:

[@noob]
#IF
checklevel 7
#SAY
Please select the pets you want:\
<BlackMaggot/@bmag> <Centipede/@cent> <Wedgemoth/@weg>\
<Exit/@exit>\

[@bmag]
#IF
checkmarry 3
#ACT
goto @bmag1

#ELSEACT
goto @bmagfail

[@bmagfail]
#SAY
Sorry you currently have 3 pets.\
<Exit/@exit>

[@bmag1]
#IF
checkgold 5000
#ACT
marry mob BlackMaggot
take gold 5000
#SAY
Here is your pet, would you like some more?\
<Yes please/@main-121>\
<No thanks/@exit>\ \

#ELSEACT
goto @bmagfail1

[@bmagfail1]
#SAY
You currently do not have enough money.\
Please come back when you have more.\
<Exit/@exit>\

[@cent]
#IF
checkmarry 3
#ACT
goto @cent1

#ELSEACT
goto @centfail

[@centfail]
#SAY
Sorry you currently have 3 pets.\
<Exit/@exit>

[@cent1]
#IF
checkgold 5000
#ACT
marry mob Centipede
take gold 5000
#SAY
Here is your pet, would you like some more?\
<Yes please/@main-121>\
<No thanks/@exit>\ \

#ELSEACT
goto @centfail1

[@centfail1]
#SAY
You currently do not have enough money.\
Please come back when you have more.\
<Exit/@exit>\

[@weg]
#IF
checkmarry 3
#ACT
goto @weg1

#ELSEACT
goto @wegfail

[@wegfail]
#SAY
Sorry you currently have 3 pets.\
<Exit/@exit>

[@weg1]
#IF
checkgold 5000
#ACT
marry mob WedgeMoth
take gold 5000
#SAY
Here is your pet, would you like some more?\
<Yes please/@main-121>\
<No thanks/@exit>\ \

#ELSEACT
goto @wegfail1

[@wegfail1]
#SAY
You currently do not have enough money.\
Please come back when you have more.\
<Exit/@exit>\
 
Upvote 0