Jump to content

Recommended Posts

Posted

How to make a multisell

 


 

I. What is a multisell.

II. Making a multisell with code explaination.

III. Connecting it with npcs.

IV. Possible Errors and what to avoid.

 


 

I. What is a multisell.

A multisell is simply an xml (Extensible Markup Language) file which contains information about items , prices etc. Making a multisell is very easy and helps you create an easy and quick multisell buylist to add on a GMShop or in a custom npc.The best thing is that you can change the items wanted to buy an item eg. instead of giving adena you can change it to give ancient adena , gold bars and stuff like these.

 

II. Making a multisell with code explaination.

Before you make a multisell you need to have the items id's that you want to add to the multisell , the prices , and a basic knowledge of how xml and html/htm files work.First make a simple text file

23u34v5.jpg

 

How to start

You always start a multisell with the word

<list>

this means that you make a new list a buylist.

142sswm.jpg

 

How to add an item

Of course multisells are associated with items , thats why we make them because they are very flexible to add and manage items.

 

Creating and adding an item is very easy so lets get to the point. After adding the

<list>

word we will make a new item make an item by adding this code

<item id="1">

The number "1" in this code means that it will be the first item added on the list , after that you go to 2 , 3 , 4 , 5 etc.. so that no item has the same id two times cause this will output an error in gameserver.

ok5ow0.jpg

 

Next we need to add the ingredients that the player needs to give in order to get the item.

<ingredient id="57" count="10000"/>

The id of the ingredient item is set to 57 which is adena and the player needs to give 10000 adena as written in count.We can now move move to the production item the item which the player takes by giving 10000 adena or you can add a second or third ingredient using the code above.

5fnjw3.jpg

 

The production item is as I said before the item that the player takes when he gives the ingredient item. So here's some code about it.

<production id="1" count="2"/>

This code means that the player will get two items (see count value) with the id=1 (which i think is a sword , thats why i said before you need to have the id of the ingredients/production items to make a multisell). After you add the production item you can either add another production item or finish this item.

1znxsvd.jpg

 

To finish an item you need to use this code

</item>

After that you can add a second item or move on and finish the list.

2kj7l5.jpg

 

Finishing a multisell

To finish a list you add this code in the end of the list and your done!

</list>

wjuas9.jpg

 

Example Multisell

So here's an example of a multisell with two items.

<list>                                                  <!--- Creates a new list. -->
<item id="1">                                       <!--- New Item which is the 1st item. -->
<ingredient id="57" count="10000"/>         <!--- The item that the player needs to have (in this case 10000 adena). -->
<production id="1" count="1"/>                <!--- The item that the player gets (in this case one sword). -->
</item>                                               <!--- Closes the current item. -->
<item id="2">                                        <!--- New Item which is the 2nd item. -->
<ingredient id="57" count="20000"/>          <!--- The item that the player needs to have (in this case 20000 adena). -->
<production id="1" count="2"/>                 <!--- The item that the player gets (in this case two swords). -->
</item>                                                <!--- Closes the current item. -->
</list>                                                  <!--- Closes the list. -->

e8u22t.jpg

 

Notices and other stuff.

Notice:

<!--- This is a comment line in here you can write a comment related to the item or not related. --->

 

III. Connecting it with npcs.

Connecting a multisell with an npc is really easy , what your gonna need is a new or existing npc (Im not gonna show you how to make a new npc cause this kind of tutorials already exist , but Im gonna show you how to connect it with multisell).

 

How to save the multisell

Assuming that you have your multisell ready in notepad click save as and change the file extension to .xml then select all files and save it with a number like "00093.xml" , this should do.Next step is to copy/move it to Your_server_location/gameserver/data/multisell , after you copy/move it to that directory make sure there are no file conflicts and make sure you remember the number it is very important.

11l0x3p.jpg

dea45c.jpg

 

 

How to connect it with npcs

Assuming that you have your npc ready go to gameserver/data/html and find your npcs html file.Right click in the html file and open it with notepad then add this line somewhere

<a action="bypass -h npc_%objectId%_Multisell Your_Multisells_Number_Here">Buy from multisell</a><br>

Save it and your done , now you have connected the multisell with the npc go login to your server make a //reload or restart and spawn the npc to test it.

 

Example of connecting

Lets say I have transferred the multisell in gameserver/data/multisell and the name of the multisell is 99887700.xml then that is the code I need to add to the npc.

