Thread: Duel Arena

Results 1 to 8 of 8
  1. #1 Duel Arena 
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    Hello, i got some problems with my duel arena and would like to have some help So here we go, I need help about the wilderness icon at the right side, it shows like -32 i want it show like tournament icon.. Well i will Rep for this if you would help me..

    And i also need help about the challenge in right click, i want it only show up in duel arena... Well thank you if you are reading this.. And please leave a reply on a tutorial of this or anything, Or teach me or anything Thanks ~1337

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  2. #2  
    Registered Member
    Hunter's Avatar
    Join Date
    Jun 2009
    Age
    33
    Posts
    857
    Thanks given
    3
    Thanks received
    23
    Rep Power
    216
    I would suggest making a boolean for "duelArena()" to check if a player is within the coordinates of the duel arena to set the proper interface. This could also go with the "Challenge" option..for example:

    Open client.java and find "Trade with" or "Follow". It should look something like this:

    Code:
      // add player commands...
      outStream.createFrameVarSize(104);
      outStream.writeByteC(4); // command slot (does it matter which one?)
      outStream.writeByteA(0); // 0 or 1; 0 if command should be placed on top in context menu
      outStream.writeString("Follow");
      outStream.endFrameVarSize();
      rightClickCheck();
      outStream.createFrameVarSize(104);
      outStream.writeByteC(5); // command slot (does it matter which one?)
      outStream.writeByteA(0); // 0 or 1; 0 if command should be placed on top in context menu
      outStream.writeString("Trade with");
      outStream.endFrameVarSize();
    If you were to make the duelArena() boolean like I suggested..you could probably pull off a challenge option like this:

    Code:
    if(duelArena()) {
      outStream.createFrameVarSize(104);
      outStream.writeByteC(6); // command slot (does it matter which one?)
      outStream.writeByteA(0); // 0 or 1; 0 if command should be placed on top in context menu
      outStream.writeString("Challenge");
      outStream.endFrameVarSize();
      rightClickCheck();
    Just some pointers in the right direction..Un-tested though..although I believe it should work. Explore with it some.
    Reply With Quote  
     

  3. #3  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    something like this??

    Code:
    	public void rightClickCheck() {
    		if(!isInDuel()) {
    			outStream.createFrameVarSize(104);
    			outStream.writeByteC(2);
    			outStream.writeByteA(0);
    			outStream.writeString("Challenge");
    			outStream.endFrameVarSize();
    }
    		if(isInWilderness(absX, absY, 1) || isInDuel()) {
    			outStream.createFrameVarSize(104);
    			outStream.writeByteC(3);		// command slot
    			outStream.writeByteA(0);		// 0 or 1; 1 if command should be placed on top in context menu
    			outStream.writeString("Attack");
    			outStream.endFrameVarSize();
    		}

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  4. #4  
    Registered Member
    Hunter's Avatar
    Join Date
    Jun 2009
    Age
    33
    Posts
    857
    Thanks given
    3
    Thanks received
    23
    Rep Power
    216
    Yes sir, something like that.
    Reply With Quote  
     

  5. #5  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    but ive added that, but how to i delete the sign of -32 and the wildy icon, i want it show the tournament icon

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     

  6. #6  
    Registered Member
    Hunter's Avatar
    Join Date
    Jun 2009
    Age
    33
    Posts
    857
    Thanks given
    3
    Thanks received
    23
    Rep Power
    216
    It's under process() by default on most servers..

    Try finding (!hasWildySign) or something similar in client.java

    Code:
      if (isInWilderness(absX, absY, 1))
      {
       if (!hasWildySign)
       {
        hasWildySign = true;
        outStream.createFrame(208);
        outStream.writeWordBigEndian_dup(197);
        sendQuest("Level: " + wildyLevel, 199);
       }
       int level = ((absY - 3520) / 8) + 1;
       if (level != wildyLevel)
       {
        wildyLevel = level;
        sendQuest("Level: " + wildyLevel, 199);
       }
      }
    It looks like that..play around with it some.
    Reply With Quote  
     

  7. #7  
    Member Duel Arena Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    the reason if has the wildy simble is because you made it wilderness. to stop it saying -32 or w.e add somet like

    && absY > ___ in the show wildy sign method and shit.

    if you wanna add my msn fo more info feel free

    [email protected]
    ILY Stewie.
    Reply With Quote  
     

  8. #8  
    If you read this you're gay!
    Infexis's Avatar
    Join Date
    Aug 2009
    Age
    28
    Posts
    4,557
    Thanks given
    1,158
    Thanks received
    1,174
    Rep Power
    2949
    Well i still need learn how to fix, so the right click (challenge) only shows in duel arena

    "If you can't explain it simply, you don't understand it well enough." - Albert Einstein
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •