[RELEASE]DM Voucher ingame item as official server
Discussion on [RELEASE]DM Voucher ingame item as official server within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
[RELEASE]DM Voucher ingame item as official server
Hi,
a have tut for dm voucher item as official server.
image
questlib
Code:
function give_dm(z)
os.execute("mysql -u root account --execute='UPDATE account SET cash = cash + ".. z .." WHERE id = ".. pc.get_account_id() ..";'")
os.execute("mysql -u root log --execute='INSERT INTO voucher_log (account_id, pocet, cas) VALUES (".. pc.get_account_id() ..", ".. z ..", NOW());'")
end
quest_functions
Code:
give_dm
table for log db
Code:
CREATE TABLE `voucher_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`account_id` int(10) unsigned NOT NULL,
`pocet` int(10) unsigned NOT NULL,
`cas` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
quest
Code:
quest vouchers begin
state start begin
when 80014.use begin
give_dm(100)
item.remove()
end
when 80015.use begin
give_dm(500)
item.remove()
end
when 80016.use begin
give_dm(1000)
item.remove()
end
end
end
Item_proto is type 18 as quest items
icons download in attachment
tut wie man die icons einfügt oder wo die rein müssen in welcher datei währe nicht schlecht damit man die sieht bei mir sind die unsichtbar kann sie aber nutzen
wenn mir wer dabei helfen könnte bitte eine pn schreiben wo die rein kommen danke
[Sell] Megaupload.com Voucher .Official Resseller 08/05/2011 - Trading - 0 Replies Hi, I'm authorized reseller for Megaupload.com. I can sell voucher or 1 month, 3 months, 1 year, 2 years and lifetime at a cheaper price. Voucher can be used to extend your account or for newly register account.
Price:
1 month : € 8.79
3 months : € 16.79
1 year : € 51.79
2 years : € 70.79
Lifetime : € 172.79
Accept: Moneybookers