<a action="bypass -h npc_%objectId%_Multisell 99887700">Buy from multisell</a><br>

 

IV. Possible Errors and what to avoid.

If you have errors coming from the gameserver , it is most likely that they are based on a syntax mistake or because of missing tags so make sure to double check the multisells before you save them so that you wont have troubles later.Also avoid using the same item id for more than 1 items this will cause problems and the items on the multisell will not be displayed correctly.

 

 

Updated (3) time(s).

 

Tutorial Created by Stealth , please give credits if you copy my work , thanks.

 

Posted

Really simple but complete guide, great work Stealth, thanks for sharing it ;)

I will also add pictures later to make it better , but thanks for now :)

Posted

+1 Karma for your Job. Keep Up

Thanks for the karma , but I dont actually need it. Anyway thanks again I will keep making nice posts.

Posted

-1 karma for spamming.

Welcome back Stealth, I knew that you wouldn't stop those amazing shares! Keep it up!

 

Thanks , more are coming btw.

Posted

Really simple but complete guide, great work Stealth, thanks for sharing it ;)

yea it eassy but for newbie is to harrd!!

 

on  nice share and thx alot!! keep it up and grattzz for you +1

Posted

yea it eassy but for newbie is to harrd!!

 

on  nice share and thx alot!! keep it up and grattzz for you +1

 

agree, this will help many newbie's it's a simple

but very usefull guide, good job Stealth we are

waiting for new share's :)

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

    • Hello guys, gh0t from gh0tstudio here. This time we are putting to sale this beafitul landing page for your next server. Lineage 2 Server Landing Page Template u can check it here LINEAGE 2 DEMO SITE   Technology Stack - React 18 with TypeScript - Tailwind CSS for styling - Framer Motion for animations - Vite for fast development and builds - Multi-language support (i18n ready) Responsive Design The template is fully responsive and optimized for all screen sizes. Desktop, tablet, and mobile layouts have been carefully crafted to provide the best user experience on any device. The mobile version includes a unique notch-style hero design with custom clip paths. What is Included - Complete landing page source code - Hero section with parallax scroll effect - Server information section with animated cards - Character classes showcase with interactive gallery - Registration form (frontend only, styled and validated) - Donation packages display section - Download section for game client - Sticky navigation with transparency effects - Footer with social links - Multi-language system (Spanish/English ready) - All animations and transitions - Clean, documented code structure - Easy to customize colors and content   What is Not Included - Backend server or API - User registration panel/dashboard - Payment processing system for donations - Database integration - Connection to L2 game server - Online player counter module - Account management system - Hosting or domain   The template provides the complete frontend experience.  Price: $150 USD     Contact For purchase inquiries or questions about the template, please reach out directly.
    • 流量套利 + SMM 面板 — 强大的增长组合. 通过社交信号加强推广活动,提高信任度和转化率,加速扩张。 为套利专员和 SMM 提供的所有工具 — 在一个地方. 有效链接: SMM 面板: 前往 – 推广您的社交媒体账户。 其他服务和产品: 数字商品商店(网站): 前往 商店 Telegram 机器人: 前往 – 通过 Telegram 信使方便访问商店。 虚拟号码服务: 前往 用于购买 Telegram Stars 的 Telegram 机器人: 前往 – 在 Telegram 中快速且优惠地购买 Stars。 SMM 面板: 前往 – 推广您的社交媒体账户。 我们想向您展示当前促销和特别优惠列表,用于购买我们服务的产品和服务: 1. 您可以在首次购买时使用促销代码:SOCNET(15% 折扣) 2. 获取 $1 商店余额或 10–20% 折扣——只需在我们网站注册后按以下模板填写您的用户名:"SEND ME BONUS, MY USERNAME IS..." ——您需要在我们的论坛主题中发布! 3. SMM 面板首次试用可获得 $1:只需在我们的网站(Support)提交主题为 “Get Trial Bonus” 的工单。 4. 我们的 Telegram 频道和 Stars 购买机器人中每周都会赠送 Telegram Stars! 新闻: ➡ Telegram 频道: https://t.me/accsforyou_shop ➡ WhatsApp 频道: https://chat.whatsapp.com/K8rBy500nA73z27PxgaJUw?mode=ems_copy_t ➡ Discord 服务器: https://discord.gg/y9AStFFsrh 联系方式和支持: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.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