PHP Code:
say_title("King Powers")
say("What monster you want to spawn?")
local c = select("Elite demon king", "Epic ninetails", "Epic Chief orc", "Epic Giant turtle", "Cancel")
if c == 1 then
price = 300000000
mob = 1092
elseif c == 2 then
price = 200000000
mob = 1903
elseif c == 3 then
price = 200000000
mob = 693
elseif c == 4 then
price = 200000000
mob = 2192
else
return
end
say_title("King Powers")
say("")
say("Price for this powers is:")
say(price.." Gold.")
say("")
say("Do you want to use this?")
local b = select("Yes","No")
if b == 2 then
return
end
kingpowers.check_gold(price)
kingpowers.pay_gold(price)
mob.spawn(mob, pc.get_local_x(), pc.get_local_y , 1, 1, 1)
this is the part that doesn't work, it goes all the way untill the mob needs to be spawned, but it doesn't work.
with advanced quest writing i mean, stuff like
PHP Code:
kingpowers.check_gold(price)
kingpowers.pay_gold(price)