Jump to content

Question

Posted

Hello everyone, im a new user on this community. 

Im a newbie but learning more and more about jass and code.

Im already got a live server and my problem is with the NPC achievement system. My source got the achievement system cause every time i complete an achievement a message system is shown. But no NPC.. In server files /data there is a file achievement.xml with requierements for achievements.  i know how to make a npc who reads html and make a multisell, but i dont know how to read xml and make that file to work with a npc.

I tried to call that achievement.xml like a multisell shop but it doesnt work-.

can anybody help me? 

9 answers to this question

Recommended Posts

  • 0
Posted
3 hours ago, expll0 said:

check database - custom_npc and search for achievement npc

image.png.84e4e26280403293da080ce481905eb2.png

2 hours ago, Zake said:

Pack/client?

Thanks for the quick reply guys, and sorry for bother with this dumb questions.

Its l2jOrion source, rev17+rev21. there is a ini in configs to enable achievement system, that is the wierd thing.

 

this is the achievement.xml in gamesever/data

 

but i dont know how to hook it to a npc to work ingame since its not an html


image.thumb.png.dc565a9783a4f601b01abc0a54943d9e.png

  • 0
Posted

Can you post a pic with the contents of model/actor/instance in your source? There's supposed to be an Achievement npc instance in there if it was meant to work with an npc and not CB or some command.

 

Orion still has npcs in sql lol.

  • 0
Posted (edited)
1 hour ago, An4rchy said:

Can you post a pic with the contents of model/actor/instance in your source? There's supposed to be an Achievement npc instance in there if it was meant to work with an npc and not CB or some command.

 

Orion still has npcs in sql lol.

 

* L2jOrion Project - www.l2jorion.com 
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package l2jorion.game.model.actor.instance;

import java.util.List;
import java.util.StringTokenizer;

import l2jorion.Config;
import l2jorion.game.datatables.sql.ItemTable;
import l2jorion.game.enums.AchType;
import l2jorion.game.managers.AchievementManager;
import l2jorion.game.model.AchievementHolder;
import l2jorion.game.network.serverpackets.NpcHtmlMessage;
import l2jorion.game.templates.L2Item;
import l2jorion.game.templates.L2NpcTemplate;
import l2jorion.game.util.Util;

public final class L2AchievementInstance extends L2FolkInstance
{
    private final static int PAGE_LIMIT = Config.PAGE_LIMIT;
    
    public L2AchievementInstance(int objectId, L2NpcTemplate template)
    {
        super(objectId, template);
    }
    
    @Override
    public void onBypassFeedback(L2PcInstance player, String command)
    {
        final StringTokenizer st = new StringTokenizer(command, " ");
        String currentCommand = st.nextToken();
        
        if (currentCommand.startsWith("Chat"))
        {
            int val = Integer.parseInt(st.nextToken());
            showChatWindow(player, val);
        }
    }
    
    @Override
    public void showChatWindow(L2PcInstance player, int val)
    {
        final NpcHtmlMessage html = new NpcHtmlMessage(0);
        html.setFile(getHtmlPath(player, getNpcId(), 0));
        html.replace("%objectId%", getObjectId());
        html.replace("%list%", getList(player, val));
        player.sendPacket(html);
    }
    
    public static int countPagesNumber(int objectsSize, int pageSize)
    {
        return objectsSize / pageSize + (objectsSize % pageSize == 0 ? 0 : 1);
    }
    
