checkjob for pets

hershire

LOMCN Veteran
Veteran
Loyal Member
Sep 5, 2004
427
10
45
heyas pardon me for the nub question heres my script

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

works fine summons mobs etc until i click on Kill then it crashes the window should i be checking job another way?
 

hershire

LOMCN Veteran
Veteran
Loyal Member
Sep 5, 2004
427
10
45
sorry heres what ive got

[@main]
Hello <$USERNAME>\
I'm assuming you came to me for a pet?\
Would you like the\
<Best/@pet> pet for your level?\
or\
<Choose/@choosecheckjob> your own pet from a list?\
<No Thanks!/@exit>

;==============================
;Check For Class
;==============================
[choosecheckjob]
#IF
checkjob wizard
#ACT
goto @5choose
#ELSEACT
goto @2choose

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

[@5choose]
#IF
CHECKSLAVECOUNT 1
#SAY
You already have pets!\
Would you like me to kill them for you?\
<Yes/@kill>\
<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+>\

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

[@2choose]
#IF
CHECKSLAVECOUNT 1
#SAY
You already have pets!\
Would you like me to kill them for you?\
<Yes/@kill>\
<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 :)\
<Main Menu/@main>\
<Exit/@exit>\

[@killchoose]
#IF
CHECKSLAVECOUNT 1
#ACT
KILLSLAVES
#SAY
Hope you were sure about that :)\
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 I can <kill/@killchoose>\
Your pets and let you start over!\
<Exit/@exit>\

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

caught me in the middle of editing lol so ya its not done yet ><

---------- Post added at 11:07 PM ---------- Previous post was at 11:05 PM ----------

sorry im still getting used to the scripting language and i may have mixed a few things up i know in c# u can use for example

#IF
checklevel != 10
#SAY
your not level 10!

can u use not equal to and stuff like that in these scripts?
 
Upvote 0

Tai

HEAD CAPTAIN
Staff member
Administrator
May 11, 2003
14,769
3
3,342
495
United Kingdom
sorry im still getting used to the scripting language and i may have mixed a few things up i know in c# u can use for example

#IF
checklevel != 10
#SAY
your not level 10!

can u use not equal to and stuff like that in these scripts?

You can use like >= for greater than or equal to etc.
 
Upvote 0

hershire

LOMCN Veteran
Veteran
Loyal Member
Sep 5, 2004
427
10
45
nah killslaves works fine, seems when i check for 2 or more things in a row it can sometimes bug up the window in game , maybe put a break; in between may help?

---------- Post added 26-07-2011 at 04:41 AM ---------- Previous post was 24-07-2011 at 11:55 PM ----------

im a dumbass if you checklevelex it works but not if u just checklevel har har
 
Upvote 0

T0MMY

LOMCN Veteran
Veteran
Aug 5, 2007
2,153
24
125
United Kingdom
Tip.

CHECKLEVEL will check your exact level.
CHECKLEVELEX (>,<,=) will check your either greater, lower or equal.

Don't use checklevel.
 
Upvote 0