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

    • I’m polishing my throne chronicles, and now my bots can: - search for suitable zones for leveling on their own. - communicate in any chats. - join groups. - use behavior logic appropriate to their class and race. - remember decisions and events, and based on that, improve their overall behavior logic in the world. - each bot knows everything about its character, from skills to gear. This isn’t a complete list — there are many more little details they possess. Overall, I can give you some advice on what to do and how to do it if needed.
    • About the Festival Server Website: https://samurai-festival.ru/ Forum: https://f.samurai-festival.ru/ Events: https://f.samurai-festival.ru/events/ 🔑 No registration required — your account is created automatically. Enter your credentials in the launcher: if your account does not exist yet, it will be created on your first entry to the game. Welcome to Festival — a server built for its community and for players who enjoy a calm, fair and predictable game. We run on x1 rates: progression is earned in-game, not purchased, and the world develops at its own pace. It's not about going the fastest — it's about playing for fun, together. 🗓 Weekend Festival Buff Every weekend the server treats its players: the global buff «Weekend Festival» is applied automatically to everyone — bonus character stats and increased drops. No actions required — just log in on the weekend and play. Details are in a dedicated topic in this section. 🎁 Bonus System The server runs a bonus system for both veterans and newcomers: promo codes appear on the forum from time to time and come with extra in-game rewards. Keep an eye on the news — rewards go to those who watch for them. 🏆 Seasonal Events — Calendar All seasonal events are gathered in the forum's calendar: each one has its own card with dates, duration, description and rewards. The view is convenient and dated — you can see at a glance what is coming and when it starts. New seasons are announced in the same place — the calendar is always up to date. 💰 No Items for Real Money — Ever Power and content are not for sale on Festival. No items, no gear, no boosts for real money. What you can acquire: A premium account — comfort and convenience, not a balance-breaking advantage; The in-game shop — stocked with what you earn in the game itself, i.e. in-game drops. All the serious boosts come from the game: events, promo codes and the weekend festival — from what you do, not what you pay for. 🛠 A Living Team The admin team is online: player reports and bugs are handled fast, and the balance is tuned constantly. The server grows with the community — your opinions on the forum and in chat actually shape the project. 🪙 Einhasad Coins: Where They Come From In-Game The server's event currency — Einhasad's Golden Coin: events and event rewards are paid for with it. And the main source of coins is not server support, but the game itself: the coin drops globally from every mob of level 85 and above — it is not tied to specific monsters and is independent of their regular drop tables. 📊 Drop chance Base chance — 2% per every mob of 85+ level killed; With a premium account — 5% — a 2.5× higher chance: one of the perks of premium. The more high-level content you farm, the more coins you save up — honestly, and without RMT. Want it faster? Take premium (more about it in the «Premium Account» post in this topic). 🐞 Found a bug? Let us know In the "Report" section we wait for bugs and shortcomings you discover: the more detailed the description, the faster we can fix it. Every confirmed and fixed issue reported by you will be rewarded by the administration — your attention makes the server better. We're happy to have you! Questions — in the right forum section; and if you want to get deeper into the community, just write to us, we read everything.
    • Nice work on the Monster Race event. The 15-minute timer and item bets make it much better, and saving winner data is a good touch. One thing: your download link is broken, so you might want to re-upload it On a side note, I've been using https://blightybets.com to find decent non-UK casinos, and it's been handy for quick comparisons
    • 🌐 Seamless Global Setup: Enjoy uninterrupted Google AI One workspace features and 5TB cloud storage today.     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
  • 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..