Thread: Barrows Break When Dropped? [Emulous]

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 Barrows Break When Dropped? [Emulous] 
    Registered Member


    Join Date
    May 2008
    Posts
    710
    Thanks given
    42
    Thanks received
    21
    Rep Power
    323
    Does anyone know how to make barrows break when its dropped? Giving rep++ For help :]
    Reply With Quote  
     

  2. #2  
    Registered Member the323909's Avatar
    Join Date
    Jul 2008
    Posts
    945
    Thanks given
    80
    Thanks received
    111
    Rep Power
    40
    I am also trying to add this. I only have it where if you attack an npc/player it breaks
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jan 2007
    Posts
    260
    Thanks given
    3
    Thanks received
    5
    Rep Power
    0
    EDIT: Just read that you said Emulous, sorry wasn't paying attention. The below code could be changed to Emulous though.


    Code:
    public void replaceitem2(int oldID, int newID) {
    
    for(int i2 = 0; i2 < playerItems.length; i2++)
    {
    if(playerItems[i2] == oldID+1)
    {
    int newamount = playerItemsN[i2];
    deleteItem(oldID, getItemSlot(oldID), playerItemsN[i2]);
    ItemHandler.addItem(newID, absX, absY, newamount, playerId, false);
    }
    }
    }
    And use it like this. In your dropping void use
    Code:
    if(droppedItem == BARROWSDROPPED){ 
    replaceitem2(OLDITEMID, NEWITEMID);
    So replace a full barrows item that gets dropped with a 0 barrows item.
    }
    Reply With Quote  
     

  4. #4  
    Registered Member the323909's Avatar
    Join Date
    Jul 2008
    Posts
    945
    Thanks given
    80
    Thanks received
    111
    Rep Power
    40
    public void replaceitem2(int oldID, int newID) {

    for(int i2 = 0; i2 < playerItems.length; i2++)
    {
    if(playerItems[i2] == oldID+1)
    {
    int newamount = playerItemsN[i2];
    deleteItem(oldID, getItemSlot(oldID), playerItemsN[i2]);
    ItemHandler.addItem(newID, absX, absY, newamount, playerId, false);
    }
    }
    }
    Where abouts would I add this?
    Reply With Quote  
     

  5. #5  
    Member Barrows Break When Dropped? [Emulous] Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    i tried doing this, n u got that out of delta , i got error after error n just gave up, it keeps saying a load of static shit.
    Reply With Quote  
     

  6. #6  
    Registered Member
    The Myth's Avatar
    Join Date
    Oct 2008
    Posts
    751
    Thanks given
    5
    Thanks received
    9
    Rep Power
    105
    Quote Originally Posted by Newty View Post
    EDIT: Just read that you said Emulous, sorry wasn't paying attention. The below code could be changed to Emulous though.


    Code:
    public void replaceitem2(int oldID, int newID) {
    
    for(int i2 = 0; i2 < playerItems.length; i2++)
    {
    if(playerItems[i2] == oldID+1)
    {
    int newamount = playerItemsN[i2];
    deleteItem(oldID, getItemSlot(oldID), playerItemsN[i2]);
    ItemHandler.addItem(newID, absX, absY, newamount, playerId, false);
    }
    }
    }
    And use it like this. In your dropping void use
    Code:
    if(droppedItem == BARROWSDROPPED){ 
    replaceitem2(OLDITEMID, NEWITEMID);
    So replace a full barrows item that gets dropped with a 0 barrows item.
    }
    all you did was rip it from delta lol
    Funny how when one person talks to an invisible man and commits acts in their name it's called schizophrenia, but when 1.166 billion people do it simultaneously it's called religion.

    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jan 2007
    Posts
    260
    Thanks given
    3
    Thanks received
    5
    Rep Power
    0
    Quote Originally Posted by The Myth View Post
    all you did was rip it from delta lol
    No shit, really..?

    I never claimed it as mine, I was posting it to help for fucks sake.
    Reply With Quote  
     

  8. #8  
    Registered Member


    Join Date
    May 2008
    Posts
    710
    Thanks given
    42
    Thanks received
    21
    Rep Power
    323
    still need help
    Reply With Quote  
     

  9. #9  
    Registered Member the323909's Avatar
    Join Date
    Jul 2008
    Posts
    945
    Thanks given
    80
    Thanks received
    111
    Rep Power
    40
    Why? that works you just need to edit some of it so that it works
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Mar 2008
    Posts
    2,591
    Thanks given
    71
    Thanks received
    7
    Rep Power
    1741
    No, just find droping packet and add switch statement:

    switch (itemID) {

    case BARROWS_ITEM_ID:
    replaceitem(BROKEN_BARROWS_ITEM_ID, BARROWS_ITEM_ID);
    break;
    }
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •