Pulentolento Posted August 22, 2016 Posted August 22, 2016 Hi Somebody tried to do this kind of feature? After reading this post from 2012: http://www.maxcheaters.com/topic/127105-show-an-html-windows-on-the-login/?hl=user_connected&do=findComment&comment=1749811 I tried to edit and add a new class on AI using this handler "user_connected", and here is the code I made for test: class welcome_tutorial { handler: EventHandler USER_CONNECTED(talker) { if (talker.level < 6) { myself.ShowPage (talker, "welcome_human_fighter001.htm"); } return; } } So after rebooting the server and making new characters, I have no luck, nothing show up. I missing something else to add on this class? Btw, I'm using AdvExt/GF extender. thx
0 Pulentolento Posted August 30, 2016 Author Posted August 30, 2016 Ok, I figure out by myself. I change the class name as a "tutorial_quest_npc" and the code test works prefectly!. So apparently it works just for that class name. The final class will be: class tutorial_quest_npc { handler: EventHandler USER_CONNECTED(talker) { if (talker.level < 6) { myself.ShowPage (talker, "welcome_human_fighter001.htm"); } return; } } It works for GF/H5 files on AdvExt extender.
Question
Pulentolento
Hi
Somebody tried to do this kind of feature?
After reading this post from 2012:
http://www.maxcheaters.com/topic/127105-show-an-html-windows-on-the-login/?hl=user_connected&do=findComment&comment=1749811
I tried to edit and add a new class on AI using this handler "user_connected", and here is the code I made for test:
class welcome_tutorial { handler: EventHandler USER_CONNECTED(talker) { if (talker.level < 6) { myself.ShowPage (talker, "welcome_human_fighter001.htm"); } return; } }So after rebooting the server and making new characters, I have no luck, nothing show up.
I missing something else to add on this class?
Btw, I'm using AdvExt/GF extender.
thx
2 answers to this question
Recommended Posts