|
You last visited: Today at 01:02
Advertisement
Coins Ingame geben.
Discussion on Coins Ingame geben. within the Metin2 Private Server forum part of the Metin2 category.
03/09/2012, 21:14
|
#1
|
elite*gold: 130
Join Date: Sep 2010
Posts: 587
Received Thanks: 264
|
Coins Ingame geben.
Hallo,
Ich habe mir die Questlib-Erweiterung von Mijago installiert und wollte nun über eine Quest Coins geben, als Belohnung.
Hier die MySQL Query:
Code:
mysql_query("UPDATE account.account,player.player SET account.coins = account.coins+1000 WHERE account.id = player.account_id AND player.name = \'"..pc.get_name().."\')
Leider funktioniert es nicht.
make.py Fehlermeldung:
Code:
Error occured on compile ingame_coins.quest
(Es muss an dieser Zeile liegen, da wenn ich sie auskommentiere kein Fehler auftritt)
Vielen Dank für Hilfen.
Gruß
'-SkyLiiNe-'
|
|
|
03/09/2012, 22:10
|
#2
|
elite*gold: 0
Join Date: Oct 2009
Posts: 4,086
Received Thanks: 3,786
|
PHP Code:
quest is_coins begin
state start begin
when 30252.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 = "dein user"
local DB_PASS = "dein mysql pw"
local WERT = 5000
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(item.vnum, 1)
end
end
end
local DB_USER und local DB_PASS anpassen
|
|
|
03/09/2012, 22:19
|
#3
|
elite*gold: 130
Join Date: Sep 2010
Posts: 587
Received Thanks: 264
|
Vielen Dank!
funktioniert.
|
|
|
03/09/2012, 22:22
|
#4
|
elite*gold: 191
Join Date: May 2009
Posts: 1,214
Received Thanks: 2,597
|
im mysql_query musst du \ immer 2x angeben, da der qc compiler es sonst rausnimmt.
dh
mysql_query("UPDATE account.account,player.player SET account.coins = account.coins+1000 WHERE account.id = player.account_id AND player.name = \\'"..pc.get_name().."\\'","root","PASSWORT")
|
|
|
03/09/2012, 22:52
|
#5
|
elite*gold: 0
Join Date: Apr 2010
Posts: 565
Received Thanks: 69
|
PHP Code:
quest is_coins begin
state start begin
when 30251.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 = "euer navicat pw"
local WERT = 15000
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(item.vnum, 1)
end
end
end
PHP Code:
quest is_coins begin
state start begin
when 30252.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 = "eire navicat pw"
local WERT = 5000
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(item.vnum, 1)
end
end
end
PHP Code:
quest is_coins begin
state start begin
when 30253.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 = "euer navicat pw"
local WERT = 25000
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(item.vnum, 1)
end
end
end
hoffe kan dir da mit helfen
|
|
|
03/09/2012, 23:15
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 4,086
Received Thanks: 3,786
|
Quote:
Originally Posted by xgangsterx1
PHP Code:
quest is_coins begin
state start begin
when 30251.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 = "euer navicat pw"
local WERT = 15000
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(item.vnum, 1)
end
end
end
PHP Code:
quest is_coins begin
state start begin
when 30252.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 = "eire navicat pw"
local WERT = 5000
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(item.vnum, 1)
end
end
end
PHP Code:
quest is_coins begin
state start begin
when 30253.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 = "euer navicat pw"
local WERT = 25000
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(item.vnum, 1)
end
end
end
hoffe kan dir da mit helfen
|
Schön aus meinen Files kopieren und damit angeben? Fail xD
Der Einizige andere der das recht hat diese Posten ist mein ehmaliger Quester
|
|
|
03/09/2012, 23:19
|
#7
|
elite*gold: 0
Join Date: Jan 2010
Posts: 1,916
Received Thanks: 538
|
Quote:
Originally Posted by Ocelot2606
Schön aus meinen Files kopieren und damit angeben? Fail xD
Der Einizige andere der das recht hat diese Posten ist mein ehmaliger Quester
|
Wo ist er denn am angeben? Vollidiot *facepalm* er wollte nur helfen...
|
|
|
 |
Similar Threads
|
Hen CMS Coins beim spenden automatisch Coins geben
05/17/2011 - Metin2 Private Server - 2 Replies
Ja wieder mal nä frage und zwar wenn man beim hen script ja spendet ob das möglich ist das er bei 10€ z.b. 100 Coins kriegt, bei 25€ 250 Coins ect.
Wäre dankbar wenn das einer machen würde.
|
[How to]Coins geben *HOT*
05/25/2010 - Metin2 Guides & Templates - 8 Replies
Hi,
Heute zeige ich euch wie ihr einem Acc Coins geben könnt damit man z.B. im Itemshop einkaufen kann. Falls es so ein TuT schon gibt dann SRY aber ich hab nichts gefunden:handsdown:
Also kommen wir zum
WICHTIG: Es muss euer Server sein damit ihr in die DB connecten könnt.
1. Geht in die DB und connectet in euren Server.
2. klickt auf Account
|
[HOW TO]Neuen NPCs Namen geben(InGame sichtbar)
02/17/2010 - Metin2 PServer Guides & Strategies - 10 Replies
Hallo,
in diesem Tutorial zeige ich euch wie ihr neuen NPCs Namen geben könnte ohne den Clienten zu verändern!
Los geht's :)
Es gibt 2 Varianten:
1. Ihr habt den neuen NPC noch nicht eingefügt
2. Ihr habt sie schon eingefügt
1.
Als erstes Anhang runterladen
!!!!Server runterfahren!!!!
|
All times are GMT +1. The time now is 01:03.
|
|