    private String getList(L2PcInstance player, int page)
    {
        // Retrieve the entire types list based on group type.
        List<AchType> list = AchievementManager.getInstance().getTypeList(player);
        
        // Calculate page number.
        final int max = countPagesNumber(list.size(), PAGE_LIMIT);
        page = page > max ? max : page < 1 ? 1 : page;
        
        // Cut skills list up to page number.
        list = list.subList((page - 1) * PAGE_LIMIT, Math.min(page * PAGE_LIMIT, list.size()));
        
        final StringBuilder sb = new StringBuilder();
        
        int row = 0;
        for (AchType type : list)
        {
            boolean exist = player.getAchievement().getData().containsKey(type);
            boolean completed = false;
            int getLevel = exist ? player.getAchievement().getData().get(type).getId() - 1 : 0;
            int getCount = exist ? player.getAchievement().getData().get(type).getValue() : 0;
            int allStages = AchievementManager.getInstance().getStages(type).size();
            
            if (AchievementManager.getInstance().getStages(type).size() < (getLevel + 1))
            {
                getLevel = AchievementManager.getInstance().getStages(type).size() - 1;
                completed = true;
            }
            
            AchievementHolder ach = AchievementManager.getInstance().getAchievements().get(type).get(getLevel);
            sb.append("<img src=l2ui.squareblack width=296 height=1><table cellspacing=1 cellpadding=1 width=296 bgcolor=000000><tr>");
            sb.append("<td width=40 height=40 align=center><button width=32 height=32 back=" + ach.getIcon() + " fore=" + ach.getIcon() + "></td>");
            sb.append("<td width=256>" + ach.getName().toUpperCase() + " " + (completed ? "<font color=00FF00>Completed</font>" : "") + "<br1>");
            sb.append("Stage:<font color=LEVEL>" + ach.getLevel() + "/" + allStages + "</font> Reward:<font color=LEVEL>" + Util.formatAdena(ach.getRewardCount()) + "</font> " + getItemNameById(ach.getRewardId()) + "<br1>");
            sb.append("<font color=B09878>" + (completed ? "[" + ach.getName() + " achievement completed]" : ach.getDescription().replaceAll("%required%", getCount + "/" + ach.getRequired())) + "</font></td></tr></table>");
            sb.append("<table cellspacing=0 cellpadding=0 width=300 height=15><tr><td>" + generateBar(300, 15, completed ? ach.getRequired() : getCount, ach.getRequired()) + "</td></tr></table>");
            sb.append("<img src=l2ui.squareblack width=296 height=1><img height=3>");
            row++;
        }
        
        for (int i = PAGE_LIMIT; i > row; i--)
        {
            sb.append("<img height=47>");
        }
        
        // Build page footer.
        sb.append("<table width=300><tr>");
        sb.append("<td align=left width=100>" + (page > 1 ? "<button value=\"< PREV\" action=\"bypass npc_" + getObjectId() + "_Chat " + (page - 1) + "\" width=65 height=19 back=L2UI_ch3.smallbutton2_over fore=L2UI_ch3.smallbutton2>" : "") + "</td>");
        sb.append("<td align=center width=100>Page " + page + "/" + max + "</td>");
        sb.append("<td align=right width=100>" + (page < max ? "<button value=\"NEXT >\" action=\"bypass npc_" + getObjectId() + "_Chat " + (page + 1) + "\" width=65 height=19 back=L2UI_ch3.smallbutton2_over fore=L2UI_ch3.smallbutton2>" : "") + "</td>");
        sb.append("</tr></table>");
        
        return sb.toString();
    }
    
    public String generateBar(int width, int height, int current, int max)
    {
        final StringBuilder sb = new StringBuilder();
        current = current > max ? max : current;
        int bar = Math.max((width * (current * 100 / max) / 100), 0);
        sb.append("<table width=" + width + " cellspacing=0 cellpadding=0><tr><td width=" + bar + " align=center><img src=L2UI_CH3.BR_BAR1_CP width=" + bar + " height=" + height + "/></td>");
        sb.append("<td width=" + (width - bar) + " align=center><img src=L2UI_CH3.BR_BAR1_HP1 width=" + (width - bar) + " height=" + height + "/></td></tr></table>");
        return sb.toString();
    }
    
    @Override
    public String getHtmlPath(L2PcInstance player, final int npcId, final int val)
    {
        return "data/html/achievements/" + npcId + "" + (val == 0 ? "" : "-" + val) + ".htm";
    }
    
    public String getItemNameById(int itemId)
    {
        L2Item item = ItemTable.getInstance().getTemplate(itemId);
        
        String itemName = "NoName";
        
        if (itemId != 0)
        {
            itemName = item.getName();
        }
        
        return itemName;
    }
}
 

30 minutes ago, Amenadiel said:

.achiv command? On xml might have the command

i tried /achievement .achievement .achiv /achiv .achievements /achievements

nothing. 

its funny cause i receive the system msg ingame when i unlock an achievment like adquire noblesse and so

This is the achievementManager page

Quote

package l2jorion.game.managers;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

import l2jorion.Config;
import l2jorion.game.enums.AchType;
import l2jorion.game.model.AchievementHolder;
import l2jorion.game.model.actor.instance.L2PcInstance;
import l2jorion.game.templates.StatsSet;
import l2jorion.logger.Logger;
import l2jorion.logger.LoggerFactory;
import l2jorion.util.xml.IXmlReader;

public class AchievementManager implements IXmlReader
{
    private static Logger LOG = LoggerFactory.getLogger(AchievementManager.class);
    
    private final Map<AchType, List<AchievementHolder>> _achievements = new LinkedHashMap<>();
    
    public AchievementManager()
    {
        load();
    }
    
    @Override
    public void load()
    {
        parseDatapackFile("./data/xml/achievements.xml");
        LOG.info("Loaded {} of {} achievements data.", _achievements.size(), AchType.values().length);
    }
    
    public void reload()
    {
        _achievements.clear();
        load();
    }
    
