Jump to content
  • 0

Need some Help with Custom NPC (Buy/Multisell)


Question

Posted

Hello everyone, I'm having some problems attaching the buylist and multisell to the custom NPC I created.

First step i just created NPC on \data\stats\npcs\npcs\custom

 

<npc id="7806" templateId="32503" nameRu="Пинтер" nameEn="Pasive Armor" titleRu="Кузнец" titleEn="Blacksmith">
		<set name="aggroRange" value="0" />
		<set name="ai_type" value="Fighter" />
		<set name="baseAtkRange" value="40" />
		<set name="baseCON" value="43" />
		<set name="baseCritRate" value="4" />
		<set name="baseDEX" value="30" />
		<set name="baseHpMax" value="2444" />
		<set name="baseHpRate" value="1" />
		<set name="baseHpReg" value="8" />
		<set name="baseINT" value="21" />
		<set name="baseMAtk" value="470" />
		<set name="baseMAtkSpd" value="333" />
		<set name="baseMDef" value="217" />
		<set name="baseMEN" value="20" />
		<set name="baseMpMax" value="1346" />
		<set name="baseMpReg" value="2.7" />
		<set name="basePAtk" value="689" />
		<set name="basePAtkSpd" value="253" />
		<set name="basePDef" value="296" />
		<set name="baseRunSpd" value="120" />
		<set name="baseSTR" value="40" />
		<set name="baseShldDef" value="0" />
		<set name="baseShldRate" value="0" />
		<set name="baseWIT" value="20" />
		<set name="baseWalkSpd" value="50" />
		<set name="castle_id" value="1" />
		<set name="collision_height" value="16.5" />
		<set name="collision_radius" value="7.0" />
		<set name="level" value="70" />
		<set name="rewardExp" value="0" />
		<set name="rewardRp" value="0" />
		<set name="rewardSp" value="0" />
		<set name="shots" value="NONE" />
		<set name="texture" value="" />
		<set name="type" value="Npc" />
		<equip>
			<rhand itemId="89" />	<!--Big Hammer-->
		</equip>
		<skills>
			<skill id="4416" level="18" />	<!--Dwarves-->
		</skills>
		<attributes>
			<defence attribute="fire" value="150" />
			<defence attribute="water" value="150" />
			<defence attribute="wind" value="150" />
			<defence attribute="earth" value="150" />
			<defence attribute="holy" value="150" />
			<defence attribute="unholy" value="150" />
		</attributes>
	</npc>

 

Second Step I have created  htm   on \data\html\en\default  taking a reference one and changing the name which I have given the same as the ID of my NPC Custom

 

 I have set up this on HTML(is from grocery)

<html><body>Trader Helvetia:<br>
Welcome! Our shop carries a wide range of inexpensive but high-quality items. Come in, come in! Take some time and have a look around. If you need anything, just give me a shout.<br>
<a action="bypass -h npc_%objectId%_Buy 3008100">Buy/Sell/Refund General.</a><br>
<a action="bypass -h npc_%objectId%_Buy 3008101">Buy/Sell/Refund Dyes.</a><br>
<a action="bypass -h npc_%objectId%_TerritoryStatus">View information about the local lord and tax rate.</a><br>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>

 

 

 

Third step I have spawned NPC on Server he give me html dialog but dont do nothing when i click

 

What can i do to solve this?

 

 


 

 

3 answers to this question

Recommended Posts

  • 0
Posted

Your npc need to be Merchant. I don't know which pack you use so it can be L2Merchant or Merchant. Place the NPC ID to Merchant folder. This should solve your problem.

<set name="type" value="Npc" />
		
Guest
This topic is now closed to further replies.


  • Posts

    • Hi   I’m looking for npcname.dat for h5, it should have level of mobs + aggro   Currently I am using advext64, that’s why I am trying to make it through client side   I’ve seen someone already shared it before long time but unfortunately link is dead   If anyone has the file please share it
    • I'll stop playing, so I'll sell my (DC) Donator Coins  for cheap. Ask around; I have plenty. Here's the price list. Contact phone: +56 9 5429 4317    
    • Hi, im selling adena/items reborn signature C4   500kk  - 1kk = $2,90 ic set        pm here or discord  _flamber 
    • Want more engagement, reach, and traffic on Discord? Automate promotion of your server, members, reactions, and messages in minutes — no bots, no hassle, no overpayments. SocNet’s SMM Panel — fast launch, fair prices, real results. Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, SoundCloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, Trustpilot, Apple Music, TripAdvisor, Snapchat, and more digital services. Followers, likes, views, reposts, plays, viewers, reactions, comments. Get $1 bonus for your first trial order! Just open a ticket with the subject “Get Trial Bonus” on our website (Support) ➡ Go to SMM Panel (clickable) or contact our bot support How to order: ➡ SMM Panel: Click ➡ SMM Panel directly in our Telegram bot: Click (Menu ➡ SMM Panel) Our Digital Goods Store: ➡ Online Store: Click ➡ Telegram Bot: Click Regular customers get extra discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Get wholesale consultations — Discuss partnership deals (current partners: https://socnet.bgng.io/partners ) — Become our supplier SocNet — your source for digital goods and premium subscriptions Our project is also looking for new suppliers! — Snapchat accounts — Reddit accounts with karma — LinkedIn accounts with connections Message us directly or contact support — let’s discuss the terms! We are always open to other partnership offers as well. Our online store assortment: ➡ Accounts: Telegram, Facebook, Reddit, Twitter (X), Instagram, YouTube, TikTok, Discord, VK, LinkedIn, GitHub, Snapchat, Gmail, email accounts (Outlook, Firstmail, Rambler, Onet, Gazeta, GMX, Yahoo, Proton, Web.de), Google Voice, Google Ads ➡ Premium Subscriptions: Telegram Premium, Twitter Premium X, YouTube Premium, Spotify Premium, Netflix Premium, Discord Nitro, ChatGPT Plus/PRO, XBOX Game Pass ➡ Additional Services: Telegram Stars, proxies (IPv4, IPv6, ISP, Mobile), VPN (Outline, WireGuard, others), VDS/RDP servers Use promo code AUGUST2025 — get 10% off in our online store! SMM Panel Services: ➡ Use our SMM Panel to boost Facebook, Instagram, Telegram, Spotify, Soundcloud, YouTube, Reddit, Threads, Kick, Discord, LinkedIn, Likee, VK, Twitch, Kwai, Reddit, website traffic, TikTok, Trust Pilot, Apple Music, Tripadvisor, Snapchat, and other digital products. Get $1 for your first SMM Panel trial: Simply create a support ticket with the subject “Get Trial Bonus” on our website ➡ Go to SMM Panel (clickable) or contact support via bot Our Key Products: ➡ Online Store: Click ➡ Shop Telegram Bot: Click ➡ SMM Panel: Click Payments accepted: bank cards · cryptocurrency · other popular methods Loyal customers receive additional discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Consult on wholesale purchases — Form a partnership (current partners: https://socnet.bgng.io/partners ) — Become our supplier SocNet — digital goods and premium subscriptions store
  • Topics

×
×
  • 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