My little Pet Renter issues!

hershire

LOMCN Veteran
Veteran
Loyal Member
Sep 5, 2004
427
10
45
Figured id just condense it to one thread lol!
Heres my script (without checkjob)

Code:
; ===================================
; Npc Def NPC File : PetRental-0
; Pet Rental npc in Bichon Wall
; -----------------------------------
; Name: PetRental
; Job: 
; Map No: 0
; Pos X 332
; Pos Y 270
; File name: *removed*
; Comment: Pet Rental npc in Bichon Wall

;================================================= =
;
[@main]
#IF 
CHECKSLAVECOUNT 1
#SAY
You already have pets <$USERNAME>!\
Would you like me to <Kill/@kill> them for you?\
<No Thanks!/@exit>\
#ELSESAY
Hello <$USERNAME>\
I'm assuming you came to me for a pet?\
Would you like the\
<Best/@pet> pets for your level?\
or\
<Choose/@choose> your own pets from a list?\
<No Thanks!/@exit>

;==============================
;Check For Pets
;==============================

[@choose]
#IF 
CHECKSLAVECOUNT 1
#SAY
You already have pets <$USERNAME>!\
Would you like me to <Kill/@kill> them for you?\
<No/@exit>\

;==============================
;Manually Choose Pets By Level
;==============================

#ELSESAY
Pick a level range\
Level <1-10/@1-10>\
Level <11-20/@11-20>\	
Level <21-30/@21-30>\
Level <31-40/@31-40>\
Level <41-50/@41-50>\
Level <51-60/@51-60>\
Level <61-70/@61-70>\
Level <71-80/@71-80>\
Level <81-90/@81-90>\
Level <91-100/@91-100>\
Level <101-110/@101-110>\
Level <111-120/@111-120>\
Level <121-130/@121-130>\
Level <131-140/@131-140>\
Level <141-150/@141-150>\
Level <151-160/@151-160>\
Level <161-170/@161-170>\
Level <171-180/@171-180>\
Level <181-190/@181-190>\
Level <191-200+/@191-200+>\

;==============================
;Kill Pets
;==============================

[@kill]
#IF 
CHECKSLAVECOUNT 1
#ACT
KILLSLAVES 
#SAY
Hope you were sure about that <$USERNAME>!\
Would you like the\
<Best/@pet> pets for your level?\
or\
<Choose/@choose> a new pet?\
<Exit/@exit>\

[@killchoose]
#IF 
CHECKSLAVECOUNT 1
#ACT
KILLSLAVES
#SAY
Hope you were sure about that <$USERNAME>!\
Would you like the\
<Best/@pet> pets for your level?\
or\
<Choose/@choose> a new pet?\
<Exit/@exit>\

;==============================
;Level 1-10 Pets
;==============================

[@1-10]
#SAY
Here are your choices:\
<Forest Yeti's/@5forestyeti>\
<Spitting Spider's/@5spittingspider>\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\

[@5forestyeti]
#IF
checklevel 1
#ACT
RECALLMOB ForestYeti 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
break
<Exit/@exit>\

[@5spittingspider]
#IF
checklevel 1
#ACT
RECALLMOB SpittingSpider 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\
break

;==============================
;Level 11-20 Pets
;==============================

[@11-20]
#IF
checklevel 11
#SAY
Here are your choices\
These pets cost 500 Gold!\
<Black Maggot's/@5blackmaggot>\
<Dark's/@5dark>\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
#ELSESAY
You are not level 11 or higher yet!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

[@5blackmaggot]
#IF
checkgold 500
#ACT
take gold 500
RECALLMOB BlackMaggot 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\
#ELSESAY
You do not have 500 gold!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

[@5dark]
#IF
checkgold 500
#ACT
take gold 500
RECALLMOB Dark 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\
#ELSESAY
You do not have 500 gold!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

;==============================
;Level 21-30 Pets
;==============================

[@21-30]
#IF
checklevel 21
#SAY
Here are your choices\
These pets cost 1000 Gold!\
<Flaming Wooma's/@5flamingwooma>\
<Red Boars's/@5redboar>\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
#ELSESAY
You are not level 21 or higher yet!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

[@5flamingwooma]
#IF
checkgold 1000
#ACT
take gold 1000
RECALLMOB FlamingWooma 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\
#ELSESAY
You do not have 1000 gold!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

[@5redboar]
#IF
checkgold 1000
#ACT
take gold 1000
RECALLMOB RedBoar 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\
#ELSESAY
You do not have 1000 gold!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

;==============================
;Level 31-40 Pets
;==============================

[@31-40]
#IF
checklevel 31
#SAY
Here are your choices\
These pets cost 5000 Gold!\
<Evil Snake's/@5evilsnake>\
<Wooma Guardian's/@5woomaguardian>\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
#ELSESAY
You are not level 31 or higher yet!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

[@5evilsnake]
#IF
checkgold 5000
#ACT
take gold 5000
RECALLMOB EvilSnake 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\
#ELSESAY
You do not have 5000 gold!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

[@5woomaguardian]
#IF
checkgold 5000
#ACT
take gold 5000
RECALLMOB WoomaGuardian 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\
#ELSESAY
You do not have 5000 gold!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

;==============================
;Level 41-50 Pets
;==============================

[@41-50]
#IF
checklevel 41
#SAY
Here are your choices\
These pets cost 25000 Gold!\
<Woomataurus's/@5woomataurus>\
<Crossbow Oma's/@5crossbowoma>\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
#ELSESAY
You are not level 41 or higher yet!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

[@5woomataurus]
#IF
checkgold 25000
#ACT
take gold 25000
RECALLMOB Woomataurus 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\
#ELSESAY
You do not have 25000 gold!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>\
break

[@5crossbowoma]
#IF
checkgold 25000
#ACT
take gold 25000
RECALLMOB CrossbowOma 5
#SAY
Let me know if you change your mind <$USERNAME> I can <Kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\
#ELSESAY
You do not have 25000 gold!\
Take me <back/@choose> to level range selection.\
No thanks I would like to <Exit/@exit>
break

[test]
 
Last edited:

hershire

LOMCN Veteran
Veteran
Loyal Member
Sep 5, 2004
427
10
45
it already checks before they even enter the selection screen figured one check better than one for each pet

---------- Post added at 04:08 AM ---------- Previous post was at 03:49 AM ----------

well i got it sorted mostly but im still confused when i end my script without the [test] on the end i get that same thing where the window crashes when i click Kill after i get new pets, however if i throw in a dummy code like [test] at the end it works fine lol, everywhere in between is kuz i was missing break , was instead using break; >< slowly but surely im getting used to the language lol

going to work on the auto pet feature which will select the best pets for their level , any other ideas for this npc that would be neat or handy?
 
Upvote 0