Jump to content

CTGavesT

Members
  • Posts

    424
  • Credits

  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by CTGavesT

  1. im trying 2 days now to change the color tittle name in some npcs it changing in some it remains retail what is wrong ?

    60027	Kalazar	L2ServerName Reborn	0	0	FF	-1
    60028	Kokaki	L2ServerName Reborn	0	0	FF	-1
    60029	Druke	L2ServerName Reborn	0	0	FF	-1
    60030	Zahar	L2ServerName Reborn	0	0	FF	-1
    60031	Zordel	L2ServerName Reborn	0	0	FF	-1
    60032	Pixal	L2ServerName Reborn	0	0	FF	-1
    60033	Spock	L2ServerName Reborn	0	0	FF	-1
    60034	Nonel	L2ServerName Reborn	0	0	FF	-1
    60035	Farcis	L2ServerName Reborn	0	0	FF	-1
    60036	Drain	L2ServerName Reborn	0	0	FF	-1
    
    
  2. μου βγαζει σε αυτα προβλημα τα χρωματιζω κοκκινα εκει που μου βγαζι την γραμμη

     

    YanBufferData.java 

     

    import com.l2jserver.gameserver.datatables.NpcTable;
    import com.l2jserver.gameserver.datatables.SkillTable;
    import com.l2jserver.gameserver.model.skills.L2Skill;
     
     
    protected final L2Skill skill;
     
     
    protected Buff(String ident, L2Skill skill, Element elem)
    {
     
    this.skill = skill;
     
    L2Skill skill = SkillTable.getInstance().getInfo(skillId, skillLevel);
     
    L2NpcTemplate npc = NpcTable.getInstance().getTemplate(npcId);
     
    _bufferNpcs.put(npc.getNpcId(), new BufferNpc(npc, curElem));
     
     
    package YANModPack.YANBuffer; File NpcAI
     
    String specificNpcHtml = npc.getNpcId() + ".html";
     
    YanBuffer.java
     
    return YANBufferData.GET_INSTANCE().getBufferNpc(npc.getNpcId());
     
    activeChar.clearBypass();
     
    activeChar.addBypass2(html.substring(start, finish2).trim());
    }
    else
    {
    activeChar.addBypass(html.substring(start, finish).trim());
     
    Long amount = items.get(item.getValue().item.getItemId());
     
    items.put(item.getValue().item.getItemId(), amount + item.getValue().amount);
     
    buff.skill.getEffects(playable, playable);
     
     
     
     
     
     

     

     

  3. exei 8ema meta import  gt einai auta 

     

    package YANModPack.YANBuffer;

     
    import java.nio.file.Path;
    import java.nio.file.Paths;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import java.util.Map.Entry;
    import java.util.concurrent.ConcurrentHashMap;
    import java.util.logging.Level;
    import java.util.logging.Logger;
     
    import YANModPack.YANBuffer.YANBufferData.Buff;
    import YANModPack.YANBuffer.YANBufferData.BuffCategory;
    import YANModPack.YANBuffer.YANBufferData.Buffer;
    import YANModPack.YANBuffer.YANBufferData.VoicedBuffer;
    import YANModPack.util.ItemRequirement;
    import YANModPack.util.htmltmpls.HTMLTemplateParser;
    import YANModPack.util.htmltmpls.HTMLTemplatePlaceholder;
    import YANModPack.util.htmltmpls.funcs.ChildsCountFunc;
    import YANModPack.util.htmltmpls.funcs.ExistsFunc;
    import YANModPack.util.htmltmpls.funcs.ForeachFunc;
    import YANModPack.util.htmltmpls.funcs.IfChildsFunc;
    import YANModPack.util.htmltmpls.funcs.IfFunc;
    import YANModPack.util.htmltmpls.funcs.IncludeFunc;
     
    import com.l2jserver.gameserver.handler.VoicedCommandHandler;
    import com.l2jserver.gameserver.model.actor.L2Npc;
    import com.l2jserver.gameserver.model.actor.L2Playable;
    import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
    import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
    import com.l2jserver.gameserver.network.serverpackets.ShowBoard;

     

     

    kai den uparxoun mesa sto eclipse mimpos exetai kamia buffer h prepi na katso na ta peraso?

  4. Casino Manager

     

    Work Fine

    /*
     * 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 3 of the License, 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, see <http://www.gnu.org/licenses/>.
     */
    package com.l2jfrozen.gameserver.model.actor.instance;
    
    import com.l2jfrozen.gameserver.ai.CtrlIntention;
    import com.l2jfrozen.gameserver.network.serverpackets.NpcHtmlMessage;
    import com.l2jfrozen.gameserver.network.serverpackets.SetupGauge;
    import com.l2jfrozen.gameserver.network.serverpackets.SocialAction;
    import com.l2jfrozen.gameserver.templates.L2NpcTemplate;
    import com.l2jfrozen.gameserver.thread.ThreadPoolManager;
    import com.l2jfrozen.util.random.Rnd;
    import java.util.NoSuchElementException;
    import java.util.StringTokenizer;
    import javolution.text.TextBuilder;
    
    public class L2CasinoInstance extends L2NpcInstance
    {
    public L2CasinoInstance(int objectId, L2NpcTemplate template)
    {
    super(objectId, template);
    }
    
    public void onBypassFeedback(L2PcInstance player, String command)
    {
        int ammount = 0;
    if (command.startsWith("play1"))
    {
    StringTokenizer st = new StringTokenizer(command);
    try
    {
    st.nextToken();
    ammount = Integer.parseInt(st.nextToken());
    }
    catch (NoSuchElementException nse)
    {
    }
    Casino1(player, ammount);
    }
    }
    
    public static void displayCongrats(L2PcInstance player)
    {
    player.broadcastPacket(new SocialAction(player.getObjectId(), 3));
    player.sendMessage("Congratulations You Won!");
    }
    
    public static void displayCongrats2(L2PcInstance player)
    {
    player.sendMessage("You lost!");
    }
    
    public void showChatWindow(L2PcInstance player, int val)
    {
    NpcHtmlMessage msg = new NpcHtmlMessage(getObjectId());
    msg.setHtml(casinoWindow(player));
    msg.replace("%objectId%", String.valueOf(getObjectId()));
    player.sendPacket(msg);
    }
    
    private String casinoWindow(L2PcInstance player)
    {
    TextBuilder tb = new TextBuilder();
    tb.append("<html><title>L2 Server Name Casino Manager</title><body>");
    tb.append("<center><img src=\"L2UI_CH3.onscrmsg_pattern01_1\" width=295 height=32><br><br>");
    tb.append("<font color=\"3b8d8d\">Chance to win : 50%</font><br>");
    tb.append("<img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\"><br>");
    tb.append("<tr><td><font color=\"e0d6b9\">Double or Nothing </font></td></tr><br>");
    tb.append("<img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\"></center><br>");
    tb.append("<center>");
    tb.append("<font color=\"e0d6b9\">Place your bet: Vote Items!</font>");
    tb.append("</center>");
    tb.append("<center><img src=\"L2UI.SquareGray\" width=\"280\" height=\"1\"></center><br>");
    tb.append("<br>");
    tb.append("<center>");
    tb.append("<tr>");
    tb.append("<td align=center><edit var=\"qbox\" width=120 height=15><br></td> <td align=right></td>");
    tb.append("<td align=center><button value=\"Bet\" action=\"bypass -h npc_%objectId%_play1 $qbox\" width=204 height=20 back=\"sek.cbui75\" fore=\"sek.cbui75\"></td>");
    tb.append("</tr>");
    tb.append("</center>");
    
    tb.append("<center><img src=\"L2UI_CH3.onscrmsg_pattern01_2\" width=295 height=32><br></center>");
    tb.append("</body></html>");
    return tb.toString();
    }
    
    public static void Casino1(L2PcInstance player, int ammount)
    {
    int unstuckTimer = 100;
    player.setTarget(player);
    player.getAI().setIntention(CtrlIntention.AI_INTENTION_IDLE);
    player.disableAllSkills();
    SetupGauge sg = new SetupGauge(0, unstuckTimer);
    player.sendPacket(sg);
    
    Casino1 ef = new Casino1(player, ammount);
    player.setSkillCast(ThreadPoolManager.getInstance().scheduleGeneral(ef, unstuckTimer));
    }
    
    static class Casino1 implements Runnable {
    private L2PcInstance _player;
    private int _ammount;
    
    Casino1(L2PcInstance player, int ammount) 
    {
    this._ammount = ammount;
    this._player = player;
    }
    
    public void run() {
    if (this._player.isDead())
    {
    return;
    }
    
    this._player.setIsIn7sDungeon(false);
    this._player.enableAllSkills();
    int chance = Rnd.get(3);
    
    if (this._player.getInventory().getInventoryItemCount(7264, 1) >= this._ammount)
    {
    if (chance == 0)
    {
    L2CasinoInstance.displayCongrats(this._player);
    
    this._player.addItem("Gift", 7264, this._ammount, this._player, true);
    this._player.broadcastUserInfo();
    }
    
    if (chance == 1)
    {
    L2CasinoInstance.displayCongrats2(this._player);
    
    this._player.destroyItemByItemId("Consume", 7264, this._ammount, this._player, true);
    this._player.broadcastUserInfo();
    }
    
    if (chance == 2)
    {
    L2CasinoInstance.displayCongrats2(this._player);
    
    this._player.destroyItemByItemId("Consume", 7264, this._ammount, this._player, true);
    this._player.broadcastUserInfo();
    }
    }
    else
    {
    this._player.sendMessage("You do not have enough Vote Items!");
    }
    }
    }
    } 
  5. καλησπερα εχω αυτο το θεμα με τα καστρα οταν τα ξεκιναω με τον Admin  χρησιμοποιω L2jFrozen και στα καστρα δεν μου βγαζει τα npc ενω υπαρχουν μεσα στο spawnlist
     

    Υ.Γ συνχορεστεμε αν εχω κανει ορθογραφικα

     

    post-139179-0-52134400-1454907956_thumb.png

     

    Να η Γραμμες Στο μεσα που λεει οτι εχει θεμα

     

    RequestBypassToServer.java Line 120

    				ach.useAdminCommand(_command, activeChar);
    
    

    Siege.java Line  734
     

    			for (final L2PcInstance member : clan.getOnlineMembers(""))
    
    

    Siege.java 654

    			updatePlayerSiegeStateFlags(false);
    
    

    AdminSiege.java Line 266
     

    				castle.getSiege().startSiege();
    
    

    L2GameClientPacket.java Line 77
     

    			runImpl();
    
    

     

    L2GameClient.java Line 1213
     

    					packet.run();
    
    
  6. kalispera pos mporo na bgalw to OverEnchant to exw to max +20 kai otan to paw + 25 me petaei na oriste to config

     

    # Limit enchant GM players (// setew and others) (0 disabled)

    GMOverEnchant = 0
     
    # IMPORTANT: anti Over Enchant system
    # HOW WORKS: if you set it to 20, and player have an item > 20 
    # he will be kicked and the item will disappear!
    # Enchant amount at which a player gets punished (0 disabled)
    EnchantKick = 0

     

×
×
  • Create New...