Skip to content

[Help - Request] Npc - Html code

Featured Replies

Hello There,

 

I have a question for you guys ... if you know what is the html code for instant buy in a NPC ... Here is an exemple

 

19173248499d7ba0cfa59.jpg

 

I want too know how can i make the same command for " Obtain " , when i press that button is giveing me the Dynasty boots , how can i make the same? Is there a command right ? Can anyone clear me out please ?

it can be made.. via jscript..

 

check the HeroItem Quest Inside ur scripts/custom

 

folder..

 

(in IL Packs : Quests/custom )

  • Author

Hard for me to do this  ::)

Can u be more ... precise  :)

if event == "ItemName":
     st.takeItems(ItemID,ItemCount)
     st.giveItems(ItemID,ItemCount)
     st.setState(State.COMPLETED)
     return "You have obtain the item."
     st.exitQuest(1)	

 

Html Code (Button)

<button value="Main" action="bypass -h Quest QuestName EventName" width=50 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">

  • Author

Thx , i will try !  ;D

 

What i need to do ? is to create a jscript ? place it in Quests ( for exemple name is : " shopbuyer " ?

So the script must be ...

 

if event == "Dynasty Boots":
     st.takeItems(57,10000000)
     st.giveItems(8555,1)
     st.setState(State.COMPLETED)
     return "You have obtain the item."
     st.exitQuest(1)	

 

<button value="Main" action="bypass -h Quest shopbuyer" width=50 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">

This must be it ?

the button is wrong!

 

 

shopbuyer=folder name?

 

<action="bypass -h Quest QuestName EventName"> <--- thge action

 

so if folder have "shopbuyer" as name

 

u must add this

 

<button value="Main" action="bypass -h Quest shopbuyer Dynasty Boots" width=50 height=15 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df">

 

 

 

 

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.