Code:
quest kekse begin
state start begin
when 27990.use begin
say_title("Coins auffüller")
say("Coins auffüllen?")
local s=select("Ja", "Nein")
if s==2 then return end
if pc.count_item(item.vnum)==0 then chat("CHEATER") return end
local DB_USER = "root"
local DB_PASS = "daroo"
local WERT = 5
local ID = pc.get_account_id()
local QUERY = "UPDATE account.account SET coins = coins + "..WERT.." WHERE id = "..ID..";"
os.execute("mysql --host=localhost --user="..DB_USER.." --password="..DB_PASS.." --execute='"..QUERY.."'")
pc.remove_item(27990, 1)
end
end
end
Code:
must start with ´quest´ kekse.quest:1:Error occured on compile kekse.quest
MFG Eagle94