    @Override
    public void parseDocument(Document doc)
    {
        for (Node a = doc.getFirstChild(); a != null; a = a.getNextSibling())
        {
            if ("list".equalsIgnoreCase(a.getNodeName()))
            {
                for (Node b = a.getFirstChild(); b != null; b = b.getNextSibling())
                {
                    if ("achievement".equalsIgnoreCase(b.getNodeName()))
                    {
                        final NamedNodeMap attrs = b.getAttributes();
                        
                        final AchType type = AchType.valueOf(parseString(attrs, "type"));
                        final StatsSet set = new StatsSet();
                        set.set("icon", parseString(attrs, "icon"));
                        set.set("name", parseString(attrs, "name"));
                        set.set("desc", parseString(attrs, "desc"));
                        
                        final List<AchievementHolder> levels = new ArrayList<>();
                        
                        for (Node c = b.getFirstChild(); c != null; c = c.getNextSibling())
                        {
                            if ("stage".equalsIgnoreCase(c.getNodeName()))
                            {
                                set.add(parseAttributes(c));
                                levels.add(new AchievementHolder(set));
                            }
                        }
                        
                        _achievements.put(type, levels);
                    }
                }
            }
        }
        
    }
    
    public List<AchievementHolder> getStages(AchType type)
    {
        return _achievements.get(type);
    }
    
    public AchievementHolder getAchievement(AchType type, int level)
    {
        return _achievements.get(type).stream().filter(x -> x.getLevel() == level).findFirst().orElse(null);
    }
    
    public Map<AchType, List<AchievementHolder>> getAchievements()
    {
        return _achievements;
    }
    
    public List<AchType> getTypeList(L2PcInstance player)
    {
        List<AchType> list = new ArrayList<>();
        for (AchType type : _achievements.keySet())
        {
            if (type == AchType.SPOIL && !player.getSkills().containsKey(254))
            {
                continue;
            }
            
            if (type == AchType.LEADER && player.getClan() != null && !player.isClanLeader())
            {
                continue;
            }
            
            if ((type == AchType.CLAN_LEVEL_UP || type == AchType.CASTLE) && !player.isClanLeader())
            {
                continue;
            }
            
            if (type == AchType.ACADEMY && player.getClassId().level() > 1 && player.getAchievement().getLevel(AchType.ACADEMY) != 2)
            {
                continue;
            }
            
            if (type == AchType.MONSTER_CHAMPION && Config.L2JMOD_CHAMPION_FREQUENCY == 0)
            {
                continue;
            }
            
            list.add(type);
        }
        return list;
    }
    
    public static AchievementManager getInstance()
    {
        return SingletonHolder.INSTANCE;
    }
    
    private static class SingletonHolder
    {
        protected static final AchievementManager INSTANCE = new AchievementManager();
    }
}

 

package l2jorion.game.managers;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;

import l2jorion.Config;
import l2jorion.game.enums.AchType;
import l2jorion.game.model.AchievementHolder;
import l2jorion.game.model.actor.instance.L2PcInstance;
import l2jorion.game.templates.StatsSet;
import l2jorion.logger.Logger;
import l2jorion.logger.LoggerFactory;
import l2jorion.util.xml.IXmlReader;

public class AchievementManager implements IXmlReader
{
    private static Logger LOG = LoggerFactory.getLogger(AchievementManager.class);
    
    private final Map<AchType, List<AchievementHolder>> _achievements = new LinkedHashMap<>();
    
    public AchievementManager()
    {
        load();
    }
    
    @Override
    public void load()
    {
        parseDatapackFile("./data/xml/achievements.xml");
        LOG.info("Loaded {} of {} achievements data.", _achievements.size(), AchType.values().length);
    }
    
    public void reload()
    {
        _achievements.clear();
        load();
    }
    
    @Override
    public void parseDocument(Document doc)
    {
        for (Node a = doc.getFirstChild(); a != null; a = a.getNextSibling())
        {
            if ("list".equalsIgnoreCase(a.getNodeName()))
            {
                for (Node b = a.getFirstChild(); b != null; b = b.getNextSibling())
                {
                    if ("achievement".equalsIgnoreCase(b.getNodeName()))
                    {
                        final NamedNodeMap attrs = b.getAttributes();
                        
                        final AchType type = AchType.valueOf(parseString(attrs, "type"));
                        final StatsSet set = new StatsSet();
                        set.set("icon", parseString(attrs, "icon"));
                        set.set("name", parseString(attrs, "name"));
                        set.set("desc", parseString(attrs, "desc"));
                        
                        final List<AchievementHolder> levels = new ArrayList<>();
                        
                        for (Node c = b.getFirstChild(); c != null; c = c.getNextSibling())
                        {
                            if ("stage".equalsIgnoreCase(c.getNodeName()))
                            {
                                set.add(parseAttributes(c));
                                levels.add(new AchievementHolder(set));
                            }
                        }
                        
                        _achievements.put(type, levels);
                    }
                }
            }
        }
        
    }
    
    public List<AchievementHolder> getStages(AchType type)
    {
        return _achievements.get(type);
    }
    
    public AchievementHolder getAchievement(AchType type, int level)
    {
        return _achievements.get(type).stream().filter(x -> x.getLevel() == level).findFirst().orElse(null);
    }
    
    public Map<AchType, List<AchievementHolder>> getAchievements()
    {
        return _achievements;
    }
    
