Jump to content

Achievement System [ Script Only ]


Recommended Posts


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  07/07/12
  • Last Seen:  

What is wrong about this? Thanks alot.

This is the error i get from map server. " scipt:set: not a variabler"

f5966a.png

achievement_system.txt

Link to comment
Share on other sites

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.

×
×
  • Create New...