Thread: Sending Dialog When Logging In

Results 1 to 9 of 9
  1. #1 Sending Dialog When Logging In 
    Member
    Join Date
    Jul 2012
    Posts
    126
    Thanks given
    2
    Thanks received
    0
    Rep Power
    0
    How do i send dialog to users that log in.
    ive made a dialog already where do i add it
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Nov 2009
    Posts
    1,421
    Thanks given
    559
    Thanks received
    266
    Rep Power
    236
    At the end of the login method, if pi it's the initialize() method.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Jay's Avatar
    Join Date
    Apr 2012
    Posts
    541
    Thanks given
    96
    Thanks received
    177
    Rep Power
    201
    Want to add it to ''newplayers'' only or to everyone?

    Otherwise, like malicious said, add this under initialize()
    Code:
    					c.getDH().sendDialogues(ID,c.npcType);
    -JJ
    Reply With Quote  
     

  4. #4  
    Member
    Join Date
    Jul 2012
    Posts
    126
    Thanks given
    2
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Malicious View Post
    At the end of the login method, if pi it's the initialize() method.
    Code:
    src\server\model\players\Client.java:1041: error: cannot find symbol
                    c.getDH().sendDialogues(31, npcType);
                    ^
      symbol:   variable c
      location: class Client
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  5. #5  
    Registered Member
    Jay's Avatar
    Join Date
    Apr 2012
    Posts
    541
    Thanks given
    96
    Thanks received
    177
    Rep Power
    201
    try:
    Code:
    getDH().sendDialogues(31, npcType);
    If thats not it, search in your source for something similair and copy that, hope i helped you If you want you can push the ''thanks'' or rep button xD
    Any other questions feel free to pm

    Goodluck!
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Jan 2011
    Posts
    1,940
    Thanks given
    1,217
    Thanks received
    547
    Rep Power
    607
    Quote Originally Posted by maazh View Post
    Code:
    src\server\model\players\Client.java:1041: error: cannot find symbol
                    c.getDH().sendDialogues(31, npcType);
                    ^
      symbol:   variable c
      location: class Client
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    you're already in the client class so remove the c.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Jay's Avatar
    Join Date
    Apr 2012
    Posts
    541
    Thanks given
    96
    Thanks received
    177
    Rep Power
    201
    Quote Originally Posted by Lucid View Post
    you're already in the client class so remove the c.
    Yup sorry that was my fault
    Reply With Quote  
     

  8. #8  
    Explicit Jerba™'s Avatar
    Join Date
    May 2012
    Posts
    720
    Thanks given
    83
    Thanks received
    167
    Rep Power
    55
    Code:
    getDH().sendDialogues(31, npcType);
    You can also add an if statement if you want to to only happen for a certain condition
    Example, player rights...

    if(playerRights == 3) {
    getDH().sendDialogues(31, npcType);
    }


    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Sep 2012
    Age
    29
    Posts
    471
    Thanks given
    90
    Thanks received
    6
    Rep Power
    14
    Quote Originally Posted by 'Jerba View Post
    Code:
    getDH().sendDialogues(31, npcType);
    You can also add an if statement if you want to to only happen for a certain condition
    Example, player rights...


    could this send one Dialogue to every player when a staff member doing a command?


    blablabla"on";
    server.miniAtt =True;
    branch

    blablabla"testd";
    if (Server.miniAtt);
    getDH().sendDialogues(31, npcType);
    else if (c.miniAtt);
    c.sendmessage(""shit?);
    branchs


    ?
    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. Sending dialog help!
    By maazh in forum Help
    Replies: 2
    Last Post: 09-15-2012, 01:44 PM
  2. Logging in, logging out problem
    By u22u in forum Help
    Replies: 2
    Last Post: 06-21-2012, 04:45 PM
  3. PI Dialog Help
    By Nice bones in forum Help
    Replies: 0
    Last Post: 08-28-2011, 06:14 AM
  4. Dialog for PI help please?
    By Anthony in forum Help
    Replies: 1
    Last Post: 05-05-2011, 01:57 AM
  5. dialog
    By TheRandyZ in forum Help
    Replies: 0
    Last Post: 06-18-2010, 03: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
  •