Zeiyan
New member
Hello hercules!. I just want to share this script i made. I'm fully aware that the coding style sucks, hard to modify and hard to understand (even i have problems reading it when i finished.)
nonetheless i wanted to share it and hopefully someone can optimize it and make it easy to modify and clean the whole thing up (if possible add achievements to make it easier)
NOTE:
for pvp achievement my separate script has variable "KILL" (using ghost's pvp script so don't need to do checking for abuse)
for event achievement i added the variable "evtjunk" to all my custom events
Script:
http://pastebin.com/vBuWaiKd
SQL:
CREATE TABLE IF NOT EXISTS `achievement` ( `id` int(11) NOT NULL auto_increment, `account_id` int(11) NOT NULL default '0', `char_id` varchar(23) NOT NULL default '', `name` varchar(23) NOT NULL default '', `achievement` varchar(23) NOT NULL default '', `val` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY (`id`)) ENGINE=MyISAM;
Please leave comments, tips and advices below. (Hoping to hear from people i learned from, emistry and annieruru!
nonetheless i wanted to share it and hopefully someone can optimize it and make it easy to modify and clean the whole thing up (if possible add achievements to make it easier)
NOTE:
for pvp achievement my separate script has variable "KILL" (using ghost's pvp script so don't need to do checking for abuse)
for event achievement i added the variable "evtjunk" to all my custom events
Script:
http://pastebin.com/vBuWaiKd
SQL:
CREATE TABLE IF NOT EXISTS `achievement` ( `id` int(11) NOT NULL auto_increment, `account_id` int(11) NOT NULL default '0', `char_id` varchar(23) NOT NULL default '', `name` varchar(23) NOT NULL default '', `achievement` varchar(23) NOT NULL default '', `val` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY (`id`)) ENGINE=MyISAM;
Please leave comments, tips and advices below. (Hoping to hear from people i learned from, emistry and annieruru!