Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest ingot_manage begin
- state start begin
- when 80005.use or 80006.use or 80007.use or 80008.use begin
- local MAX_GOLD = 1000000000000000
- local nugget = 100000000
- local amount = item.get_value(0)
- if pc.is_trading() then
- syschat("|cffffc700|H|h<Informacja>:|h|r |cffff3333|H|hNie możesz użyć przedmiotu podczas handlu.|h|r")
- return
- end
- if item.get_vnum() == 80005 or item.get_vnum() == 80006 or item.get_vnum() == 80007 then
- if item.remove(nugget/amount) then
- pc.give_item2(80008)
- elseif item.remove(10) then
- if pc.get_money() + amount*10 > MAX_GOLD then
- syschat("|cffffc700|H|h<Informacja>:|h|r |cffff3333|H|hPosiadasz za dużo Yang.|h|r")
- else
- pc.change_gold(amount*10)
- end
- elseif item.remove() then
- if pc.get_money() + amount > MAX_GOLD then
- syschat("|cffffc700|H|h<Informacja>:|h|r |cffff3333|H|hPosiadasz za dużo Yang.|h|r")
- else
- pc.change_gold(amount)
- end
- end
- elseif item.get_vnum() == 80008 then
- if item.remove() then
- if pc.get_money() + amount > MAX_GOLD then
- syschat("|cffffc700|H|h<Informacja>:|h|r |cffff3333|H|hPosiadasz za dużo Yang.|h|r")
- else
- pc.change_gold(amount)
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement