Jump to content

Featured Replies

Posted
comment_75245
Quote
ADMIN_CAN_TRADE = false, ADMIN_DROP_ITEMS = false, ADMIN_CAN_SELL_ITEMS = false,

Using 2006Scape Open Source, you are going to want to look for the above - this can be used to add ironman mode restrictions to normal players.

 

Quote
if (player.playerRights == 2 && !GameConstants.ADMIN_CAN_TRADE) {
   player.getPacketSender().sendMessage("Trading as an admin has been disabled.");
   return;
}

Then you will want to change the "playerRights == 2"
If changed to "playerRights == 0" then players will receive the sendMessage when attempting to trade.
"Trading as an admin has been disabled." can be changed to "Trading as an ironman has been disabled."

Next you will want to change how items appear in stores as this is another popular method to transfer items.

 

Quote
// Add item to the shop
//addShopItem(unNotedItemID, amount); // this is the line you should comment out
player.getItemAssistant().resetItems(3823);
resetShop(player.shopId);
updatePlayerShop();
return true;

By commenting out 1 line of code, now items sold to shops won't appear in stock to other players. 

  • 2 weeks later...
  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...
  • 3 months later...
  • 2 months later...
  • 1 month later...
  • 1 month later...
  • 2 weeks later...
  • 3 weeks later...

Create an account or sign in to comment