Jump to content

Recommended Posts

Posted

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.

  • 3 weeks later...
Posted

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

Posted

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

 

 

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

 

Posted

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

  • 1 year later...
Posted

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.

  • 1 month later...
Posted

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

Posted

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

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
  • Posts

    • how do I make it so that you only deal damage to a mob if you have the right items equipped, like jewels, belt, underwear, bracelet, so if you don't have one of those items equipped, you don't deal any damage to the mob thanks
    • I always welcome bug reports and never ban ppl - until proven leaker - not sure where the "arrogant" part comes from, I would like to know what exactly let you think that (quote me please, and not 12y old quotes as the other frog meme dude). I request bug reports to be properly detailed, otherwise it's a waste of time. Other than that, I don't see where I have been arrogant. I got proper discussions with many ppl, not sure why you wouldn't be one of them.   I got 76 bug reports in my list (21 on forums, 55 on gitlab).   I have a single bug report regarding lvl 4 clan quest, which has to be tested since it's not even clear about what is supposed to be broken. Seven Signs was never reworked and is basically L2J based (we got a rework branch to test/commit with reworked AIs). Geoengine got no specific issues (at my knowledge), pathfinding was reworked lately to be way more performant, and I still try to improve performance using some pool system. Movement was partially fixed in latest 410, and probably will get another rework soon (notably reverting to the task wallclock).   "I" surely didn't spend 12y over geoengine - Hasha cared about geoengine during rev 334 / 354 / 390 / 395 and 397. It is solely his work, and always tagged as it. He was rewarded with money for his work, and almost a decade of aCis access.   aCis is a community work, things tagged with Tryskell is my work, the leftover is someone else work. 22 ppl worked as developers in this project over 14 years.   I would gladly accept whatever list of fixes/reports you have to share. You will even be rewarded (you probably know about cookie system), as anyone else sharing bug report or fixes.   My main concerns lately is the lack of decent L2OFF IL data, it is my main bottleneck actually. If you're aware about decent L2OFF data to parse, let me know.
    • Your project doesn't compare to aCis; you have to be an idiot to use that. I know someone who bought the High Five "PREMIUM" version, which has the same bugs as the free version. If you want, I can share his latest premium version. Players are going through walls with their bad geoengine, falling under the Olympiad. If you want, I can record and prove what I'm saying. The aCis project is 50 steps ahead of yours and it's not even stable...
    • l2jteon, l2joneo l2jscoria etc etc. and from that we went to this 
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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