Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------------------------------------
- -- Autor: Svope.
- -- Copyright ©2014 All Rights Reserved.
- -- Zakaz publikacji i sprzedaży.
- ----------------------------------------------
- quest change_gold begin
- state start begin
- when 80003.use or 80004.use or 80005.use or 80006.use or 80007.use or 80008.use begin
- local Cost = {
- [80003] = 50000, [80004] = 100000, -- SREBRNE SZTABKI
- [80005] = 500000, [80006] = 1000000, [80007] = 2000000, -- ZŁOTE SZTABKI
- [80008] = 500000000, -- BRYŁA ZŁOTA
- }
- if pc.get_gold()+Cost[item.vnum] >= 2000000000 then
- syschat("Stan Twoich Yang jest zbyt wysoki.")
- else
- pc.remove_item(item.vnum, 1)
- pc.change_gold(Cost[item.vnum])
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment