Jump to content
  • 0

Question

Posted

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

  • 0
Posted

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.

Guest
This topic is now closed to further replies.


×
×
  • Create New...