Thread: [ANY] Queued Switching System [Server Sided]

Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1. #11  
    RuneAdventure - The Epic Adventure

    Thock321's Avatar
    Join Date
    Jul 2011
    Posts
    1,809
    Thanks given
    706
    Thanks received
    363
    Rep Power
    416
    Is the "default PI switching" "instant switching"?
    Reply With Quote  
     

  2. #12  
    Registered Member

    Join Date
    Sep 2011
    Posts
    5,142
    Thanks given
    1,333
    Thanks received
    1,795
    Rep Power
    1731
    Quote Originally Posted by Thock321 View Post
    Is the "default PI switching" "instant switching"?
    Kinda.
    Retired from RSPS. Please don't message me for services, sales or help. Apologies.
    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Dec 2012
    Posts
    5
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    You just update inventory after any changes every cycle. Not hard.
    Reply With Quote  
     

  4. #14  
    Banned

    Join Date
    Dec 2011
    Age
    23
    Posts
    2,315
    Thanks given
    473
    Thanks received
    764
    Rep Power
    0
    Quote Originally Posted by Shawn Patel View Post
    Just curious, when did you take that gif of the RuneScape switching? Those armor models have been out dated for ages now.
    It's from 2010... Look at the green quest tab thingy.. That was in 2010 and got replaced in December of 2011 with the newer one.
    Reply With Quote  
     

  5. #15  
    Banned
    Join Date
    Apr 2012
    Posts
    479
    Thanks given
    36
    Thanks received
    72
    Rep Power
    0
    its probably something like this


    declare ->
    Code:
    public int[] toWear = new int[28];
    public boolean needsToDo = false;
    itemwear ->
    Code:
    toWear[invslot] = true;
    needsToDo = true;
    process ->
    Code:
    if (needsToDo) {
     for (int i : toWear) {
      if (toWear[i]) equipItem(i);
      toWear[i] = false;
     }
     needsToDo = false;
    }
    Reply With Quote  
     

  6. #16  
    Registered Member

    Join Date
    Apr 2012
    Posts
    764
    Thanks given
    0
    Thanks received
    276
    Rep Power
    213
    Quote Originally Posted by SGPK View Post
    its probably something like this


    declare ->
    Code:
    public int[] toWear = new int[28];
    public boolean needsToDo = false;
    itemwear ->
    Code:
    toWear[invslot] = true;
    needsToDo = true;
    process ->
    Code:
    if (needsToDo) {
     for (int i : toWear) {
      if (toWear[i]) equipItem(i);
      toWear[i] = false;
     }
     needsToDo = false;
    }
    So far from true it's funny

    Let me point out the flaws in your code;

    1. toWear[invslot] = true is wrong since you declared "toWear" as an int array, not a boolean array.
    2. You're never storing the item id that needs to be equipped
    3. You're enhanced iterating though an integer array and using "toWear[i]" which will give you an index out of bounds error if the item id (that you never stored) is greater than 27.
    4. You're checking if "toWear[i]" is true when it's an integer array.
    5. equipItem(i) would not work since you also need to specify the item slot in a PI
    6.
    Reply With Quote  
     

  7. Thankful user:


  8. #17  
    Registered Member
    Alpi's Avatar
    Join Date
    Jun 2011
    Age
    25
    Posts
    1,196
    Thanks given
    212
    Thanks received
    285
    Discord
    View profile
    Rep Power
    148
    Vouch for dis guy, been working with him for a month now and I've never trusted anyone more.
    Reply With Quote  
     

  9. #18  
    Banned

    Join Date
    Apr 2012
    Age
    24
    Posts
    2,948
    Thanks given
    1,126
    Thanks received
    1,081
    Rep Power
    0
    Quote Originally Posted by SGPK View Post
    its probably something like this


    declare ->
    Code:
    public int[] toWear = new int[28];
    public boolean needsToDo = false;
    itemwear ->
    Code:
    toWear[invslot] = true;
    needsToDo = true;
    process ->
    Code:
    if (needsToDo) {
     for (int i : toWear) {
      if (toWear[i]) equipItem(i);
      toWear[i] = false;
     }
     needsToDo = false;
    }
    Are you joking? Get off this thread.
    Reply With Quote  
     

  10. #19  
    bop
    Spar's Avatar
    Join Date
    Dec 2011
    Posts
    273
    Thanks given
    227
    Thanks received
    50
    Rep Power
    35
    Quote Originally Posted by L__A View Post
    6.
    Agreed.
    Reply With Quote  
     

  11. #20  
    Registered Member
    Join Date
    Dec 2012
    Posts
    5
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    Or...

    in resetItems(int)
    Code:
    		if(c.getAwaitingUpdate())
    			c.setAwaitingUpdate(false);
    In wearItem(int, int) under if(slot >= 0 && ...)
    Code:
    c.setAwaitingUpdate(true);
    In client.java, in process:
    Code:
    		if(getAwaitingUpdate())
    			getItems().resetItems(3214);
    In Player.java declare:
    Code:
    	public void setAwaitingUpdate(boolean update) {
    		awaitingUpdate = update;
    	}
    	
    	public boolean getAwaitingUpdate() {
    		return awaitingUpdate;
    	}
    	
    	private boolean awaitingUpdate = false;
    Edit: got derepped for posting "shit code making the thread look bad." If you think the above code is shit, you're a moron. It really can't get ANY simpler.
    Reply With Quote  
     

  12. Thankful users:


Page 2 of 4 FirstFirst 1234 LastLast

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. Replies: 12
    Last Post: 07-27-2011, 08:24 PM
  2. [$40] Server sided end of voting system
    By !!A!! in forum Requests
    Replies: 3
    Last Post: 04-24-2011, 12:22 PM
  3. client sided or server sided?
    By wa3ad in forum Help
    Replies: 9
    Last Post: 04-21-2011, 03:53 PM
  4. help on client sided and server sided
    By Zᴀᴄʜ in forum Help
    Replies: 5
    Last Post: 06-20-2010, 08:24 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
  •