Jump to content

[Share]PvP Rewards table


hNoke

Recommended Posts

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.

Link to comment
Share on other sites

  • 3 weeks later...

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

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

- 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`)

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 year later...

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.

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

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