Skip to content

auto pop up

Featured Replies

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

Wrong forum - L2J.

 

Learn to post correctly first - and you might get better help :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.