Jump to content
  • 0

auto pop up


Question

Posted

help me please

 

I want create auto pop up. if player level  52

 

level52.htm

<html><title>NewBieAuto Item</title><body>
<center><font color="LEVEL">Welcome.</font><br>
<button action="bypass -h voice .b_fight" value="Fight" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm">
<button action="bypass -h voice .b_magic" value="Magic" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm">
<button action="bypass -h voice .b_small" value="Small" width=200 height=27 back="L2UI_CT1.OlympiadWnd_DF_HeroConfirm_Down" fore="L2UI_CT1.OlympiadWnd_DF_HeroConfirm">

</body></html>

 

 

add to file ??

if (player.getLevel() == 52)
	{
		String autoarmor= HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/html/level5.htm");
		if (serverNews != null)
		{
			sendPacket(new NpcHtmlMessage(1, autoarmor));
		}
	}

 

 

I edit Quest 255_Tutorial. and add

         

   elif playerLevel == 48 :
                   if st.getInt("lvl") < 48:
                      st.playSound("ItemSound.quest_tutorial")
                      st.set("lvl","48")
                      st.showQuestionMark(33)
        +       elif playerLevel >= 52 :
        +           if st.getInt("lvl") < 52:
        +              st.playSound("ItemSound.quest_tutorial")
        +              st.set("lvl","76")
        +              htmltext = "../../../html/level52.htm"
                elif playerLevel == 58 :
                   if st.getInt("lvl") < 58:

 

It not work

 

 

help me please

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..