tez mam win 7 i wszystko elegancko smiga xd
local hp = positive(hpmax - itemcount(hptype)) * hpprice
if itemcount ("hptype") < hpmax
then
npcsay ("hi")
wait (1000,2000)
npcsay ("withdraw "..hp)
wait (1000,2000)
npcsay ("yes")
wait (1000,2000)
gotolabel ("GOBUYHP")
else
gotolabel ("GOHUNT")
-- Potions Settings --
hptype = "health potion"
hpmax = 10
hpmin = 5
hpprice = 45
if itemcount ("hptype") < hpmax
if itemcount (hptype) < hpmax
local a1 = buymana - itemcount(mana_name)
local b1 = a1 * manaprice
local c1 = b1
wait(1000)
say("hi")
wait(1500)
npcsay('deposit all')
wait(1500)
npcsay('yes')
wait(1000)
npcsay('withdraw')
wait(1000)
npcsay(c1)
wait(1000)
npcsay('yes')
wait(1000)
npcsay('balance')
wait(1000)
--**For REFILL**
buymana = 150
manaprice = 50
mana_name = 'mana potion'
Ostatnio zmieniony przez Criss26 : 24-11-2012, 15:07
if itemcount ("hptype") < hpmax
'Jeśli itemów o nazwie "hptype" jest mniej niż 10...'
if itemcount (hptype) < hpmax
'Jeśli itemów o nazwie "health potion" jest mniej niż 10...
Ostatnio zmieniony przez Young Worrior : 24-11-2012, 15:11
hptype = "health potion"
Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)
Zakładki