Advertisement
Guest User

Untitled

a guest
Apr 10th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. quest compra_exp begin
  2.     state start begin
  3.         when 9003.chat."exp test" begin
  4.             say_title ( "test:" )
  5.             say ( "Compra l'exè ricorda che" )
  6.             say_reward ( "1 exp e' uguale a 1000 YANG" )
  7.             local test == select ( "Continua" , "Esci" )
  8.             if test == 2 then
  9.             return
  10.             elseif test == 1 then
  11.             say_title ( "test:" )
  12.             say ( "Inserisci il numero di exp che vuoi comprare" )
  13.             local exp = input ()
  14.             yang = (exp*1000)
  15.             say ( "Vuoi continuare?" )
  16.             local test2 == select ( "Si" , "No" )
  17.             if test2 == 2 then
  18.             return
  19.             elseif test2 == 1 then
  20.             pc . give_exp2 ( exp )
  21.             pc . changegold ( - yang )
  22.             say_title ( "test:" )
  23.             say ( "ottimo!" )
  24.             say_reward ( "Fattura test:" )
  25.             say_reward ( "Hai acquistato:" ..exp )
  26.             say_reward ( "Hai pagato:" ..yang )
  27.             end
  28.             if pc . gold <= yang then
  29.             say ( "Non hai abbastanza yang!" )
  30.             end
  31.         end
  32.     end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement