Jump to content
  • 0

[Help - Request] Npc - Html code


Question

Posted

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 ?

5 answers to this question

Recommended Posts

  • 0
Posted

it can be made.. via jscript..

 

check the HeroItem Quest Inside ur scripts/custom

 

folder..

 

(in IL Packs : Quests/custom )

  • 0
Posted

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">

  • 0
Posted

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 ?

  • 0
Posted

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

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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock