Jump to content
  • 0

Adding(Copying) A Weapon/armor. Copying An Npc, Editing It's Html And Purpose


Question

Posted

I'm using l2j aCis.

 

So, i've tried to do this on my own, but as i'm new to this, the furthest i got, was to be able to see the item icons in the shop, followed by a crit error quicly after that. I'll list the steps i've done, please correct me where i went wrong.


NPC PART:

 

I was attempting to make an NPC which sells CUSTOM items for 1 adena. The items are already implemented in the server, they just aren't sold at any NPC(craftable/droppable by RB's).

1. I added an NPC in the "data/xml/npc/npcs.xml" file(Copied the stats of an old one) with an unique ID, changed its type to "L2Mercant(idk if that matters ?)

2. I added the NPC in npcgrp.dat, npcname-e.dat.

3. Logged in game, spawned the NPC, the NPC was visible, it's name and tittle as well(no html yet).
4. Added the HTML file in "data\html\merchant\NPCID.html". The html contains some text and 2 anchors(example: "<a action="bypass -h npc_%objectId%_multisell 364543">". The multisell ID's are unique.
5. I created the multisell xml files, in which i added the custom weapons / armors, changed the adena price to "1".

6. Logged in, checked the shop, when clicking on the Weapon or Armor button, the shop opens up. I can see the weapon icons, but shortly after that follows a crit. error :

History: UUIDATA_ITEM::execGetSetItemIDList <- UObject::execClassContext <-
 (ToolTip Transient.ToolTip0 @ FunctionInterface.ToolTip.ReturnTooltip_NTT_ITEM : 11BE) <- UObject::ProcessEvent <-
 (ToolTip Transient.ToolTip0, Function Interface.ToolTip.OnEvent) <-
 XMLUIManager::ExecuteUIEvent <- NCTooltipManager::MakeTooltipInfo <-
 NCItemWnd::OnPostPaint <- NCVirtualWndMain::PostDrawChildWindow <-
 NCVirtualWndMain::DispatchWndMsg <- NConsoleWnd::ConsolePostRender <-
 UGameEngine::Draw <- UWindowsViewport::Repaint <- UWindowsClient::Tick <-
 ClientTick <- UGameEngine::Tick <- UpdateWorld <- MainLoop 

After that, even my client-side files got messed up, every item (even in my inventory, including retail items) was shown as "NoNameItem", which i solved by reapplying the patch.

Copying a weapon/armor part:
I want to make an expirable weapon/armor.
Got no clue what exactly to do here besides editing the items.xml file, copying the weapon/armor and changing it's ID to an unique one, changing it's stats for it to be expirable(I guess the stat used to set this is "<set name="duration" val="600" />" ?)

Is there also an edit needed in the client?

Hope there's someone out here who can help me out please :)

10 answers to this question

Recommended Posts

  • 0
Posted

I added the NPC in npcgrp.dat, npcname-e.dat.

 

1.You don't have to add the npc to client side..You just create a new one in data/xml/npcs (as you already did)

And then you create the html and you add it to the correct folder (depends on the type of npc)

 

2.As for the html it's ok there are no problems.

 

3.The critical error is probably because you didn't add properly the custom items.

If you want to add custom items you should add them to armorgrp.dat (armors) and to itemname-e.dat

Systextures,Animations must exist too.(that may cause your critical error)

 

4.Another idea is that your multisell might be wrong in some way , but i dont think so because you are saying that icons (weapons,armor) are shown properly.

  • 0
Posted

I added the NPC in npcgrp.dat, npcname-e.dat.

 

1.You don't have to add the npc to client side..You just create a new one in data/xml/npcs (as you already did)

And then you create the html and you add it to the correct folder (depends on the type of npc)

 

2.As for the html it's ok there are no problems.

 

3.The critical error is probably because you didn't add properly the custom items.

If you want to add custom items you should add them to armorgrp.dat (armors) and to itemname-e.dat

Systextures,Animations must exist too.(that may cause your critical error)

 

4.Another idea is that your multisell might be wrong in some way , but i dont think so because you are saying that icons (weapons,armor) are shown properly.

1. I added the NPC to the client side because i created a new ID for it, therefore u must define it's looks don't u ? otherwise it just shows me a bunny.

3.The custom items are already added to the server and they work properlly,they get dropped by raids and are usable, working the way they're supposed to.

This error occured when i tried adding them to the NPC. I guess i added them properlly because they got shown in the shop ?

4. Here's my multisell code:

 

<?xml version='1.0' encoding='utf-8'?>
<list>
 <item id="1">
   <production id="9205" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="2">
   <production id="9202" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="3">
   <production id="9203" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="4">
   <production id="9206" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="5">
   <production id="9208" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="6">
   <production id="9209" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="7">
   <production id="9214" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="8">
   <production id="9215" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="9">
   <production id="9216" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="10">
   <production id="9217" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="11">
   <production id="9204" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="12">
   <production id="9207" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="13">
   <production id="5801" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
 <item id="14">
   <production id="5800" count="1"/>
   <ingredient id="57" count="1"/>
  </item>
</list>

The ID's are correct, i checked them twice, also tried to manually spawn them.

  • 0
Posted (edited)

Here's an example of an npc, make sure to add them on the proper file (example: Id of npc=50050 , it goes to 50000-50999.xml)

idTemplate="xxx" , In idTemplate put the id of any npc you like ..You may like how grand olympiad manager looks like , so put this ID in there..And then your npc won't look like a bunny.

<npc id="50006" idTemplate="31228" name="Roy the Cat" title="Class Manager">
		<set name="level" val="70"/>
		<set name="radius" val="9"/>
		<set name="height" val="16"/>
		<set name="rHand" val="0"/>
		<set name="lHand" val="0"/>
		<set name="type" val="L2ClassMaster"/>
		<set name="exp" val="0"/>
		<set name="sp" val="10"/>
		<set name="hp" val="2444.46819"/>
		<set name="mp" val="1345.8"/>
		<set name="hpRegen" val="7.5"/>
		<set name="mpRegen" val="2.7"/>
		<set name="pAtk" val="688.86373"/>
		<set name="pDef" val="295.91597"/>
		<set name="mAtk" val="470.40463"/>
		<set name="mDef" val="216.53847"/>
		<set name="crit" val="4"/>
		<set name="atkSpd" val="253"/>
		<set name="str" val="40"/>
		<set name="int" val="21"/>
		<set name="dex" val="30"/>
		<set name="wit" val="20"/>
		<set name="con" val="43"/>
		<set name="men" val="20"/>
		<set name="corpseTime" val="7"/>
		<set name="walkSpd" val="80"/>
		<set name="runSpd" val="120"/>
		<set name="dropHerbGroup" val="0"/>
		<set name="attackRange" val="40"/>
		<ai type="default" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="0" canMove="true" seedable="false"/>
		<skills>
			<skill id="4045" level="1"/>
			<skill id="4416" level="7"/>
		</skills>
	</npc>

*Multisell looks fine to me.

 

So your problem is that u get a critical error when ur mouse is over an item , right?

(also check ur pm)

Edited by protoftw
  • 0
Posted

Here's an example of an npc, make sure to add them on the proper file (example: Id of npc=50050 , it goes to 50000-50999.xml)

idTemplate="xxx" , In idTemplate put the id of any npc you like ..You may like how grand olympiad manager looks like , so put this ID in there..And then your npc won't look like a bunny.

<npc id="50006" idTemplate="31228" name="Roy the Cat" title="Class Manager">
		<set name="level" val="70"/>
		<set name="radius" val="9"/>
		<set name="height" val="16"/>
		<set name="rHand" val="0"/>
		<set name="lHand" val="0"/>
		<set name="type" val="L2ClassMaster"/>
		<set name="exp" val="0"/>
		<set name="sp" val="10"/>
		<set name="hp" val="2444.46819"/>
		<set name="mp" val="1345.8"/>
		<set name="hpRegen" val="7.5"/>
		<set name="mpRegen" val="2.7"/>
		<set name="pAtk" val="688.86373"/>
		<set name="pDef" val="295.91597"/>
		<set name="mAtk" val="470.40463"/>
		<set name="mDef" val="216.53847"/>
		<set name="crit" val="4"/>
		<set name="atkSpd" val="253"/>
		<set name="str" val="40"/>
		<set name="int" val="21"/>
		<set name="dex" val="30"/>
		<set name="wit" val="20"/>
		<set name="con" val="43"/>
		<set name="men" val="20"/>
		<set name="corpseTime" val="7"/>
		<set name="walkSpd" val="80"/>
		<set name="runSpd" val="120"/>
		<set name="dropHerbGroup" val="0"/>
		<set name="attackRange" val="40"/>
		<ai type="default" ssCount="0" ssRate="0" spsCount="0" spsRate="0" aggro="0" canMove="true" seedable="false"/>
		<skills>
			<skill id="4045" level="1"/>
			<skill id="4416" level="7"/>
		</skills>
	</npc>

*Multisell looks fine to me.

 

So your problem is that u get a critical error when ur mouse is over an item , right?

(also check ur pm)

Addin the NPC using "idTemplate="31228"" in the header instead of manually adding it in the client files solved my problems, thank you a lot!

 

I will try with copying the weapons/armors and making them "expirable" tommorow. I will report my findings on this post

  • 0
Posted (edited)

Just take one of the billion L2Merchant and remake the html and the buylist.

 

If you want to create a "new" npc as you already know, c/p html, xml, add buylist or multisell and for client add the new id at npcgrp and npcname

Or as you understood you can use the idTemplate that will use that npc as template.

 

As for your multisell and your customs the ids 9200 till 9208 are already filled up with retail items. Plus the id 5800 etc. belong to dusk/dawn as far as i remember.

 

About the shadow items as i checked at both armorgrp & weapongrp there is a tab 'durabily' next to the icon paths.. As i saw Shadow items (ex. 9035, etc.) got the duration in seconds. Idk further..

 

Edit: There are no further*

Edited by IpotoniC
  • 0
Posted

Thanks for the advice.

The biggest problem i got right now is finding a filledit which will open my weapongrp(it opens the armorgrp). I tried using about 5-6 of them, none of them opens it.

  • 0
Posted

Thanks for the advice.

 

The biggest problem i got right now is finding a filledit which will open my weapongrp(it opens the armorgrp). I tried using about 5-6 of them, none of them opens it.

Here in this post have a good File Editor http://www.maxcheaters.com/topic/160510-tool-pack/ 

  • 0
Posted

Here in this post have a good File Editor http://www.maxcheaters.com/topic/160510-tool-pack/ 

Tried using this one, doesn't work. I also tried editing a different weapongrp(from a different server), i can't open it. Im really out of ideas, the other .dat files open normally

  • 0
Posted

Tried using this one, doesn't work. I also tried editing a different weapongrp(from a different server), i can't open it. Im really out of ideas, the other .dat files open normally

If you can't edit it, maybe its crypted.

  • 0
Posted (edited)

If you can't edit it, maybe its crypted.

Found the right fileedit which opened it without problems.

 

As per the expirable weapons/armors, durability does work, but it makes it a shadow item with a set amound to equips(example:200). Is there any way to make the weapon for a set amount of time in INTERLUDE ?

Like 30 days, which was used on retail servers in more recent chronicles.

Edited by janezt

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


  • Posts

    • Since ur interested on the latest client(s) Your best bet is l2jmobius.  Their free repo is more than enough to get you started. They also offer a subscription of 100$ in order to access the latest sources. A big + is the community there is pretty active and helpful.
    • Hey chatgpt. Make me a website for my private l2jserver called l2karma. Make no mistakes.
    • Server Description L2 Karma is a permanent Interlude 1x server built on L2J with retail-like mechanics and a long-term vision — not a seasonal reset or wipe server. We focus on competitive longevity, fair play, and a community where every player matters. Core Features ✔ True x1 Experience (XP / SP / Adena / Drop / Spoil) ✔ Retail mechanics — no forced progression shortcuts ✔ Single-box only (1 client per player — no multi-boxing advantage) ✔ No Pay-to-Win & strict anti-RMT policy ✔ Already live and active with players progressing ✔ Long-term commitment — 3-year guarantee ✔ Designed for meaningful PvP and community cohesion 📏 Server Rules No Multi-Boxing Advantage — Only one client per account is allowed. No Pay-to-Win Items or Services — VIP runes are optional and do not lock content. No Bots, Scripts, or Automation — Zero tolerance. Suspicious accounts will be banned. No Exploit Abuse — Reporting exploits immediately avoids penalties. No RMT / Real Money Trading — Strict enforcement — economy integrity matters. Fair Play Only — Harassment and racism are not allowed in chat or Discord. Respect Admin Decisions — Official rulings are final to keep the server stable. 📥 How to Join 🔗 Website: https://l2karma.org 🔗 Discord: https://discord.gg/VV9RAfmnth Chronicle: Interlude Rates: x1 (Classic) Box Limit: Single Box 🧠 What Makes Us Different ✔ Permanent World — No resets ever ✔ Designed for players tired of wipe-cycle servers ✔ Community-centric growth — not rinse-and-repeat launches ✔ Competitive but fair environment ✔ Events, structured seasons, and ongoing content support
    • A widespread proxy service, operating through hijacked devices, has been shut down in a cross-industry effort led by Google. The network, known as IPIDEA, functioned by secretly converting millions of personal devices into proxies for malicious actors. The Mechanism of the Scheme The operation distributed hidden code within seemingly legitimate free apps and VPN services. Once installed, this code enrolled the user’s device into a pool of residential IP addresses. These addresses were then sold anonymously, primarily to cybercriminal and state-sponsored groups, to mask the origin of attacks, fraud, and espionage. Key impacts of the network included: Facilitating operations for more than 550 identified threat actors. Exposing unsuspecting device owners to potential legal and security risks by associating their IP addresses with criminal traffic. The Takedown Strategy Google and its partners disrupted the service by: Seizing core operational domains. Using Google Play Protect to detect and remove malicious applications. Coordinating with infrastructure providers to prevent the network from reestablishing itself. The action highlights the necessity of continuous user awareness, developer diligence in code reviews, and proactive industry cooperation to maintain cybersecurity. Front Companies Associated with IPIDEA IPIDEA masked its activities under various brand names, such as: Proxy Brands: 360 Proxy, 922 Proxy, Luna Proxy, IP2World, ABC Proxy. VPN Brands: Door VPN, Radish VPN, Galleon VPN. SDK Brands: PacketSDK, HexSDK (the toolkits used to embed proxy code).   Choosing Ethical Proxy Services Alternatives For lawful purposes like market research, ad verification, or data aggregation, selecting a transparent and consensual provider is essential. Reputable services obtain explicit user permission for their networks and enforce strict compliance measures. Examples of Established Providers: Bright Data: A leading, consent-based residential proxy network. Oxylabs: Provides large-scale proxy solutions for enterprise needs. MoMoProxy: Maintains a large pool of residential IPs for tasks like web scraping.   Only $850/1TB.  https://momoproxy.com   Identifying a Legitimate Provider: A trustworthy service will typically demonstrate: Informed Consent: Networks are built with the clear agreement of participants. Robust Compliance: Proactive systems to prevent abuse and respect website terms. Operational Transparency: Public-facing policies, identifiable corporate structure, and genuine customer support. Conduct thorough due diligence. Opt for providers that are clear about their IP sources and maintain strong anti-abuse policies, ensuring your legitimate activities do not inadvertently support harmful operations.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..