Thread: 718 Untradeables kept on death problem.

Results 1 to 3 of 3
  1. #1 718 Untradeables kept on death problem. 
    Registered Member
    Join Date
    May 2014
    Posts
    13
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Ok I am using a 718 source.
    Base matrix/Cittelum I guess.

    I started working on untradeable items kept on death.

    I added all theese to itemconstants.java , and theyre not tradeable or anything anymore.

    Code:
    public static boolean isTradeable(Item item) {
          if (item.getDefinitions().getName().toLowerCase()
                .contains("flaming skull"))
             return false;
          String name = ItemDefinitions.getItemDefinitions(item.getId())
                .getName().toLowerCase();
          if (name.contains("lucky")
                || name.contains("arcane stream")
                || name.contains("quickfire")
                || name.contains("Boss Token")
                || name.contains("doomcore")
                || name.contains("rusty")
                || name.contains("chaotic")
                || name.contains("primal longsword")
                || name.contains("primal maul")
                || name.contains("primal rapier")         
                || name.contains("defender"))
             return false;

    Then I edited my death metod in player.java
    And added this thats meant to keep those items from itemconstants.java

    Code:
    }
             keptItems.add(lastItem);
             containedItems.remove(lastItem);
          }
          inventory.reset();
          equipment.reset();   
          for (Item item : containedItems) {
          if (ItemConstants.isTradeable(item)) {
             getInventory().addItem(item);
          }   
             World.addGroundItem(item, getLastWorldTile(), killer == null ? this
                   : killer, false, 180, true, true);
          }
       }
    " for (Item item : containedItems) {
    if (ItemConstants.isTradeable(item)) { <<< THAT IS THE PART I ADDED.

    But the problem is, it does it the other way around.. It doesnt keep the untradeables, but keeps all of the tradeable items, and drops your tradeable items on the ground for the person that killed you.. So i started making untradeables kept on death but ended up making a dupe.. Anyone got anything to say about this?
    Reply With Quote  
     

  2. #2  
    Registered Member
    hc747's Avatar
    Join Date
    Dec 2013
    Age
    26
    Posts
    1,474
    Thanks given
    3,312
    Thanks received
    691
    Rep Power
    1098
    if (!ItemConstants.isTradeable(item))

    if the item isn't tradable.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2014
    Posts
    13
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Yeah, I already figured that out.. But when I did that, yes it drops the tradeables.. BUT, the untradeables its supposed to keep are turned into coins, which are in the persons inv that died.... And, the person that killed him gets the coins too.
    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

Similar Threads

  1. Untradeables kept on death
    By Kr4zyf4ken in forum Tutorials
    Replies: 40
    Last Post: 08-09-2019, 09:50 PM
  2. Items kept on death problem 718+
    By supr3me in forum Help
    Replies: 7
    Last Post: 02-12-2015, 12:28 AM
  3. untradeables kept on death + makeover mage
    By The Hemporer in forum Help
    Replies: 2
    Last Post: 09-16-2013, 06:19 AM
  4. [Matrix 718] Send Items on Death Problems
    By pistolpete332 in forum Help
    Replies: 3
    Last Post: 08-16-2013, 07:20 PM
  5. items kept on death problem
    By flimsy in forum Help
    Replies: 4
    Last Post: 08-15-2011, 09:33 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •