Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.11 KB | None | 0 0
  1. quest exp  begin
  2.         state start  begin
  3.                 when 9003.chat."Expokurwy" with pc.is_gm()  begin
  4.                         say_title("Oddawanie expa")
  5.                         say("Czy chcesz pozbyc sie")
  6.                         say("pewnej ilosci punktow doswiadczenia?")
  7.                         local x = select("Tak", "Nie")
  8.                         if x == 2 then
  9.                         say_title("Zegnaj")
  10.                         say("Spoko, moze kiedy indziej")
  11.                                 return
  12.                         elseif x == 1 then
  13.                                 say_title("Ilosc PD")
  14.                                 say("Napisz ile punktow doswiadczenia")
  15.                                 say("Chcesz oddac")
  16.                                  local s=input()
  17.                                  
  18.                     if pc.get_exp()+s<pc.get_exp() then
  19.                     say_title("Oszust?!")
  20.                     say("Ojojoj pogniewamy sie")
  21.                     say("Nie oszukuj !!")
  22.                     return
  23.                     elseif pc.get_exp()<s then
  24.                     say_title("Brak PD")
  25.                     say("Niestety nie masz tyle")
  26.                     say("Punktow doswiadcznia")
  27.                     return
  28.                     else                                 
  29.                                  pc.give_exp2(-s)
  30.                                  say("Gratulacje oddales ".. s .." PD")
  31.                         end
  32.              
  33.                 end
  34. end
  35. end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement