Svanhild 2 Posted November 27, 2016 Hi, I would like to request a simple script that a dialog or npc window will popup on first login for every newly registered player just to say something like Hello, welcome to our server. Quote Share this post Link to post Share on other sites
0 Asheraf 123 Posted November 27, 2016 OnPCLoginEvent: if (!not_first_time) { ++not_first_time; mes("Hello There."); close; } end; Quote Share this post Link to post Share on other sites
0 Khazou 12 Posted November 28, 2016 Maybe use an account variable instead of a player one Quote Share this post Link to post Share on other sites
0 Svanhild 2 Posted November 28, 2016 Maybe use an account variable instead of a player one can you demonstrate the code? I don't get what you mean. So would it check if the account haven't been logged in yet? Quote Share this post Link to post Share on other sites
0 Asheraf 123 Posted November 28, 2016 Maybe use an account variable instead of a player one can you demonstrate the code? I don't get what you mean. So would it check if the account haven't been logged in yet? emm by using #not_first_time as a variable in my example you may want to know more about variables so you can read this: https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt#L443 1 Khazou reacted to this Quote Share this post Link to post Share on other sites
0 Svanhild 2 Posted November 29, 2016 Thanks, that helps a lot. Quote Share this post Link to post Share on other sites
Hi, I would like to request a simple script that a dialog or npc window will popup on first login for every newly registered player just to say something like Hello, welcome to our server.
Share this post
Link to post
Share on other sites