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 :
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 :)
Childhood - the most magical and carefree time
Bright memories filled with vivid colors, where we could be anyone and go anywhere.
Everyone had their own playground, a tight-knit group of kids who knew each other inside out.
All free time was spent together - no tablets, no phones, just football, climbing on bars, and collecting bottle caps, badges, stamps, and wrappers.
Thinking back brings a smile to your face.
And everyone remembers that moment: sitting in the yard, waiting for a friend. He said, “I’ll be out in a minute.”
At first, you wait patiently… then frustration creeps in — why isn’t he out yet?
Minutes stretch endlessly, and every 30 seconds you check the clock, hoping he’ll appear.
Back then, waiting was part of the fun.
Today, waiting for a verification code from a service isn’t so enjoyable seconds feel like hours, and your fingers get tired of hitting “refresh.”
With VibeSMS, that feeling disappears: codes arrive instantly, with no unnecessary waiting or annoying pauses.
🌐 Website: https://vibe-sms.net/
📲 Telegram: https://t.me/vibe_sms
I add my external ip at the ip at the dbo.server of l2c4_lin2db and the ports 7777 and 2106 are opened and i checked that they are opened but still other players are unable to join, what should i change to make it work?
Hello, dear friends, we are the GAMEMONEY in-game currency store. We offer adena, donation coins, and items from all top projects. Please contact us with any questions.
DISCORD - GODDARDSHOP
Question
janezt
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 :
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now