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

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

 

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...