Skip to content

[HELP] Redirect a npc .htm page to script .htm page

Featured Replies

Hello. I made my own Npc Buffer and what i want to do is redirect somehow the npc .htm page to the script .htm page. For example the npc id is 7111.htm and the file 1.htm with the buff list is in the script folder 9000_Buffer. When i click on the npc normally all the npc buffer have written on the npc .htm page( 7111.htm in my case) a "buff me" button that you press and takes you to the script page(1.htm in my case). What i want is when i click on the npc(7111.htm) to go automaticly to the 1.htm whitout any buttons or delay. It's like a web redirection or forwarding. Please i really need your help. Thks  :)

well, i dont know if this is what you are searching for but i am gona try;)

 

add the button like this:

 

<button value="Buff Me" action="bypass -h npc_%objectId%_Quest 9000_buffer" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal">

 

and make your _init_.py file and add this:

 

InitialHtml = "1.htm"

  • Author

:) this is exactly what im not trying to do...i want the page to redirect automaticly without any buttons if you get what i mean

Here's the original code from html for websites

<META HTTP-EQUIV="Refresh"
      CONTENT="5; URL=html-redirect.html">

You could do something like this

 

<META HTTP-EQUIV="Refresh"
      CONTENT="5; URL=bypass -h npc_%objectId%_Quest 9000_buffer">

yes, this is the correct code as sp4rd4 said. it works in HTML i mean webpage. i dont know if it works with l2.

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.