Jump to content
  • 0

Pk In TvT :S


Question

8 answers to this question

Recommended Posts

  • 0
Posted

guys a have a problem...everytime a player kills other Unflaged player he takes pk  :/ how can i fix this?

 

Depends,

 

What pack you use? we examine and i can help you.

  • 0
Posted

if (isinTvT())

return;

 

do i have to import this code to L2pcinstance?

 

sorry im newbie on java :/

 

Just find increasePkKillsAndKarma method in L2PcInstance... forwards you will find way

  • 0
Posted

found this

  // 'No war' or 'One way war' -> 'Normal PK'

if (targetPlayer.getKarma() > 0)                                        // Target player has karma

{

if (Config.KARMA_AWARD_PK_KILL)

                    increasePvpKills(target);

}

else if (targetPlayer.getPvpFlag() == 0)                                                                    // Target player doesn't have karma

{

increasePkKillsAndKarma(target);

//Unequip adventurer items

checkItemRestriction();

 

no idea what now :S

  • 0
Posted

// 'No war' or 'One way war' -> 'Normal PK'

        if (targetPlayer.getKarma() > 0)                                        // Target player has karma

        else if (targetPlayer.isintvt())                            //may be will work, am not sure, just trying to help

                return;

        {

            if (Config.KARMA_AWARD_PK_KILL)

                    increasePvpKills(target);

        }

        else if (targetPlayer.getPvpFlag() == 0)                                                                    // Target player doesn't have karma

        {

            increasePkKillsAndKarma(target);

            //Unequip adventurer items

            checkItemRestriction();

 

  • 0
Posted

Or if you don't want to make modifications in java, move the TVT in a zone that nobody can go without Teleport with TVT Event ^^' (like the round rooms under the underground coliseum :D )

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
Answer this question...

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

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