Thread: Ironman W/ Interface

Results 1 to 5 of 5
  1. #1 Ironman W/ Interface 
    Banned

    Join Date
    Feb 2014
    Posts
    1,210
    Thanks given
    138
    Thanks received
    450
    Rep Power
    0
    Hi All,

    Looking to purchase an Iron man system with the real OSRS interface, preferably pre-made already.
    If you can do this - add me on Skype; izzy.ts

    Kind Regards,
    Kyoto.
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Banned

    Join Date
    Oct 2012
    Posts
    4,716
    Thanks given
    1,682
    Thanks received
    1,105
    Rep Power
    0
    Will release a snippet today.
    Reply With Quote  
     

  4. Thankful user:


  5. #3  
    Registered Member

    Join Date
    Sep 2014
    Posts
    2,102
    Thanks given
    3,020
    Thanks received
    1,091
    Rep Power
    5000
    Vouch for Kyoto, if Patrick can release would even be better!
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #4  
    Banned

    Join Date
    Oct 2012
    Posts
    4,716
    Thanks given
    1,682
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by Quacked View Post
    Vouch for Kyoto, if Patrick can release would even be better!
    Here:

    Code:
    public class IronmanSelection {
    
    	enum Types {
    		NONE, IRON_MAN, ULTIMATE_IRON_MAN, NPC, PERM;
    		
    		private Types() {
    		}
    		
    		public int getSpriteId() {
    			return 42402 + (ordinal() * 1);
    		}
    		
    		public int getButtonId() {
    			return 165162 + (ordinal() * 1);
    		}
    		
    		public static final Set<Types> TYPE = Collections.unmodifiableSet(EnumSet.allOf(Types.class));
    
    	}
    	
    	public void open(Player player) {
    		player.write(new SendChangeSprite(42402, (byte) 0));
    		player.write(new SendChangeSprite(42403, (byte) 0));
    		player.write(new SendChangeSprite(42404, (byte) 2));
    		player.write(new SendChangeSprite(42405, (byte) 1));// setting the X
    		player.write(new SendChangeSprite(42406, (byte) 1));//disable
    		player.write(new SendInterface(42400));
    	}
    	
    	public void selectMode(Player player, int buttonId) {
    		for (Types type : Types.values()) {
    			if (type.getButtonId() == buttonId) {
    				if (player.selectedIronmanButton == buttonId) {
    					player.write(new SendGameMessage("You've already selected this option."));
    				} else {
    					if (buttonId == 165165) {
    						//if (!npcon)
    							player.write(new SendChangeSprite(42405, (byte) 2));//Tick the selection
    						//else if (npcon)
    							player.write(new SendChangeSprite(42406, (byte) 1));//X the one below
    					} else if (buttonId == 165166) {
    						player.write(new SendChangeSprite(42405, (byte) 1));//X the one above
    						player.write(new SendChangeSprite(42406, (byte) 2));//Tick the selection
    					} else {
    					Types.TYPE.forEach(p -> player.write(new SendChangeSprite(p.getSpriteId(), (byte) 0)));//hide
    					player.write(new SendChangeSprite(type.getSpriteId(), (byte) 2));//tick
    					player.selectedIronmanButton = buttonId;
    						if (buttonId == 165162 || buttonId == 165163) {
    							player.write(new SendChangeSprite(42405, (byte) 1));// PIN
    							player.write(new SendChangeSprite(42406, (byte) 2));// PERM
    						}
    					}
    				}
    			}
    		}
    	}
    	
    	public void confirm(Player player) {
    		
    		switch (player.selectedIronmanButton) {
    		
    		case 165162:
    			player.getAccount().setType(Account.REGULAR_TYPE);
    			player.setRights(Rights.PLAYER);
    			player.write(new RemoveWindow());
    	        break;
    			
    		case 165163:
    			player.write(new SendGameMessage("Ultimate iron man has not been pushed yet."));
    			break;
    		
    		case 165164:
    			
    			break;
    			
    		}
    	}
    
    }
    Here this is for the interface. You guys could build from this.
    Reply With Quote  
     

  7. #5  
    Banned

    Join Date
    Feb 2014
    Posts
    1,210
    Thanks given
    138
    Thanks received
    450
    Rep Power
    0
    Quote Originally Posted by _Patrick_ View Post
    Here:

    Code:
    public class IronmanSelection {
    
    	enum Types {
    		NONE, IRON_MAN, ULTIMATE_IRON_MAN, NPC, PERM;
    		
    		private Types() {
    		}
    		
    		public int getSpriteId() {
    			return 42402 + (ordinal() * 1);
    		}
    		
    		public int getButtonId() {
    			return 165162 + (ordinal() * 1);
    		}
    		
    		public static final Set<Types> TYPE = Collections.unmodifiableSet(EnumSet.allOf(Types.class));
    
    	}
    	
    	public void open(Player player) {
    		player.write(new SendChangeSprite(42402, (byte) 0));
    		player.write(new SendChangeSprite(42403, (byte) 0));
    		player.write(new SendChangeSprite(42404, (byte) 2));
    		player.write(new SendChangeSprite(42405, (byte) 1));// setting the X
    		player.write(new SendChangeSprite(42406, (byte) 1));//disable
    		player.write(new SendInterface(42400));
    	}
    	
    	public void selectMode(Player player, int buttonId) {
    		for (Types type : Types.values()) {
    			if (type.getButtonId() == buttonId) {
    				if (player.selectedIronmanButton == buttonId) {
    					player.write(new SendGameMessage("You've already selected this option."));
    				} else {
    					if (buttonId == 165165) {
    						//if (!npcon)
    							player.write(new SendChangeSprite(42405, (byte) 2));//Tick the selection
    						//else if (npcon)
    							player.write(new SendChangeSprite(42406, (byte) 1));//X the one below
    					} else if (buttonId == 165166) {
    						player.write(new SendChangeSprite(42405, (byte) 1));//X the one above
    						player.write(new SendChangeSprite(42406, (byte) 2));//Tick the selection
    					} else {
    					Types.TYPE.forEach(p -> player.write(new SendChangeSprite(p.getSpriteId(), (byte) 0)));//hide
    					player.write(new SendChangeSprite(type.getSpriteId(), (byte) 2));//tick
    					player.selectedIronmanButton = buttonId;
    						if (buttonId == 165162 || buttonId == 165163) {
    							player.write(new SendChangeSprite(42405, (byte) 1));// PIN
    							player.write(new SendChangeSprite(42406, (byte) 2));// PERM
    						}
    					}
    				}
    			}
    		}
    	}
    	
    	public void confirm(Player player) {
    		
    		switch (player.selectedIronmanButton) {
    		
    		case 165162:
    			player.getAccount().setType(Account.REGULAR_TYPE);
    			player.setRights(Rights.PLAYER);
    			player.write(new RemoveWindow());
    	        break;
    			
    		case 165163:
    			player.write(new SendGameMessage("Ultimate iron man has not been pushed yet."));
    			break;
    		
    		case 165164:
    			
    			break;
    			
    		}
    	}
    
    }
    Here this is for the interface. You guys could build from this.
    Thanks, but not really looking for parts or to build from something.
    Need something complete.
    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. [REQ] IronMan Interface
    By Rozo in forum Help
    Replies: 0
    Last Post: 03-30-2016, 12:03 AM
  2. Buying ironman with interface
    By Hitsplat rsps in forum Buying
    Replies: 0
    Last Post: 07-20-2015, 01:39 AM
  3. Replies: 15
    Last Post: 09-15-2007, 06:48 PM
  4. Packet 36 - Interface button Status
    By uber killer in forum Tutorials
    Replies: 9
    Last Post: 07-31-2007, 04:33 AM
  5. Adding Gfz in WhiteScape And Advanced Level Interface
    By Santa Noobie in forum Tutorials
    Replies: 1
    Last Post: 05-29-2007, 10:52 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
  •