Jump to content

Recommended Posts

Posted

Hello mxc , I have something new

 

when you kill somone by pvp only you get +2 kill points you know your kill points by npc or .kill command.

By kill points you can buy things like(heal , reuse , bsoe) based on Vampir .donate command.

Every thing i.e heal cost a-beep-t kill pts (I will make configs soon).

You can access shop from the npc or from .killshop command.

Iwill update it later and will add configs...

 

Video

 

 

Download

http://pastebin.com/274vhN7c

and the HTML Files put into html folder

http://www.mediafire.com/?ee688e9mie9tyfo

 

Any problem please report

 

oh forgot , you have to make new column in character.sql

name it killpts ,small integer  and allow null

 

Guest Elfocrash
Posted

at the savePts() method no statement.close();?

at the increasePvpKills() method you should not use the savePts() method. Imagine all these funny update connection. Better save the points on a object and save them in db on logout/dc.

 

also good idea to use vampir's donate code as a base but you forgot to rename this

+                       else if(_command.startsWith("_donate"))
+                       {
+                               Donate.onBypass(activeChar, _command.substring(8));
+                       }

Posted

at the savePts() method no statement.close();?

at the increasePvpKills() method you should not use the savePts() method. Imagine all these funny update connection. Better save the points on a object and save them in db on logout/dc.

 

also good idea to use vampir's donate code as a base but you forgot to rename this

+                       else if(_command.startsWith("_donate"))
+                       {
+                               Donate.onBypass(activeChar, _command.substring(8));
+                       }

k i will update

and about vampir whats wrong with it as long it doesnot affect the code

Edit : post updated

  • 2 weeks later...
  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...