Hi Leute,
bei mir funktioniert die DR Quest nicht, sie gibt zwar keinen Error aus,
jedoch überweist sie einem bei Benutzung keine Coins!
Quest:
quest l*****_coins begin
state start begin
when 80014.use begin
give_dm(100)
chat("Du hast 100 L*****-Coins erhalten!")
pc.remove_item(80014, 1)
end
when 80015.use begin
give_dm(500)
chat("Du hast 500 L*****-Coins erhalten!")
pc.remove_item(80015, 1)
end
when 80016.use begin
give_dm(1000)
chat("Du hast 1000 L*****-Coins erhalten!")
pc.remove_item(80016, 1)
end
end
end
QuestLib:
function give_dm(z)
os.execute("mysql -u root account --execute='UPDATE account SET coins = coins + ".. z .." WHERE id = ".. pc.get_account_id() ..";'")
os.execute("mysql -u root log --execute='INSERT INTO voucher_log (account_id, pocet, coins) VALUES (".. pc.get_account_id() ..", ".. z ..", NOW());'")
end
MFG Prox