script help please

Play Now

betsy

Dedicated Member
Dedicated Member
May 25, 2008
229
0
43
ok heres my script (well part of it), i have woomakingegg in bag, however npc wont take it and wont give me pet, just goes straight to the elsesay part

#IF
CHECKSLAVECOUNT 0
CHECKITEM woomakingegg
#ACT
take gold 1000000
take woomakingegg
recallmob woomaking 1 2
#SAY
you now have pet
#ELSESAY
go away you have no egg <$USERNAME>
 

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
375
330
#IF
CHECKSLAVECOUNT 0
CHECKITEM woomakingegg 1 < always need to have a # of to check
#ACT
take gold 1000000
take woomakingegg 1 <always need to have a # of to check
recallmob woomaking 1 2
#SAY
you now have pet
#ELSESAY
go away you have no egg <$USERNAME>
 
Upvote 0

betsy

Dedicated Member
Dedicated Member
May 25, 2008
229
0
43
[@wk]
#IF
CHECKSLAVECOUNT 0
CHECKITEM woomakingegg 1
#ACT
take gold 1000000
take woomakingegg 1
recallmob hen 1 2
#SAY
you now have pet
#ELSESAY
go away you have no egg <$USERNAME>


ok there we go added it but it stll wont work (had to put hen as i dont have woomaking on my computer at the moment lol)
 
Upvote 0

betsy

Dedicated Member
Dedicated Member
May 25, 2008
229
0
43
yay its works thank you for your help iceman :)

well the getting the pet works however its exploitable and can be used over and over again, is there a way of adding something so that if you already have a pet you cannot get another one?
 
Last edited:
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
yay its works thank you for your help iceman :)

well the getting the pet works however its exploitable and can be used over and over again, is there a way of adding something so that if you already have a pet you cannot get another one?

The first script is fine, you need to add an equals after checkslavecount.

#IF
CHECKSLAVECOUNT = 0

This will work fine!
 
Last edited:
Upvote 0

betsy

Dedicated Member
Dedicated Member
May 25, 2008
229
0
43
yeah thank you:), i just put that as a test basically as redoing all the database and so needed a mob that i new had to test scriipt :)
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
tut tut iceman lol

did u think they was amount or something lol.. if u want say 2x pets u gotta do

recallmob hen 1 2
recallmob hen 1 2

recallmob hen 1 2 0 1 <--- this makes it look like it has clear ring aswlel lol
 
Upvote 0

Breezer

Legend
Legendary
Jul 16, 2004
3,684
845
345
if you use 1 2 0 10 you get a level 1 mob that goes yellow green red purple and then clear :D
 
Upvote 0