marwan Posted October 29, 2012 Share 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 Quote Link to comment Share on other sites More sharing options...
Guest Elfocrash Posted October 29, 2012 Share 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)); + } Quote Link to comment Share on other sites More sharing options...
marwan Posted October 29, 2012 Author Share 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 Quote Link to comment Share on other sites More sharing options...
3emu Posted October 30, 2012 Share Posted October 30, 2012 Thank you nice share Quote Link to comment Share on other sites More sharing options...
marwan Posted October 30, 2012 Author Share Posted October 30, 2012 Thank you nice share my pleasure. :) Quote Link to comment Share on other sites More sharing options...
disorder25 Posted November 1, 2012 Share Posted November 1, 2012 I think you need a check for same ip. If player kill a box he still gets the points. Quote Link to comment Share on other sites More sharing options...
Smeagol Posted November 1, 2012 Share Posted November 1, 2012 awesome :) Quote Link to comment Share on other sites More sharing options...
marwan Posted November 1, 2012 Author Share 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 Quote Link to comment Share on other sites More sharing options...
TreVor Posted November 10, 2012 Share Posted November 10, 2012 Work pastebin? Quote Link to comment Share on other sites More sharing options...
marwan Posted November 10, 2012 Author Share Posted November 10, 2012 Work pastebin? yes its working Quote Link to comment Share on other sites More sharing options...
MarKoM Posted November 18, 2012 Share Posted November 18, 2012 Thanks for sharing this with us its reallt nice and useful :) Quote Link to comment Share on other sites More sharing options...
digas82 Posted April 23, 2013 Share Posted April 23, 2013 +1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.