Jump to content
  • 0

Pk In TvT :S


Question

Posted

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

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 :/

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

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


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