hNoke Posted September 14, 2010 Posted September 14, 2010 Maybe something like this is already shared, but I don't care, I just decided to try to make something useful for this scene lol. It's a very basic system, which will reward players with specific items when they won a PvP. You can define items id, the chance, the min and max ammount (chooses randomly) and the minimum required level & ammount of pvps in the database, table pvp_rewards. Made for Epilogue, L2J. http://www.4shared.com/file/dDi-GEHI/pvp_rewards_v1.html ps. apply the patch manually, there might be some issues with it, because my L2J core has some modifications so the lines won't pass. Quote
eKo Posted September 17, 2010 Posted September 17, 2010 good one. its something different and its not overloading pcinstance ;) Quote
Raijin Posted October 2, 2010 Posted October 2, 2010 Very often pvp reward is added into L2j server options.ini Quote
Nightw0lf Posted October 4, 2010 Posted October 4, 2010 very pro code thnx i have 1 question. the pvpkills from table what does if i put "1" it gives every 1 pvp the reward? if i put 10 every 10 pvp? thats what i didnt understand if this correct its the best pvp code i've seen xD gratz one more time! ps: you deserve karma.! i tested and it needs a bit modification in database Fields max min needs minAmmount and maxAmmount also pvpRequired with test i answered my question so if i put 1 pvp every 2 pvps ill get reward... so 0 its for every pvp everything else working perfecto!! good job Quote
hNoke Posted October 4, 2010 Author Posted October 4, 2010 no lol I don't deserve anything, this is work for like 20 minutes i have 1 question. the pvpkills from table what does if i put "1" it gives every 1 pvp the reward? if i put 10 every 10 pvp? thats what i didnt understand if this correct its the best pvp code i've seen xD gratz one more time! not yet, but I'll make it //ok here it is edited main class: http://pastebin.com/2aGG68Ww edited SQL file: http://pastebin.com/xk3dBKqF and a little explanation - chance - 100% ~ 100000, 1% ~ 1000 - rewardAfter - for example if you put 10 here, it'll give this reward after every 10 pvps, on 10, 20, 30, 40,... and so on - pvpsRequired - the minimal ammount of player's PvP points to receive this reward Quote
Dev Posted October 4, 2010 Posted October 4, 2010 Ow really . Cool it's -beep-ed up with the last update ."Total Wipe" Cheers Quote
Nightw0lf Posted October 5, 2010 Posted October 5, 2010 - chance - 100% ~ 100000, 1% ~ 1000 also that worked from the reverce side so when i puted 5000 that took me long time to figure out... it was 95% and when i puted 100000 it was 0% so for items i wanted i put 1 so they was 100% if this correct and also i am to try the new code its any of those changed? no lol I don't deserve anything, this is work for like 20 minutes for this its the first code that is not overloading npcinstance as eko said none posted something like this here.. no more tell ;) well this is i thing wrong to many keys for same opts better like that PRIMARY KEY (`id`) Quote
hNoke Posted October 5, 2010 Author Posted October 5, 2010 sorry my fault, chance fixed now http://pastebin.com/2aGG68Ww Quote
Dev Posted October 5, 2010 Posted October 5, 2010 hnoke I would like to tell us how on a certain amount of PvP's example on 1k PvP's to learn PvP Skills such as Blssed the Body on 2k to learn Body of Avatar , on 3k death whisper and e.t.c do you know do you have any idea about this ? TY Quote
HammerV2 Posted June 20, 2012 Posted June 20, 2012 ok guys i have some errors aplying this code.... at l2pcinstance "PvPRewardsTable cannot be resolved Quote
An4rchy Posted June 20, 2012 Posted June 20, 2012 ok guys i have some errors aplying this code.... at l2pcinstance "PvPRewardsTable cannot be resolved Lol dude. It's 2 year old share :P Anyway, it's a nice share, but it could be done through configs or xml too. Quote
IvanLabonia Posted August 4, 2012 Posted August 4, 2012 ok guys i have some errors aplying this code.... at l2pcinstance "PvPRewardsTable cannot be resolved me too! what could it be? [javac] C:\Archivos de programa\eclipse-SDK-3.5-win32\workspace\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5689: error: cannot find symbol [javac] PvPRewardsTable.getInstance().rewardLastHit(this, (L2PcInstance)target); [javac] ^ [javac] symbol: variable PvPRewardsTable [javac] location: class L2PcInstance [javac] 1 error Quote
GsL Posted August 4, 2012 Posted August 4, 2012 If this one works its special!!! but do u know to use it ?? huh xd maybe can work for Interlude?? if u make some changes?? Quote
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.