Welcome Bot

Discussion in 'Server and Client Scripting' started by Pigs114, Jul 21, 2011.

  1. Pigs114

    Pigs114 New Member

    Joined:
    Jul 21, 2011
    Messages:
    2
    Likes Received:
    0
    Could anyone please refer me too a welcome bot script? I cant seem to find one and people in my server want one. Thank you very much.
     
  2. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Its very easy to script one. Add this code to your "afterLogIn:function(src) {" (Put it under it ;3)
    Code (javascript):
    1.  
    2. sys.sendAll("Welcome Message: Welcome, "+sys.name(src)+"!");
    3. /* Or you can use this one... */
    4. sys.sendMessage(src,"Welcome Message: Welcome, "+sys.name(src)+"!");
    5. /*
    6. You can put many kinds of welcome messages!
    7. First sends the message to everyone; second to the player who logs in.
    8. */
    9.  
     
  3. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    ^^^ Use TUO's way or if you don't know how or not used to putting stuff in Scripts, just paste the Script Link here and one of our Pokemon Online Scripters will do it for you or i'll do it for you. ^^^
    And if you would want to learn how to Script, ect. Here you go. Credit to Mystra for the Script Functions.*
     
    Last edited: Jul 22, 2011
  4. Pigs114

    Pigs114 New Member

    Joined:
    Jul 21, 2011
    Messages:
    2
    Likes Received:
    0
    Thank you very much, works. Gonna go learn how to script now :D
     
  5. TheUnknownOne

    TheUnknownOne Member

    Joined:
    Mar 28, 2011
    Messages:
    988
    Likes Received:
    3
    Np, pigs :3
     
  6. supertrunks8

    supertrunks8 Pwnage

    Joined:
    Jun 20, 2011
    Messages:
    350
    Likes Received:
    0
    Yeah scripting is really fun but hard, kinda. U should make a Server:
    http://pokemon-online.eu/forums/showthread.php?23-Tutorial-on-how-to-run-a-server
    Make it private and if you can't port just use this is the Pokemon Online Adv. Connect Box:

    "localhost"

    Or you can use:

    "127.0.0.1."

    And u will enter ur server.
    But only you can enter. So then go to Scripts and u can start learning and Testing Scripts or ur Scripts.
    It's very helpful to have a Script Testing Server cause u can try New Commands, and Learn Scripting.
    And if you would need Extra Help post in the "Script" part of the Forums and others will help you.

    Oh and here is an easy command you can learn:
    Code (text):
    1.  
    2. }
    3. if(command == "me") {
    4. sys.sendAll("*** " + sys.name(src) + " " + commandData);
    5. return;
    6.  
    If you were to do /me Script Testing.
    "(15:52:05) *** Pigs114 Script Testing."

    Also this is a Basic Script, you can look over some and see how the Commands Work:

    http://pokemon-online.eu/none/Scripts_21.html

    Good Luck and Have Fun Scripting :D
     
    Last edited: Jul 23, 2011