Thread: Thieving And Some Interface Thing - PIC And Codes.

Results 1 to 3 of 3
  1. #1 Thieving And Some Interface Thing - PIC And Codes. 
    Registered Member ReXo420's Avatar
    Join Date
    Jul 2010
    Posts
    32
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Hey, Rune-server
    I've been doing the basic like moving things around and what not, but there's this thing that has been bugging me.
    When I first make an acc it does do it, but my second login. heres a pic. It's one of those welcome messages I think.
    But i dont know how to remove it..please help, BTW Delta Based



    And my second problem is thieving ever time I gain a level My client crashes. Ill give you what I have that if for thieving.


    Code:
    }
    if(objectID == 2562){
    TheifStall("gem stall", "and recieve some coins.", 80, 102*playerLevel[17], 995, 51*playerLevel[17], 0x340);
    setAnimation(881);
    }
    if(objectID == 2560){
    TheifStall("silk stall", "and recieve some coins.", 1, 10*playerLevel[17], 995, 5*playerLevel[17], 0x340);
    }
    if(objectID == 2565){
    TheifStall("silver stall", "and recieve some coins.", 50, 37*playerLevel[17], 995, 19*playerLevel[17], 0x340);
    }
    Code:
    public void TheifStall(String stallName, String message, int lvlReq, int XPamount, int item, int itemAmount, int emote) {
    if(System.currentTimeMillis() - lastAction < actionInterval) return;
     if(playerLevel[17] >= lvlReq) {
       actionInterval = 4000;
       lastAction = System.currentTimeMillis();
       setAnimation(emote);
       sM("You take from the stall..");
       sM(message);
       addItem(item, itemAmount);
       addSkillXP(XPamount, 17);
      }
      else if(playerLevel[17] < lvlReq) {
      sM("You need a theiving level of "+lvlReq+" to theif from this stall.");
     }
    }
    Thanks for reading and please help!
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Mar 2009
    Posts
    372
    Thanks given
    12
    Thanks received
    9
    Rep Power
    0
    What i would do is add this sendquest command i made:
    Code:
    if (command.startsWith("sendquest")) {
    try {
    String[] args = command.split(" ");
    int SQSTART = /*Integer.parseInt(command.substring(10, 16));*/Integer.parseInt(args[1]);
    int SQEND = /*Integer.parseInt(command.substring(17));*/Integer.parseInt(args[2]);
    for (int i = SQSTART; i < SQEND; i++) {
    sendQuest("ID: " + i, i);
    }
    sM("ALL IDS FROM " + SQSTART + " TO " + SQEND + " have been replaced with: ID: #");
    } catch(Exception e) {
    sM("TRY LIKE: ::sendquest # #");
    sM("It has to be 17 characters plus.");
    }
    }
    This would replace that text with its sendquest ID. then all ide have to do is find that ID in the source files and remove it.

    (you might have to fix up the coding a little bit to suit your server)
    Reply With Quote  
     

  3. #3  
    Registered Member ReXo420's Avatar
    Join Date
    Jul 2010
    Posts
    32
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    I added the command, But I really don't under stand what to do.
    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
  •