Thread: Help

Results 1 to 8 of 8
  1. #1 Help 
    Registered Member zephazez's Avatar
    Join Date
    Jul 2015
    Posts
    125
    Thanks given
    0
    Thanks received
    5
    Rep Power
    11
    I've been messing around with my quest tab, adding points and trying to get in game time working but i cant seem to get them working.

    problems i'm facing:
    the points aren't updating, they only update once you logout
    i'm not sure how to get in in game playtime working


    This is in player assistant under
    Code:
    	public void writeQuestTab() {
    Code:
    		c.getPA().sendFrame126("Players Online:@gre@ "+PlayerHandler.getPlayerCount(), 33266);
    		c.getPA().sendFrame126("@or2@Player Info:", 33295);
    		c.getPA().sendFrame126("@gre@Player name: @yel@" + c.playerName	+ "", 33296);
    		c.getPA().sendFrame126("@gre@Player rank: @yel@" + L + " ", 33297);
    		c.getPA().sendFrame126("@gre@"+ Server.days +" @or2@Days,@gre@ "+ Server.hours +" @or2@Hours, @gre@ "+ Server.minutes +" @or2@Min", 33298);
    		c.getPA().sendFrame126("@gre@XP is locked: @yel@" + c.xpLock + "", 33299);
    		//slayer task 33300
    		c.getPA().sendFrame126("@or2@Player Points:", 33301);
    		c.getPA().sendFrame126("@gre@Voting Points: @yel@" + c.votePoints + "", 33302);
    		c.getPA().sendFrame126("@gre@Agility Points: @yel@" + c.SPoints + "", 33303);
    		c.getPA().sendFrame126("@gre@Dung Points: @yel@" + c.dungPoints + "", 33304);
    		c.getPA().sendFrame126("@gre@Assault Points: @yel@" + c.barbPoints + "", 33305);
    		c.getPA().sendFrame126("@gre@Slayer Points: @yel@" + c.slayerPoints + "", 33306);
    		c.getPA().sendFrame126("@gre@Dominion Points: @yel@" + c.dominionPoints + "", 33307);
    		c.getPA().sendFrame126("@gre@Donator Points: @yel@" + c.DonorPoint + "", 33308);
    		c.getPA().sendFrame126("@gre@Training Points: @yel@" + c.funPoints + "", 33309);
    	}
    could someone help me with this please?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2017
    Posts
    113
    Thanks given
    23
    Thanks received
    29
    Rep Power
    16
    Well if you are wanting anything to update you need the method to be called so it re-reads the code and updates it. It probably updates not when you log out but when you login. It is calling that "writeQuestTab();" somewhere and it reads the code and updates. So if you are wanting it to refresh non stop you are going to have to throw it in some type of process or loop so it keeps calling it/refreshing it over and over. But having it called like that in a process probably is not going to be good on your servers stress level. I would recommend just making a refresh button that the player clicks on in the quest tab.

    if (playerClicksRefreshButton) {
    writeQuestTab();
    }

    That way it just refreshes.

    But if you insist on it continuously updates in your client class there should be a process there.

    Process(){
    writeQuestTab();
    //all of your other code here on out.
    }


    And for your "Game Time" are you wanting how long they have been playing for that specific session or how long they have been playing since they created their account?
    Attached image
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member zephazez's Avatar
    Join Date
    Jul 2015
    Posts
    125
    Thanks given
    0
    Thanks received
    5
    Rep Power
    11
    Quote Originally Posted by Catherby OS View Post
    Well if you are wanting anything to update you need the method to be called so it re-reads the code and updates it. It probably updates not when you log out but when you login. It is calling that "writeQuestTab();" somewhere and it reads the code and updates. So if you are wanting it to refresh non stop you are going to have to throw it in some type of process or loop so it keeps calling it/refreshing it over and over. But having it called like that in a process probably is not going to be good on your servers stress level. I would recommend just making a refresh button that the player clicks on in the quest tab.

    if (playerClicksRefreshButton) {
    writeQuestTab();
    }

    That way it just refreshes.

    But if you insist on it continuously updates in your client class there should be a process there.

    Process(){
    writeQuestTab();
    //all of your other code here on out.
    }


    And for your "Game Time" are you wanting how long they have been playing for that specific session or how long they have been playing since they created their account?

    how long they have been playing since they made their account, like total ingame login time
    Reply With Quote  
     

  4. #4  
    Registered Member 1m6n29s9gmxh's Avatar
    Join Date
    Jan 2017
    Posts
    430
    Thanks given
    32
    Thanks received
    100
    Rep Power
    40
    Quote Originally Posted by Catherby OS View Post
    Well if you are wanting anything to update you need the method to be called so it re-reads the code and updates it. It probably updates not when you log out but when you login. It is calling that "writeQuestTab();" somewhere and it reads the code and updates. So if you are wanting it to refresh non stop you are going to have to throw it in some type of process or loop so it keeps calling it/refreshing it over and over. But having it called like that in a process probably is not going to be good on your servers stress level. I would recommend just making a refresh button that the player clicks on in the quest tab.

    if (playerClicksRefreshButton) {
    writeQuestTab();
    }

    That way it just refreshes.

    But if you insist on it continuously updates in your client class there should be a process there.

    Process(){
    writeQuestTab();
    //all of your other code here on out.
    }


    And for your "Game Time" are you wanting how long they have been playing for that specific session or how long they have been playing since they created their account?
    Why not just make it so when you click the quest tab it automatically refreshes?
    Spoiler for Insanity V2 Coders be like ::
    Attached image
    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member zephazez's Avatar
    Join Date
    Jul 2015
    Posts
    125
    Thanks given
    0
    Thanks received
    5
    Rep Power
    11
    Quote Originally Posted by OsFury View Post
    Why not just make it so when you click the quest tab it automatically refreshes?
    How would i go about doing that?
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Feb 2017
    Posts
    113
    Thanks given
    23
    Thanks received
    29
    Rep Power
    16
    Quote Originally Posted by OsFury View Post
    Why not just make it so when you click the quest tab it automatically refreshes?
    what do you mean when he clicks on the quest tab? Like just switch out of the tab and switch back to the quest tab and it updates again? I am assuming he wants it to update while he is currently on the quest tab. I am not exactly sure if there is a process that lets you reselect the tab while you are already on it. There really isn't a need to reclick on the tab you are already on so I think he would have to write a whole system to do that. I might be wrong though. But if I am understanding you correctly yes it should update everytime he goes to the quest tab.

    Quote Originally Posted by Zephazez View Post
    How would i go about doing that?
    You will need to look at you code where you switch tabs. And when you are there just have it recall all of your frames so it updates them there. But a refresh button would be nice to have so you dont have to keep going out and back in of the quest tab.
    Attached image
    Attached image
    Reply With Quote  
     

  7. #7  
    Registered Member zephazez's Avatar
    Join Date
    Jul 2015
    Posts
    125
    Thanks given
    0
    Thanks received
    5
    Rep Power
    11
    Quote Originally Posted by Catherby OS View Post
    what do you mean when he clicks on the quest tab? Like just switch out of the tab and switch back to the quest tab and it updates again? I am assuming he wants it to update while he is currently on the quest tab. I am not exactly sure if there is a process that lets you reselect the tab while you are already on it. There really isn't a need to reclick on the tab you are already on so I think he would have to write a whole system to do that. I might be wrong though. But if I am understanding you correctly yes it should update everytime he goes to the quest tab.



    You will need to look at you code where you switch tabs. And when you are there just have it recall all of your frames so it updates them there. But a refresh button would be nice to have so you dont have to keep going out and back in of the quest tab.
    I used the achievement button (Green quest tab one) that was already there and remade the sprite, and for the code I made it so when you click it it loads up the lines of code again so ultimately I did make a reload button, thank you for your help
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Feb 2017
    Posts
    113
    Thanks given
    23
    Thanks received
    29
    Rep Power
    16
    Quote Originally Posted by Zephazez View Post
    I used the achievement button (Green quest tab one) that was already there and remade the sprite, and for the code I made it so when you click it it loads up the lines of code again so ultimately I did make a reload button, thank you for your help
    Great job! Happy to help
    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. Need gfx help?
    By Beh3moth2 in forum General
    Replies: 1
    Last Post: 04-03-2007, 11:50 AM
  2. GIMP brush help
    By man777 in forum Tutorials
    Replies: 0
    Last Post: 04-03-2007, 03:11 AM
  3. Need help again
    By Zane in forum Showcase
    Replies: 4
    Last Post: 04-02-2007, 09:11 PM
  4. Need help choosing sig
    By Zane in forum Showcase
    Replies: 7
    Last Post: 04-02-2007, 03:14 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
  •