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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock