Jump to content

Recommended Posts

Posted

Well, I decided to share this little guide, cause I see many people that have problem with their buffers.

The most common is 'You don't meet the criteria...', with this guide you can fix that.

Anyway let's start :

 

As an example, I took a random L2jfree buffer. We are gonna 'adapt' it for our pack, I chose L2Emu.

First, we open the __init__.py of our buffer , which is usually located here, in the folder 9999_NPCBuffer.

 

...\gameserver\data\scripts\custom\9999_NPCBuffer

 

 

We open the init, and we see the first lines. These are the imports, which the buffer uses, so it can be loaded by the gameserver.

 

import sys
from com.l2jfree.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator
from com.l2jfree.gameserver.datatables import SkillTable
from com.l2jfree			       import L2DatabaseFactory
from com.l2jfree.gameserver.model.quest import State
from com.l2jfree.gameserver.model.quest import QuestState
from com.l2jfree.gameserver.model.quest.jython import QuestJython as JQuest

 

 

We want to make them compatible with L2Emu. (or w/e pack you use)

Now, we open our pack, and we go in this path :

 

...\gameserver\data\scripts\custom

 

There we find these default quests (8003_Search,6050_KetraOrcSupport)

I chose them cause they have all the imports that we are gonna need.

Open their __init__.py , see at the top of the file the emu imports :

 

8003_Search

import sys

from com.l2emu.gameserver.model.quest   import State

from com.l2emu.gameserver.model.quest   import QuestState  

from com.l2emu.gameserver.datatables   import NpcTable

from com.l2emu.gameserver.templates.chars   import L2NpcTemplate

from com.l2emu.gameserver.model.actor.instance   import L2PcInstance

from com.l2emu.gameserver.datatables         import SpawnTable

from com.l2emu.gameserver.datatables   import ItemTable

from com.l2emu.gameserver.network.serverpackets   import RadarControl

from com.l2emu                   import L2DatabaseFactory

from com.l2emu.gameserver.model.quest.jython   import QuestJython as JQuest

 

from java.util                           import Iterator

from com.l2emu                                 import Config

 

 

6050_KetraOrcSupport

import sys

from com.l2emu.gameserver.model.quest import State

from com.l2emu.gameserver.model.quest import QuestState

from com.l2emu.gameserver.model.quest.jython import QuestJython as JQuest

from com.l2emu.gameserver.datatables import SkillTable

from com.l2emu.gameserver.network.serverpackets import WareHouseWithdrawalList

from com.l2emu.gameserver.network.serverpackets import ActionFailed

 

I highlighted the needed imports.

 

 

Ok, now we go at our L2jfree buffer __init__.py, we open it , and then we replace the l2jfree imports, with our emu.

(in this case <> means replacing the 1st one with the 2nd one. :P)

 

 

import sys 
from com.l2jfree.gameserver.model.actor.instance import L2PcInstance <> from com.l2emu.gameserver.model.actor.instance      import L2PcInstance
from java.util import Iterator 
from com.l2jfree.gameserver.datatables import SkillTable <> from com.l2emu.gameserver.datatables import SkillTable 
from com.l2jfree import L2DatabaseFactory <> from com.l2emu import L2DatabaseFactory 
from com.l2jfree.gameserver.model.quest import State <> from com.l2emu.gameserver.model.quest import State 
from com.l2jfree.gameserver.model.quest import QuestState <> from com.l2emu.gameserver.model.quest import QuestState
from com.l2jfree.gameserver.model.quest.jython import QuestJython as JQuest <> from com.l2emu.gameserver.model.quest.jython import QuestJython as JQuest 

 

 

Our buffer imports should look now like this one :

 

 

import sys 
from com.l2emu.gameserver.model.actor.instance import L2PcInstance
from java.util import Iterator 
from com.l2emu.gameserver.datatables import SkillTable 
from com.l2emu import L2DatabaseFactory 
from com.l2emu.gameserver.model.quest import State 
from com.l2emu.gameserver.model.quest import QuestState
from com.l2emu.gameserver.model.quest.jython import QuestJython as JQuest

 

 

You are done! Now your buffer is compatible with the pack/project that you use.Simple , wasn't it? ;)

Hope I helped, cause it took me some time to write down these info.

 

p.s : Well, in some cases you can just replace the l2jfree with the l2emu word, but on the other hand, in some projects these imports are quite different. So, with this way you can be sure that you didn't make any mistakes.

p.s (2) : Something I noticed , some emu packs don't support this line, so if you wanna use a buffer in emu, you should remove it. Otherwise, you will be getting an error in your buffer.

 

st.getPlayer().restoreHPMP()

 

  • 10 months later...
Posted

good guide my buffer now work

 

Do not bump old threads, read our rules next time.

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

    • We can help your Telegram group or channel grow fast with real, targeted Telegram members, safely and efficiently.   Our Telegram Member Add service lets you add members to Telegram group or channel from real, active communities — not bots or fakes.   With this Telegram group growth service, you’ll see results within hours, backed by clear reporting and safe automation.   ✅ What We Offer   • Done-for-you Telegram Member Add campaigns (Groups · Channels) • Targeted Telegram members from real, active users • Fast growth — up to 10K members in 24 hours • English-speaking or regional audiences (US · UK · EU) • Fully managed Telegram channel growth service with reports & analytics   💡 Why Choose Us   We don’t use spam or fake accounts. Our process safely adds members to your Telegram group or channel through verified multi-account setups, proxy rotation, and opt-out compliance. This ensures lasting growth and minimizes churn. Every campaign is managed by experts using tested Telegram infrastructure and growth systems. We also recommend combining Member Add with Telegram Mass DM for better engagement and retention after join.   🧩 Works Best For   • Businesses or communities launching new Telegram channels • Crypto, SaaS, and marketing projects needing visibility • Influencers and agencies growing multiple Telegram groups • Anyone seeking a reliable Telegram group growth service with real members 📩 To Get More Information   Telegram : @TeleLoopPulse   Website : https://telegramgrowthstudio.com/telegram-member-add.html
    • well,its SharedCreatureData.h problem.   /* 0398 */ //WCHAR m_sResurrectSpellerName[25];   this variable will cause L2server.exe crash...  
    • Custom High Five server L2insolence will open 2025-10-17 21:00 GMT+2 ! ! ! Web site: http://www.l2insolence.eu All info updates on Discord: https://discord.gg/duMjnj3y9A Last wipe was more then 1 year ago. We have custom skill, farm zones, materials for items to buy. Custom wepons, armor, jewels and more. All items in game have own stats. With custom looks. Glowing etc. Rates XP, SP: 25x Spoil and Drop: 10x Adena: 20x Server Hard Farm Enchantment Safe enchant Weapon: +20099 Safe enchant Armor: +20099 Max enchant Weapon: +20099 Max enchant Armor: +20099 Normal scrolls: 100% Blessed scrolls: 100% You can use scrolls or item enchant NPC to make +++ abd life beter. NPC Buffer There's an NPC buffer in all of our main towns: Aden, Giran and Goddard. It supplies Prophet Buffs, Songs and Dances for a small fee. Include all buff. We have custom self buffs learned with npc with custom stats. Global Gatekeeper GM Shop with normal items and custom ones, vote NPC, Event NPC, item upgrader NPC. Raid Bosses, every zone have its own boss and drops for rare mats. Olympiad The olympiad is ongoing every two weeks. Meaning if you become a hero you will have your hero status for two weeks. And hero have own custom stats on items.
  • 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