Jump to content

[Guide]Item reward for pvp/pk kill.


Recommended Posts

i have a queston for

 

  // Give x y for a pvp kill
	addItem("Loot", x, y, this, true);
	sendMessage("You won y x for a pvp kill!");  

 

 

@ sendMessage(you won y(=1[ex]) x(id=999999[ex]) for a pvp kill!")

would it say you won 1 999999 or you won 1 PvPtoken[ex]

 

*[ex] = example

Link to comment
Share on other sites

How can you add damage based rewards? Say if its a 2v1 and 1 person does 60% of the damage so he gets 60% of the reward and how can you also add Xp for another reward that can be split between to people or more.

Link to comment
Share on other sites

Don't think that's wise to do. Imagine an sps, he'd just run around and flash everyone doing minimal damage, while someone. When someone would come and hit one of his previous targets, sps would still get a reward, even though he did like 600 dmg...

 

Too easy too abuse.

Btw, how would you modify this, so it applies for a clan war.. Example, 1 random pvp kill = 1 medal, 1 clan kill = 2 medals.

There would need to be a check if the enemy is clan war, but i've got no clue how to do that.

Link to comment
Share on other sites

  • 1 month later...

Ok first of to make it clear...If you dont know what eclipse means, how to complie or how to change the code then leave this topic and go here...http://www.maxcheaters.com/forum/index.php?topic=3400.0

 

I will use L2j interlude pack for this but you can use any, of any revision with no changes...

 

Okay go to gameserver.model.actor.instance.L2PcInstance.java

 

Here comes to reward for PVP kill

 

Go to line 4538...You should see something like this

 

        // Add karma to attacker and increase its PK counter
        setPvpKills(getPvpKills() + 1);

 

Okay now add this after it...

 

        // Give x y for a pvp kill
	addItem("Loot", x, y, this, true);
	sendMessage("You won y x for a pvp kill!");

 

NOTE! x IS THE ITEM ID AND y IS THE AMMOUNT!

 

 

============================================================

 

Okay now reward for PK kill

 

 

Go to line 4605...You should see this

 

        // Add karma to attacker and increase its PK counter
        setPkKills(getPkKills() + 1);
        setKarma(getKarma() + newKarma);

 

 

Add the same code as above and players are gonna get reward for PK kill!

 

Note! PvP kill means when a player kills a flagged player and gets a pvp point and PK kill means when a player kills a while player and gets a PK point and karma! There is a huge difference

 

Funny for high rate servers...

 

Cheers ^^

Could you tell us to block the same ip ? i mean maybe a player be smart and said why to make pvp lets make a char and kill him so there is somthing to block the reward if it is from same ip?
Link to comment
Share on other sites

Well, even if you block same IP, you won't be secured from players doing all the time pvp with friends, so actually, this is kinda cheat modification, but usefull sometimes :D

Link to comment
Share on other sites

  • 3 weeks later...
  • 3 months later...
  • 1 month later...

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.




  • Posts

    • Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11 Whatsapp ; +212614849119 Welcome to my store : https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 60.99 $ 2016 Discord Account : 10.50 $ 2017 Discord Account :4.99 $ 2018 Discord Account : 3.99 $ 2019 Discord Account : 2.99 $ 2020 Discord Account :1.99$ 2021 Discord Account :1.50$ 2022 Discord Account :0.99$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore11 Whatsapp ; +212614849119 ULTRAS Store Back again For Discord Accounts With Cheap Prices    🎃 AGED OLD DISCORD ACCOUNTS [ AUTO-BUY ] 🎃   Ful Acces   INSTANT DELIVERY   2015 Discord Account : 50.99 $   2016 Discord Account : 10 $   2017 Discord Account :3.99 $   2018 Discord Account : 2.99 $   2019 Discord Account : 2.50$   2020 Discord Account :1.50$   2021 Discord Account :0.99$   2022 Discord Account :0.70$   PAYMENT METHODS : CRYPTO / paypal   You can buy here From our Store : ultrasstore11.mysellix.io   Or from my Telegram user :https://t.me/ultrastore11   Or from my Discord user : @ULTRASstore11
    • Sorry for such late reply. But extender in this build is just bad. It will give you this random error and shut down your server once a day, maybe more often. And since we don't have any source code of it, the solution is to remove it from the L2Server.exe file. You can do it yourself with CFF_Explorer app. Or download mine with already removed extender. No more random shut downs. The only downside is you gonna lose auto loot ability.  L2Server.exe without extender
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hoodservices https://campsite.bio/utchihaamkt
  • Topics

×
×
  • Create New...