Thread: Dialogue account creation 718-728

Results 1 to 10 of 10
  1. #1 Dialogue account creation 718-728 
    Registered Member
    Join Date
    Feb 2013
    Posts
    45
    Thanks given
    7
    Thanks received
    0
    Rep Power
    11
    Hello,

    I want to add a dialogue for the first time a player join. I tried to send the dialogue along with the starter items (player.java) but no dialogue appear when the account logs in.

    Any ideas? I'm using Rome 718 (loading 728 I believe).

    In addition, does anyone know how to make two different npcs talk into the same dialogue? I only seem able to put 1 face.

    Thank you!!
    Reply With Quote  
     

  2. #2  
    EXALTED

    Join Date
    Nov 2012
    Posts
    393
    Thanks given
    35
    Thanks received
    33
    Rep Power
    5
    Try triggering it with a command and see if the problem is the dialogue. I'd assume its just not being called however.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Feb 2013
    Posts
    45
    Thanks given
    7
    Thanks received
    0
    Rep Power
    11
    The dialogue works fine. I can't figure out how to send it properly when the player first log in.
    Reply With Quote  
     

  4. #4  
    EXALTED

    Join Date
    Nov 2012
    Posts
    393
    Thanks given
    35
    Thanks received
    33
    Rep Power
    5
    Make a check for new player and call it in LoginManager.java under the sendLogin method.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2013
    Posts
    45
    Thanks given
    7
    Thanks received
    0
    Rep Power
    11
    I dont have a LoginManager, only LoginPacketsEncoder. Do you have an exemple of how to check for new player? I'm sorry I have never done anything like this before...
    Reply With Quote  
     

  6. #6  
    Hi :)


    Join Date
    Apr 2016
    Posts
    622
    Thanks given
    84
    Thanks received
    161
    Rep Power
    93
    Quote Originally Posted by raph View Post
    I dont have a LoginManager, only WorldPacketsEncoder. Do you have an exemple of how to check for new player? I'm sorry I have never done anything like this before...
    What i do is create a int

    public int starter = 0;

    and then in your login method you would do this

    p.starter = 1;
    if (p.starter == 1) {
    DIALOGUE SHIT GOES HERE
    }

    Works for me
    Reply With Quote  
     

  7. Thankful user:


  8. #7  
    Registered Member
    Join Date
    Feb 2013
    Posts
    45
    Thanks given
    7
    Thanks received
    0
    Rep Power
    11
    Adding that in my loginpacketsencoder (and switching private int starter to public int starter = 0 (in player.java)) will prevent me from logging in...

    any other ideas?
    Reply With Quote  
     

  9. #8  
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    Quote Originally Posted by raph View Post
    Adding that in my loginpacketsencoder (and switching private int starter to public int starter = 0 (in player.java)) will prevent me from logging in...

    any other ideas?
    Don't add it there.

    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Code:
    public boolean started = false;
    if (started == false) {
    player.lock();
    player.startDialogue("Dialogue");
    started = true;
    }

    Reply With Quote  
     

  10. Thankful user:


  11. #9  
    Age Of Chaos Developer
    GreekO's Avatar
    Join Date
    Nov 2012
    Posts
    336
    Thanks given
    133
    Thanks received
    22
    Rep Power
    14
    Quote Originally Posted by Falconpunch View Post
    Don't add it there.

    Player.java buddy. find init() or something like that and find where it adds the starter and do what someone mentioned above (Although an int is 4 scrublords)
    Code:
    public boolean started = false;
    if (started == false) {
    player.lock();
    player.startDialogue("Dialogue");
    started = true;
    }
    "Although an int is 4 scrublords" Love that comment ! deffo worth a sig
    Reply With Quote  
     

  12. Thankful user:


  13. #10  
    Registered Member
    Join Date
    Feb 2013
    Posts
    45
    Thanks given
    7
    Thanks received
    0
    Rep Power
    11
    fixed thanks
    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. Replies: 3
    Last Post: 10-16-2013, 02:32 AM
  2. 718 Account creation problem
    By legend 349 in forum Help
    Replies: 0
    Last Post: 06-30-2013, 06:06 AM
  3. Account Creation Issues 718/736 Tricky one
    By Sharp Indie in forum Help
    Replies: 2
    Last Post: 05-10-2013, 01:11 AM
  4. Account Creation Issues 718/736 Tricky one
    By Sharp Indie in forum Help
    Replies: 0
    Last Post: 05-09-2013, 05:01 AM
  5. Solution to prevent multiple account creation.
    By Nathan in forum Suggestions
    Replies: 13
    Last Post: 08-04-2009, 10:12 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
  •