Any1 got 1.9 slave npc script please?

Toddwhite

More like Retodd
Golden Oldie
Jul 28, 2006
1,589
7
124
can sum1 please post me a script as i dnt have a clue of how to do it?
also can u tell me exaxtly wat to do im a noob at this kinda thing?
 

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
slave system works fine on 1.9 its the master system that doesnt

here is a basic script for a slave rental npc

[@main]
#if
checkslavecount > 1
#act
goto @tomany
#elseact
goto @main2

[@main2]
#say
Hello <$USERNAME> welcome to the slave rental service\
Would you like to rent a slave?\ \
<yes/@main3> - <No/@exit>\

[@main3]
Ok after you click "summon" i will give you a slave\
it will cost you 1 million gold\
to equip your slave stand infornt of it and type the\
following command @setslaveuseitem, this will put the\
kit your wearing onto your slave, be aware when you die the\
kit will go into your bag make sure you have space for the\
kit or it will go onto the floor.\
<Summon/@summon1> - <I dont have the cash/@exit>\

[@summon1]
#if
checkgold 1000000
#act
take gold 1000000
recallmob Slave
#elseact
goto @nocash

[@tomany]
#say
Sorry <$USERNAME> you already have a pet\ \
<OK/@exit>\

[@nocash]
#say
Sorry <$USERNAME> it seems you dont have enough cash\ \
<OK/@exit>\


this will allow you to have one slave at the cost of 1mil, you can alter any of the bits, the npc will not work if you already have a pet also you need to make sure that the slave mob is in the monster database
 
Last edited:
Upvote 0

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
where the command says recallmob that means the slave will become your pet, it will attack mobs etc, what other way would you like it to behave ?
 
Upvote 0

Toddwhite

More like Retodd
Golden Oldie
Jul 28, 2006
1,589
7
124
soz im a total idiot :D but i got him working till the point @setslaveuseitem dont work....+ i am facing it lol

in my commands ini i got
getslaveuseitem=getslaveuseitem
@setslaveuseitem=(equip now as i changed)but setslaveuseitem didnt work either

in my setup i got
setslaveuseitem=0
getslaveuseitem=0

any ideas why it wont let my kit it!!?
 
Upvote 0