Jump to content
  • 0

Pvp Assist System


nikosdevil20

Question

hello guys ...i have 1 system in my pack of when player1 is in party and kill  player2  if  player's1 party have bishop give reward to bishop. i want make this reward from bishop have rate for example 50% for give reward to bishop....this is the code:

 

                                              if(player.isInParty())
                                              {
                                                  for (L2PcInstance member : player.getParty().getPartyMembers())
                                                  {
                                                      if(member.getClassId().getId() == 97) // only cardinal    
                                                      {
                                                          member.addItem("PVP Reward", 3470, 100, member, true);
                                            }
                                       }
                                  }

 

if anyone know something about that post here ty emoticon-0100-smile.gif

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
 if(player.isInParty())
          {
              for (L2PcInstance member : player.getParty().getPartyMembers())
              {
                  if(member.getClassId().getId() == 97) // only cardinal    
                  {
                   if( Rnd.get(100)< 60)
                      member.addItem("PVP Reward", 3470, 100, member, true);
                  }
   }
}

it is 60% , just change the number 60.

Edited by Lioy
Link to comment
Share on other sites

  • 0
 if(player.isInParty())
          {
              for (L2PcInstance member : player.getParty().getPartyMembers())
              {
                  if(member.getClassId().getId() == 97) // only cardinal    
                  {
                   if( Rnd.get(100)< 60)
                      member.addItem("PVP Reward", 3470, 100, member, true);
                  }
   }
}

it is 60% , just change the number 60.

 

i try it in  2 mins. ty for your fast reply :)

 

yes work i make it with config and works perfect! ty for your help

 

REQUEST LOCK

Edited by nikosdevil20
Link to comment
Share on other sites

  • 0

i try it in  2 mins. ty for your fast reply :)

 

yes work i make it with config and works perfect! ty for your help

 

REQUEST LOCK

 

mkay

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...