1. quest elliep begin
  2. state start begin
  3. when 50130.use begin
  4. local DB_KULLANICI = "root"
  5. local DB_SIFRE = "NAVICATSIFRE"
  6. local EPSAYISI = 50
  7. local ID = pc . get_account_id ( )
  8. local g = mysql_query ( "SELECT coins FROM account.account, player.player where account.id = player.account_id and player.name = \'" .. pc . get_name ( ) .. "\'" )
  9. say_title("Ep Bozdurma:")
  10. say_reward("Bu itemi yok edip karsiliginda hesabina")
  11. say_reward("50 EP yuklenmesini ister misin?")
  12. local isim = pc.get_name()
  13. local s = select("Evet","Hayir")
  14. if s == 1 then
  15. say("Peki Epin hesabina yuklendi")
  16. wait()
  17. pc.remove_item(50130)
  18. local ISLEM = "UPDATE account.account SET coins = coins + " .. EPSAYISI .. " WHERE id = " .. ID .. ";"
  19. os.execute ( "mysql --host=SERVERIP --user=" .. DB_KULLANICI .. " --password=" .. DB_SIFRE .. " --execute='" .. ISLEM .. "'" )
  20. elseif s == 2 then
  21. end
  22. end
  23. end
  24. end