Jump to content

Recommended Posts

Posted

Hello rathena. 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! :)


OMG I posted in wrong category.  /hum

My bad.

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...