Thread: Opening Interface on Login

Results 1 to 4 of 4
  1. #1 Opening Interface on Login 
    Registered Member
    Join Date
    Feb 2019
    Posts
    2
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I am trying to make the Make-over mage interface appear when you log in.
    However, I want this to appear ONLY when it is your first time connecting to the server.

    Could I have some guidance please?

    - I am using Pimpscape source.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2017
    Posts
    297
    Thanks given
    204
    Thanks received
    131
    Rep Power
    0
    not sure how it is on pimpscape but add this to the code when you login.

    c.getPA().showInterface(3559);
    c.canChangeAppearance = true;
    might be different on pimpscape.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2014
    Posts
    259
    Thanks given
    2
    Thanks received
    6
    Rep Power
    11
    public void initialize() {
    synchronized (this) {
    Search for the code and place under
    c.getPA().showInterface(3559);
    c.canChangeAppearance = true;

    Enjoy
    Owner of ThamenX
    Reply With Quote  
     

  4. #4  
    Registered Member Grant_'s Avatar
    Join Date
    Aug 2014
    Posts
    450
    Thanks given
    89
    Thanks received
    93
    Rep Power
    69
    Quote Originally Posted by blaxe View Post
    Search for the code and place under


    Enjoy
    This will open the interface every single time you login, regardless of if it is your first time.

    OT: Here are some options
    Code:
    public void initialize() {
    	if (!hasFirstLogin) {
    		//Code to open make-over-mage interface here
    		hasFirstLogin = !hasFirstLogin;
    	}
    ...
    }
    hasFirstLogin would be a player variable that is set to false initially and saved to the character file.

    I have no idea what 'pimpscape' consists of, but it may (doubtful) have a method that checks if a user's IP has logged in before and give starting gear. If this is the case you could display the interface after starter gear is given, as this is only done once on first login.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [614] Opening Interface on login
    By ConspiracyRSPS in forum Help
    Replies: 1
    Last Post: 07-18-2013, 06:18 PM
  2. open interface on login (pi)
    By xx1hitkoxx in forum Help
    Replies: 2
    Last Post: 05-15-2012, 11:36 PM
  3. [508] Bulby open interface on login?
    By Khalym in forum Requests
    Replies: 4
    Last Post: 07-03-2010, 12:21 PM
  4. load interface on login [508]
    By Wicksyere in forum Help
    Replies: 0
    Last Post: 07-31-2009, 11:45 PM
  5. Interfaces on Login?
    By Snow Cat123 in forum Help
    Replies: 11
    Last Post: 07-04-2009, 01:46 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
  •