[P]DR Quest

03/22/2015 16:39 FroZz97#1
Hi Leute,

bei mir funktioniert die DR Quest nicht, sie gibt zwar keinen Error aus,
jedoch überweist sie einem bei Benutzung keine Coins!

Quest:

QuestLib:
MFG Prox
03/22/2015 16:55 SolWayne#2
---> [Only registered and activated users can see links. Click Here To Register...] <---
03/22/2015 17:37 BizepsSupportAccount#3
Liegt wahrscheinlich an den functions
03/22/2015 17:42 FroZz97#4
Kannst du mir evtl. mal helfen, hab dir bei Skype eine anfrage geschickt :)!
03/23/2015 10:57 -!Kontra!-#5
Selbe problem mit genau der selben quest und 40k files
03/23/2015 11:16 rollback#6
Alle Files mit Vanilla-Core (z.B. Viruz):
Code:
quest coins begin
	state start begin
		when 80014.use or 80015.use or 80016.use begin
			local coins = ({100, 500, 1000})[item.get_vnum()-80013]
			game.mysql_query("UPDATE account.account SET coins = coins+"..coins.." WHERE id = "..pc.get_account_id().." LIMIT 1;")
			item.remove()
			chat("Du hast "..coins.." Coins erhalten.")
		end
	end
end
Rest (Mijagos mysql_query):
Code:
quest coins begin
	state start begin
		when 80014.use or 80015.use or 80016.use begin
			local coins = ({100, 500, 1000})[item.get_vnum()-80013]
			mysql_query("UPDATE account.account SET coins = coins+"..coins.." WHERE id = "..pc.get_account_id().." LIMIT 1;")
			item.remove()
			chat("Du hast "..coins.." Coins erhalten.")
		end
	end
end
03/23/2015 22:49 FroZz97#7
Vielen Dank Sensenmann!