    public List<AchType> getTypeList(L2PcInstance player)
    {
        List<AchType> list = new ArrayList<>();
        for (AchType type : _achievements.keySet())
        {
            if (type == AchType.SPOIL && !player.getSkills().containsKey(254))
            {
                continue;
            }
            
            if (type == AchType.LEADER && player.getClan() != null && !player.isClanLeader())
            {
                continue;
            }
            
            if ((type == AchType.CLAN_LEVEL_UP || type == AchType.CASTLE) && !player.isClanLeader())
            {
                continue;
            }
            
            if (type == AchType.ACADEMY && player.getClassId().level() > 1 && player.getAchievement().getLevel(AchType.ACADEMY) != 2)
            {
                continue;
            }
            
            if (type == AchType.MONSTER_CHAMPION && Config.L2JMOD_CHAMPION_FREQUENCY == 0)
            {
                continue;
            }
            
            list.add(type);
        }
        return list;
    }
    
    public static AchievementManager getInstance()
    {
        return SingletonHolder.INSTANCE;
    }
    
    private static class SingletonHolder
    {
        protected static final AchievementManager INSTANCE = new AchievementManager();
    }
}

 

This is Achievement Instance page:

 

* L2jOrion Project - www.l2jorion.com 
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 *
 * http://www.gnu.org/copyleft/gpl.html
 */
package l2jorion.game.model.actor.instance;

import java.util.List;
import java.util.StringTokenizer;

import l2jorion.Config;
import l2jorion.game.datatables.sql.ItemTable;
import l2jorion.game.enums.AchType;
import l2jorion.game.managers.AchievementManager;
import l2jorion.game.model.AchievementHolder;
import l2jorion.game.network.serverpackets.NpcHtmlMessage;
import l2jorion.game.templates.L2Item;
import l2jorion.game.templates.L2NpcTemplate;
import l2jorion.game.util.Util;

public final class L2AchievementInstance extends L2FolkInstance
{
    private final static int PAGE_LIMIT = Config.PAGE_LIMIT;
    
    public L2AchievementInstance(int objectId, L2NpcTemplate template)
    {
        super(objectId, template);
    }
    
    @Override
    public void onBypassFeedback(L2PcInstance player, String command)
    {
        final StringTokenizer st = new StringTokenizer(command, " ");
        String currentCommand = st.nextToken();
        
        if (currentCommand.startsWith("Chat"))
        {
            int val = Integer.parseInt(st.nextToken());
            showChatWindow(player, val);
        }
    }
    
    @Override
    public void showChatWindow(L2PcInstance player, int val)
    {
        final NpcHtmlMessage html = new NpcHtmlMessage(0);
        html.setFile(getHtmlPath(player, getNpcId(), 0));
        html.replace("%objectId%", getObjectId());
        html.replace("%list%", getList(player, val));
        player.sendPacket(html);
    }
    
    public static int countPagesNumber(int objectsSize, int pageSize)
    {
        return objectsSize / pageSize + (objectsSize % pageSize == 0 ? 0 : 1);
    }
    
    private String getList(L2PcInstance player, int page)
    {
        // Retrieve the entire types list based on group type.
        List<AchType> list = AchievementManager.getInstance().getTypeList(player);
        
        // Calculate page number.
        final int max = countPagesNumber(list.size(), PAGE_LIMIT);
        page = page > max ? max : page < 1 ? 1 : page;
        
        // Cut skills list up to page number.
        list = list.subList((page - 1) * PAGE_LIMIT, Math.min(page * PAGE_LIMIT, list.size()));
        
        final StringBuilder sb = new StringBuilder();
        
        int row = 0;
        for (AchType type : list)
        {
            boolean exist = player.getAchievement().getData().containsKey(type);
            boolean completed = false;
            int getLevel = exist ? player.getAchievement().getData().get(type).getId() - 1 : 0;
            int getCount = exist ? player.getAchievement().getData().get(type).getValue() : 0;
            int allStages = AchievementManager.getInstance().getStages(type).size();
            
            if (AchievementManager.getInstance().getStages(type).size() < (getLevel + 1))
            {
                getLevel = AchievementManager.getInstance().getStages(type).size() - 1;
                completed = true;
            }
            
            AchievementHolder ach = AchievementManager.getInstance().getAchievements().get(type).get(getLevel);
            sb.append("<img src=l2ui.squareblack width=296 height=1><table cellspacing=1 cellpadding=1 width=296 bgcolor=000000><tr>");
            sb.append("<td width=40 height=40 align=center><button width=32 height=32 back=" + ach.getIcon() + " fore=" + ach.getIcon() + "></td>");
            sb.append("<td width=256>" + ach.getName().toUpperCase() + " " + (completed ? "<font color=00FF00>Completed</font>" : "") + "<br1>");
            sb.append("Stage:<font color=LEVEL>" + ach.getLevel() + "/" + allStages + "</font> Reward:<font color=LEVEL>" + Util.formatAdena(ach.getRewardCount()) + "</font> " + getItemNameById(ach.getRewardId()) + "<br1>");
            sb.append("<font color=B09878>" + (completed ? "[" + ach.getName() + " achievement completed]" : ach.getDescription().replaceAll("%required%", getCount + "/" + ach.getRequired())) + "</font></td></tr></table>");
            sb.append("<table cellspacing=0 cellpadding=0 width=300 height=15><tr><td>" + generateBar(300, 15, completed ? ach.getRequired() : getCount, ach.getRequired()) + "</td></tr></table>");
            sb.append("<img src=l2ui.squareblack width=296 height=1><img height=3>");
            row++;
        }
        
        for (int i = PAGE_LIMIT; i > row; i--)
        {
            sb.append("<img height=47>");
        }
        
        // Build page footer.
        sb.append("<table width=300><tr>");
        sb.append("<td align=left width=100>" + (page > 1 ? "<button value=\"< PREV\" action=\"bypass npc_" + getObjectId() + "_Chat " + (page - 1) + "\" width=65 height=19 back=L2UI_ch3.smallbutton2_over fore=L2UI_ch3.smallbutton2>" : "") + "</td>");
        sb.append("<td align=center width=100>Page " + page + "/" + max + "</td>");
        sb.append("<td align=right width=100>" + (page < max ? "<button value=\"NEXT >\" action=\"bypass npc_" + getObjectId() + "_Chat " + (page + 1) + "\" width=65 height=19 back=L2UI_ch3.smallbutton2_over fore=L2UI_ch3.smallbutton2>" : "") + "</td>");
        sb.append("</tr></table>");
        
        return sb.toString();
    }
    
    public String generateBar(int width, int height, int current, int max)
    {
        final StringBuilder sb = new StringBuilder();
        current = current > max ? max : current;
        int bar = Math.max((width * (current * 100 / max) / 100), 0);
        sb.append("<table width=" + width + " cellspacing=0 cellpadding=0><tr><td width=" + bar + " align=center><img src=L2UI_CH3.BR_BAR1_CP width=" + bar + " height=" + height + "/></td>");
        sb.append("<td width=" + (width - bar) + " align=center><img src=L2UI_CH3.BR_BAR1_HP1 width=" + (width - bar) + " height=" + height + "/></td></tr></table>");
        return sb.toString();
    }
    
    @Override
    public String getHtmlPath(L2PcInstance player, final int npcId, final int val)
    {
        return "data/html/achievements/" + npcId + "" + (val == 0 ? "" : "-" + val) + ".htm";
    }
    
    public String getItemNameById(int itemId)
    {
        L2Item item = ItemTable.getInstance().getTemplate(itemId);
        
        String itemName = "NoName";
        
        if (itemId != 0)
        {
            itemName = item.getName();
        }
        
        return itemName;
    }
}
 

 

 

Edited by Paly
  • 0
Posted (edited)

Bro, use pastebin.com for large chunks of code. It's unreadable like that.

 

You need to make a new npc with type L2Achievement and add its html in data/html/achievements. If there is already a html there, leave it as it is (only rename with your npc id).

 

If there isn't make sure to include %list% in the html so the actual achievement list can appear.

 

I just had a look at the code, it should work fine unless I missed something. If you find any problems just reply.

 

 

P.S. Kindly suggestion, don't use orion. If you don't have a developer and need ready features, use lucera. Otherwise pay a developer and use aCis.

Edited by An4rchy
  • 0
Posted
1 hour ago, An4rchy said:

Bro, use pastebin.com for large chunks of code. It's unreadable like that.

 

You need to make a new npc with type L2Achievement and add its html in data/html/achievements. If there is already a html there, leave it as it is (only rename with your npc id).

 

If there isn't make sure to include %list% in the html so the actual achievement list can appear.

 

I just had a look at the code, it should work fine unless I missed something. If you find any problems just reply.

 

 

P.S. Kindly suggestion, don't use orion. If you don't have a developer and need ready features, use lucera. Otherwise pay a developer and use aCis.

Hello, you save me. Many many thanks! it works perfectly. I was using L2AchievementManager and the system dont found the npc!  So many thanks to all of you.

I will try lucera. Im on Orion cause it works fine for now and got all the mods i wanted: bang points, offline trade/craft, no core bugs, and now achievements. 

Sorry for the bad reply without <code>

 

I want to ask a little things that maybe are very easy for u guys.

 

How can i create a new item? i need to add it to handlers? i want no make a new sp scroll, that gives exp no sp. i can imagine is not so simple like create a new npc id in custom npc.

 

I follow this steps, create a new code in etcitems. then edit the etcitems in system, and i think i need to add the ability item in source?

  • 0
Posted

You need to make a new ItemHandler and in there add player.addExpAndSp or whatever similar method orion uses. Then, you need to create a new item (in xml or sql, idk what orion uses) and specify the handler you created (if it's xml smth like <set name="handler" val="YourHandlerName"/>0).

 

Also, having a pack that has 'no core bugs' like you said does not mean everything will be OK when you open  a server. You will probably end up with 500 errors/missing things/not working things you had no idea about and 0 clue how to fix them. You cannot open a server if you don't know what you're doing, avoid it. Pay a developer to do it for you, or start learning.

 

Even if you use lucera, which is a pack used by numerous online servers (L2Unity, L2Dream namely and 99% of russian servers) you will still have errors and problems. But as long as you don't leech the pack and buy it, you will have support by experienced developers (a thing that I cannot say for orion unfortunately).

 

Long story short if you don't pay or spend numerous hours learning, you'll fail. But gl.

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

    • Automatic Streamer Rewards System (Twitch / Kick / TikTok) Hey everyone, I’ve developed a Streamer Rewards system for Lineage 2 servers that automatically rewards players who stream the server. The system works fully automatic: Detects if the streamer is currently live Checks if the stream title contains the server name If everything matches, the system sends a custom reward coin to the streamer’s character Rewards are given every 30 minutes while streaming Supported platforms Twitch Kick TikTok Live Configurable options Reward Item ID Reward interval time Server name keyword detection Character name linked to the streamer This makes it easy to encourage players to promote the server without manual work from admins. Example flow: Player goes live on Twitch/Kick/TikTok Stream title includes the server name System detects the stream automatically Every 30 minutes the player receives a reward coin in-game Setup I can also help set up and integrate the system with your server. Works with custom coin rewards Can be configured for different intervals Additional help with installation and configuration available If you're interested or want more details, feel free to send me a PM. I also have a ticket ping system, if new ticket created on the website you can make it send you a ping on discord server for selected roles (support and stuff) but this one is basic and most likely not needed, my discord: zujarka
    • General Trackers :   IPTorrents invite IPTorrents account 1 tb TorrentLeech invite Torrentleech account 1 tb buffer  InTheShaDow ( ITS ) account Acid-lounge invite Torrentday invite Crnaberza account Abn.Lol account Limit-of-eden account Norbits account Xspeeds account Xspeeds invite Bemaniso invite Wigornot account Bithumen invite Filelist account Funfile invite AvistaZ invite Potuk.net invite ResurrectThe.Net invite GrabThe.Info invite Greek-Team invite LinkoManija invite Fano.in account tracker.czech-server.com Speed.cd invite Arab-torrents.net account Arabscene.me account Scenetime account 4thd.xyz invite Btarg.com.ar account Dedbit invite Estone.cc account Speedapp invite Finvip invite Fluxzone account GigaTorrents account Gimmepeers account Haidan.video invite Mojblink account Mycarpathians invite Newinsane.info account Oscarworld.xyz account Peers.FM invite Pt.msg.vg account Ransackedcrew account Redemption invite Scene-rush account Seedfile.io invite Teracod invite Torrent.ai account Torrentmasters invite Ttsweb invite X-files invite X-ite invite Ncore account TorrentHR account Rptorrents account BwTorrents account Superbits invite Krazyzone account Immortalseed account Tntracker invite Pt.eastgame.org account Bitturk account Rstorrent account Tracker.btnext invite Torrent-turk.de account BeiTai.PT account Pt.keepfrds account 52pt.site account Pthome account Torrentseeds account Aystorrent account Blues-brothers.biz invite Divteam account Thesceneplace invite CinemaMovies.pl account Brasiltracker account Patiodebutacas account Newheaven.nl account  Swarmazon.club invite Bc-reloaded account Crazyspirits account Silentground invite Omg.wtftrackr invite Milkie.cc invite Breathetheword invite Madsrevolution account Chilebt account Yubraca account Uniongang.tv account Frboard account Exvagos account Diablotorrent account Microbit account Carp-hunter.hu account Majomparade.eu account Theshinning.me account Youiv.info account Dragonworld-reloaded account Sharewood.tv account Partis.si account Digitalcore.club invite Fuzer.me account R3vuk.wtf invite Ztracker account 1 tb buffer 3changtrai account Best-core.info account Bitsite.us account Eliteunitedcrew invite Exitorrent.org account Tophos invite Torrent.lt account Sktorrent.eu account Oshen account Pirata.digital account Esharenet account Ohmenarikgi.la Pirate-share account Immortuos account Kiesbits account Cliente.amigos-share.club account Broadcity invite Ilovetorzz account Torrentbytes account Polishsource account Portugas account Shareisland account ArabaFenice account Hudbt.hust.edu.cn account Audiences account Nanyangpt account Pt.sjtu.edu.cn account Pt.zhixing.bjtu.edu.cn account Byr.pt invite Ptfiles invite Red-bits account Pt.hdpost.top account Irrenhaus.dyndns.dk (NewPropaganda) account Mnvv2.info (MaxNewVision V2) account 1ptba.com account Spidertk.top account Film-paleis account Generation-free account Aftershock-tracker account Twilightsdreams account Back-ups.me invite Sor-next.tk ( Spirit Of Revolution ) account Tfa.tf ( The Falling Angels ) account Hdmayi account S-f-p.dyndns.dk ( Share Friends Projekt ) account Unlimitz.biz account Pttime account St-tracker.eu account New-retro.eu account Zbbit account Tigers-dl.net account Jptvts.us account Lat-team account Club.hares.top account Falkonvision-team account Concen account Drugari account T.ceskeforum account Peeratiko.org account Zamunda.se account Central-torrent.eu account h-o-d.org account Torrentleech.pl account Demonoid invite Lst.gg account Fakedoor.store account LaidBackManor account Vrbsharezone.co.uk invite Torrenteros account Arenaelite account Datascene account Tracker.0day.community Tapochek.net invite Ptchina invite Lesaloon account Exyusubs account Therebels.tv account Ubits.club invite Zmpt.cc account Turktorrent.us account Dasunerwarte account Hawke.uno account Monikadesign account Fearnopeer account Alpharatio account Wukongwendao.top account Chinapyg account Azusa.wiki account Yggtorrent.top account Torrentdd account Cyanbug.net invite Hhanclub.top account Wintersakura.net account Xthor account Tctg.pm account Finelite invite Agsvpt.com account Pt.0ff.cc invite Qingwapt.com account Xingtan.one account Ptcafe.club invite W-o-t.pro account Coastal-crew.bounceme.net account Darkpeers.org account Pianyuan.org account Seedpool.org  account Tempelbox account Pt.itzmx.com account Itatorrents.xyz  account Letseed.org account The-new-fun.com  account Malayabits.cc account Trellas.me account Yu-scene.net account Futuretorrent.org account Bitpt.cn account Tocashare.biz  account Videoteka.org  account White-angel.hu account Xbytesv2.li account Torr9  account Desitorrents account Okpt.net account Samaritano.cc account Polishtorrent.top  account C411.org account Bigcore.eu account BJ-Share.info account Infinitylibrary.net account Beload.org account Emuwarez.com account Yhpp.cc account Funsharing ( FSC ) account Rastastugan account Tlzdigital account account Upscalevault account Bluraytracker.cz account Torrenting.com account Infire.si account Dasunerwartete.biz invite The-torrent-trader account New-asgard.xyz account Pandapt account Deildu account Tmpt.top invite Pt.gtk.pw account Media.slo-bitcloud.eu account P.t-baozi.cc account 13city.org account Cangbao.ge account Cc.mypt.cc invite Dubhe.site invite Hdbao.cc account Kufei.org invite Mooko.org account Pt.aling.de invite Pt.lajidui.top invite Longpt.org invite Pt.luckpt.de invite Ptlover.cc invite Raingfh.top account Sewerpt.com account   Movies Trackers :   Secret-cinema account Anthelion account Pixelhd account Cinemageddon account Cinemaz account Retroflix account Classix-unlimited - invite Movie-Torrentz (m2g.link) invite Punck-tracker.net account Tmghub account Cathode-ray.tube account Greatposterwall account Arabicsource.net account Upload.cx account Crabpt.vip invite Onlyencodes.cc account Exyusubs account Hellashut.net invite Nordichd.sytes.net invite Locadora.cc account   HD Trackers :   Blutopia buffered account Hd-olimpo buffered account Hdf.world account Torrentland.li account HdSky account Hdchina account Chdbits account Totheglory account Hdroute account Hdhome account TorrentCCF aka et8.org account 3DTorrents invite HD-Torrents account Bit-HDTV account HDME.eu invite Hdarea.co account Asiancinema.me account JoyHD invite HDSpace invite CrazyHD invite Bluebird-hd invite Htpt.cc account Hdtime invite Ourbits.club account Hd4fans account Siambit account Privatehd account Springsunday account Tjupt account Hdcity.leniter invite Ccfbits account Discfan account Pt.btschool.club account Ptsbao.club invite Hdzone.me invite Danishbytes account Zonaq.pw account Tracker.tekno3d account Arabp2p account Hd-united account Reelflix.xyz account Hdatmos.club account Anasch.cc invite Tigris-t account Nethd.org account Hd.ai invite Hitpt.com account Hdmonkey account Dragonhd.xyz account Hdclub.eu account Forum.bluraycd.com account Carpt account Hdfun.me invite Pt.hdupt invite Puntotorrent account Ultrahd account Rousi.zip account Bearbit account Hdturk.club account Asiandvdclub account Star-space.net account Nordicq.org account Hdkyl.in account Utp.to account Hdzero account Novahd account Hdtorrents.eu account 4k3dyptt account Duckboobee.org invite Si-qi.xyz account   Music Trackers :   Dicmusic account Music-Vid account Open.cd account LzTr account ProAudioTorrents invite Jpopsuki invite TranceTraffic invite Audionews invite Kraytracker invite Libble.me invite Losslessclub invite Indietorrents.com invite Dimeadozen account Funkytorrents invite Karaokedl account zombtracker.the-zomb account Concertos account Sugoimusic account Satclubbing.club invite Metal.iplay invite Psyreactor invite Panda.cd account Adamsfile account Freehardmusic account Tracker.hqmusic.vn accouunt Twilightzoom account 3 tb buffer Hiresmusic account Metalguru account Musictorrents.org account Musebootlegs.com invite Zappateers.com account Jungleland.dnsalias.com account Naftamusic account Bemusic account   E-Learning Trackers :   Theplace account Thevault account Myanonamouse account Libranet account 420Project account Learnflakes account Pt.soulvoice.club account P2pelite account Aaaaarg.fail invite Ebooks-shares.org account Abtorrents account Pt.tu88.men invite Docspedia.world invite   TV-Trackers :   Skipthecommercials.xyz account Cryptichaven account TV-Vault invite Shazbat.TV account Myspleen account Tasmanit.es invite Tvstore.me account Tvchaosuk account Jptv.club account   XXX - Porn Trackers :   FemdomCult account Pussytorrents account Adult-cinema-network account Bootytape account 1 Tb buffer Exoticaz account Bitporn account Kufirc account Gaytorrent.ru invite Nicept account Gay-torrents.org invite Ourgtn account Pt.hdbd.us account BitSexy account Happyfappy.org account Kamept.com account Lesbians4u.org account Fappaizuri.me account   Gaming Trackers :   Mteam.fr account BitGamer invite Retrowithin invite Gamegamept account   Cartoon/Anime/Comic Trackers :   Animeworld account Oldtoons.world account U2.dmhy account CartoonChaos invite Mononoke account Totallykids.tv account Bakabt.me invite Revanime account Ansktracker account Tracker.shakaw.com.br invite Bt.mdan.org account Skyey2.com account Animetracker.cc Adbt.it.cx invite Tracker.uniotaku.com account Mousebits.com account   Sports Trackers :   MMA-Tracker invite T3nnis.tv invite AcrossTheTasman account RacingForMe invite Sportscult invite Ultimatewrestlingtorrents account Worldboxingvideoarchive invite CyclingTorrents account Xtremewrestlingtorrents account Tc-boxing invite Mma-torrents account Aussierul invite Xwt-classics account Racing4everyone account Talk.tenyardtracker account Stalker.societyglitch invite Extremebits invite Rgfootball.net account F1carreras.xyz account   Software/Apps Trackers :   Brokenstones account Appzuniverse invite Teamos.xyz account Macbb.org account Phoenixproject.app account Tormac.org account   Graphics Trackers:   Forum.Cgpersia account Cgfxw account   Others   Hduse.net account Fora.snahp.eu account Makingoff.org/forum account Xrel.to account Undergunz.su account Corebay account Endoftheinter.net ( EOTI ) account Thismight.be invite Skull.facefromouter.space account Avxhm.se (AvaxHome) account Ssdforum account Notfake.vip account Intotheinter.net account Tildes.net invite Thetoonz account Usinavirtual account Hdclasico invite HispaShare account Valentine.wtf account Adit-hd account Forum-andr.net account Warezforums account Justanothermusic.site account Forbiddenlibrary.moe account Senturion.to account Movieparadise account Dcdnet.ru account Sftdevils.net account Heavy-r.com account New-team.org account Ddl.tv account Filewarez.club account Hispamula.org account Hubwarez.tv account Ultim-zone.in account Leprosorium.ru account Planet-ultima.org account The-dark-warez.com account Koyi.pub account Tehparadox.net account Forumophilia account Torrentinvite.fr account Gmgard.com account Board4all.biz account   NZB :   Ninjacentral account Tabula-rasa.pw account Drunkenslug account Drunkenslug invite Usenet-4all account Dognzb.cr invite Kleverig account Nzb.cat account Nzbplanet.net invite Ng4you.com account NZB.to account Samuraiplace account Abhdtv.net account Abook.link account Comix.pw account House-of-usenet Secretbinaries.net account Vnext.to account Stockboxx.top account Sky-of-use.net account Indexer.codeshy.com account Oldboys.pw account Uhd100.com account   Prices start from 3 $ to 100 $   Payment methods: Crypto, Neteller, Revolut   If you want to buy something send me a pm or contact me on:   Email: morrison2102@gmail.com   Discord: LFC4LIFE#4173   Telegram: https://t.me/LFC4LIFE4173   Skype: morrison2102@hotmail.com
    • FILE vs SCENARIO – where the outcome is actually decided ▪ Most people think everything depends on the document. Make it “clean” – and you’re good. ▪ But the check doesn’t look at the file. It looks at the story around it. – where you “live” – what you “do” – where your income comes from – how it all fits together ▪ The same document can pass… or get rejected – depending on the scenario. ▪ Because it’s not the file itself that matters, but the logic of the entire chain. ▪ The document is just one part of the structure. If the rest doesn’t match – it won’t save you. ▪ Got a case? Describe your situation – we’ll point out the weak spots. › TG: @mustang_service ( https:// t.me/ mustang_service ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #editing #photoshop #documents #correction #verification
    • Looking for lucera dev i can pay
  • 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..