Jump to content

Question

Posted

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

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
 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
  • 0
Posted (edited)
 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
  • 0
Posted

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...