Thread: Dropping items [DODIAN]

Results 1 to 2 of 2
  1. #1 Dropping items [DODIAN] 
    Registered Member
    Join Date
    Jan 2009
    Age
    29
    Posts
    119
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Dropping is disabled i cant enabel without changing the boolean
    Code:
    public void dropItem(int droppedItem, int slot) {
    		// misc.printlnTag("droppeditem ["+playerItems[slot]+"] which is
    		// ["+(droppedItem+1)+"]");
    		boolean a = true;
    		if (a && (playerRights == 0)) {
    			sendMessage("Dropping has been disabled");
    			sendMessage("Use ::empty to delete your inventory instead");
    			return;
    		}
    		if (!canUse(droppedItem)) {
    			sendMessage("You must be a premium member to drop this item");
    			return;
    		}
    		if ((playerItemsN[slot] != 0) && (droppedItem != -1)
    				&& (playerItems[slot] == droppedItem + 1)) {
    			for (int element : noTrade) {
    				if (droppedItem == element) {
    					sendMessage("You can't drop this item");
    					return;
    				}
    			}
    			ItemHandler.addItem(playerItems[slot] - 1, absX, absY,
    					playerItemsN[slot], playerId, false);
    			// createGroundItem(droppedItem, absX, absY, c);
    			deleteItem(droppedItem, slot, playerItemsN[slot]);
    			updateRequired = true;
    		}
    	}
    Will rep

    And also in ipanel sometimes when someone logs in it take their name and write it over 100 times and nulls the server so the chatbox repeats.
    Will rep! if you fix one of them




    Loading npcs... drops... spawn list...nulls...crash...done!
    Is this a joke?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jul 2008
    Posts
    939
    Thanks given
    0
    Thanks received
    3
    Rep Power
    781
    Change:

    Code:
    boolean a = true;
    To:

    Code:
    boolean a = false;
    I'm Rog3r, fool.
    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
  •