Jump to content

[Guide]Item reward for pvp/pk kill.


Recommended Posts

  • 4 weeks later...

Hi all.

 

Is it posible to give item from the fraged char inventory?

 

Edit : Oops i got a problem when i posted this. It s been posted twice, sorry if it my making.

 

Please mods delete the other post . Sorry again

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 3 weeks later...

Somebody have this working for the last Rev?

 

version=${l2jdp.revision}

      builddate=20091111_1902

      detailed info:

            committed-rev="6774"

            name=""

            committed-date="2009-11-02T18:47:02.537745Z"

 

version=${l2j.revision}

    builddate=20091111_1851

      detailed info:

            committed-rev="3694"

            name=""

            committed-date="2009-11-03T10:08:06.579692Z"

 

With this code i compile without problems but in game not give any reward...  :-\

Link to comment
Share on other sites

  • 6 months later...

been moding your code a bit

 

here it is

 

// Give x y for a pvp kill

if (getLevel() < 76)

{

    addItem("Loot", 959, 1, this, true);

    sendMessage("You won Enchant Weapon S Grade for a pvp kill!");

}

 

 

else if (Rnd.get(100) < 10)

 

{

    addItem("Loot", 959, 1, this, true);

    sendMessage("You won Enchant Weapon S Grade for a pvp kill!");

}

 

now every char under 76 Recives EWS whit a chance of 100%,The Chars Above 76 have a 10% Reciving Chance

note: I noticed you lose the items if you logout..

Link to comment
Share on other sites

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

 

 

When you say in the beginning add this after this....there must be a space between them?

Link to comment
Share on other sites

 

When you say in the beginning add this after this....there must be a space between them?

basically no matter but for look better add a space. ;)

Link to comment
Share on other sites

  • 4 weeks 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

    • Thank you for your reply. I have removed it from the L2Server.exe file, but the L2Server still crashes. It doesn't crash if I don't start l2npc, otherwise it will crash within a few days at the latest.
    • Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11 Telegram : https://t.me/ultrastore1 Welcome to my store :  https://topestore.mysellix.io/fr/ 2015-2022 Aged Discord Account 2015 Discord Account : 50.99 $ 2016 Discord Account : 10$ 2017 Discord Account :3.99 $ 2018 Discord Account : 3.50$ 2019 Discord Account : 2.70 $ 2020 Discord Account :1.50$ 2021 Discord Account :0.99$ 2022 Discord Account :0.70$ Warranty :Lifetime Payment Methods : Crypto/ PayPal Contact Me On Discord Or Telegram Discord : @ultrasstore11
    • L2 ArenaWar: Low Rate PvP Server with Free Buffs & Autofarm [PVP]⚔️ [Free]🆓 Classic Interlude with  3x XP rates! Free starter pack(no grade) to kickstart your adventure! Autofarm for convenient grinding! Free buffs to keep you fighting fit! (2 job buffs) No experience loss on death! (Except with Karma) Clear Karma system to keep things fair! ⚖️ Active community of 800-1k players! Join our Discord to learn more! >> Discord <<     Server website: https://l2arenawar.com/en/    
    • This is dedication! 2 years working on a problem. Congratulations!
    • You indeed have to save player position over Enterworld to properly clean it up later (if you don't, even trying to delete packet content would eventually keep it up), that's what we do with debug packet (which is a reusable Map of ExServerPrimitive packets) on aCis.   It doesn't solve the FPS stuttering - more you draw/delete lines, more your client becomes laggy. It's like if client wasn't deleting drawn points/lines properly, but instead simply hide them and redrawn content above.   If you got a solution, I would happy to integrate it.   You should check aCis#Player _debug packet integration, it allows very big amount of lines/points to be drawn, it is also reusable.   https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/Player.java?ref_type=heads https://gitlab.com/Tryskell/acis_public/-/blob/master/aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java?ref_type=heads  
  • Topics

×
×
  • Create New...