marwan Posted October 29, 2012 Posted October 29, 2012 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 October 29, 2012 Posted October 29, 2012 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)); + }
marwan Posted October 29, 2012 Author Posted October 29, 2012 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
disorder25 Posted November 1, 2012 Posted November 1, 2012 I think you need a check for same ip. If player kill a box he still gets the points.
marwan Posted November 1, 2012 Author Posted November 1, 2012 I think you need a check for same ip. If player kill a box he still gets the points. OK i will update it , Thanks
MarKoM Posted November 18, 2012 Posted November 18, 2012 Thanks for sharing this with us its reallt nice and useful :)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now