Click here to login/register

Join the forum, it's quick and easy

Click here to login/register
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Bounty Hunter

4 posters

Go down

Bounty Hunter Empty Bounty Hunter

Post  Sunfly123 Wed May 06, 2009 11:14 pm

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
Forum Moderators

Posts : 106
Join date : 2009-05-04

Back to top Go down

Bounty Hunter Empty Re: Bounty Hunter

Post  Predit0r Thu May 07, 2009 1:59 am

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
Predit0r
Adminstartor
Adminstartor

Posts : 91
Join date : 2009-05-04
Age : 28
Location : my house

Back to top Go down

Bounty Hunter Empty re bh code.

Post  Master Thu May 07, 2009 3:29 pm

i already got bounty hunter
Master
Master
Owner
Owner

Posts : 74
Join date : 2009-05-03
Age : 27
Location : Norway,Oslo

Back to top Go down

Bounty Hunter Empty Re: Bounty Hunter

Post  Tony Thu May 07, 2009 3:42 pm

master. u mean "WE" allready have bh :S
Tony
Tony
Owner
Owner

Posts : 84
Join date : 2009-05-03

https://bvscape.darkbb.com

Back to top Go down

Bounty Hunter Empty Re: Bounty Hunter

Post  Sunfly123 Wed Jun 17, 2009 11:53 pm

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
Forum Moderators

Posts : 106
Join date : 2009-05-04

Back to top Go down

Bounty Hunter Empty Re: Bounty Hunter

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum