Guest User

Untitled

a guest
Jun 4th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.72 KB | None | 0 0
  1. ----------------------------------------------
  2. -- Autor: Svope.
  3. -- Copyright ©2014 All Rights Reserved.
  4. -- Zakaz publikacji i sprzedaży.
  5. ----------------------------------------------
  6. quest change_gold begin
  7.     state start begin
  8.         when 80003.use or 80004.use or 80005.use or 80006.use or 80007.use or 80008.use begin
  9.             local Cost = {
  10.                 [80003] = 50000, [80004] = 100000, -- SREBRNE SZTABKI
  11.                 [80005] = 500000, [80006] = 1000000, [80007] = 2000000, -- ZŁOTE SZTABKI
  12.                 [80008] = 500000000, -- BRYŁA ZŁOTA
  13.             }
  14.             if pc.get_gold()+Cost[item.vnum] >= 2000000000 then
  15.                 syschat("Stan Twoich Yang jest zbyt wysoki.")
  16.             else
  17.                 pc.remove_item(item.vnum, 1)
  18.                 pc.change_gold(Cost[item.vnum])
  19.             end
  20.         end
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment