Bounty Hunter
4 posters
:: Your codes
Page 1 of 1
Bounty Hunter
- Code:
public bountyHunter(){
}
public void enterBounty(Player p){
if(p == null || !p.online){
return;
}
p.bountyOpp = 0;
p.frames.setTab(p, 8, 653);
getOpponent(p);
p.pkIcon = 3;
}
public void leaveBounty(Player p){
if(p == null || !p.online){
return;
}
Player plr = Engine.players[p.bountyOpp];
if(plr == null || !plr.online){
return;
}
plr.frames.sendMessage(plr,"target has died / left bounty hunter");
plr.bountyOpp = 0;
p.bountyOpp = 0;
getOpponent(plr);
}
public boolean bountyArea(int coordX,int coordY){
if(coordX >= 3085 && coordX <= 3185 && coordY >= 3662 && coordY <= 3765)
return true;
return false;
}
public void getOpponent(Player p){
if(p == null){
return;
}
if(!bountyArea(p.absX,p.absY) || p.skillLvl[3] <= 0 ){
return;
}
for (Player p2: Engine.players) {
if (p2 == null || !p2.online) {
continue;
}
if(!bountyArea(p2.absX,p2.absY) || p2.bountyOpp > 0 || p2 == p){
continue;
}
p.frames.sendMessage(p,"An opponent has been found username: "+p2.username);
p2.frames.sendMessage(p2,"An opponent has been found username: "+p.username);
p.bountyOpp = p2.playerId;
p2.bountyOpp = p.playerId;
p.frames.setString(p, p2.username, 653, 8);
p2.frames.setString(p2, p.username, 653, 8);
p2.frames.setTab(p2, 8, 653);
return;
}
p.frames.setString(p, "none", 653, 8);
p.bountyOpp = 0;
}
Yes i did copy this code i did not code this myself but yes i belive we should get a fully working bounty hunter!
---Enjoy---
Sunfly123- Forum Moderators
- Posts : 106
Join date : 2009-05-04
Re: Bounty Hunter
we got 1 but its not like the bounty hunter mini game if thts the mini gam eso pl can play it yes but if its just bounty hunter arena or somthing no but gj getting codes sunny
Predit0r- Adminstartor
- Posts : 91
Join date : 2009-05-04
Age : 28
Location : my house
re bh code.
i already got bounty hunter
Master- Owner
- Posts : 74
Join date : 2009-05-03
Age : 27
Location : Norway,Oslo
Re: Bounty Hunter
i know you have bh now but this was for old source i didnt know if u had it on the old 1
Sunfly123- Forum Moderators
- Posts : 106
Join date : 2009-05-04
:: Your codes
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum