Jump to content

danilo10

Members
  • Posts

    98
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by danilo10

  1. Only some L2J Private projects have an retail wannabe Naia Tower.

    You can contact an dev of those project and maybe he will sell that part or you can wait, dunno what dev from L2jServer told on forum cause Hellbound is an priority now.

    Thanks your answer ! I know about that ! But My friend live in Russia ! He send Hellbound patch to me ! work fine hellbound level 11 ! But i check it ! it have a little bit in Naia tower not same Retail ! I want to see some code about it ! I will wait :)

  2. dunno, maybe isn't implemented 100%.

    I have not tested yet, but from what i know you need to meet some requirements to be able to enter and kill it.

    Thanks your answer ! But i think i tested it about 5 time and destroy all ! I went to inside Tiat's room ! But I didn't see Boss and full time dungeon. ! I think you need test it ! It can need something  ! I will test one time ! I'll post some picture !

     

  3. I need add events/heavyMedal/HeavyMedal.java. But i don't know to start it ! Where can i fix it start? Help me plz.

    # Events (Default - Offed)
    # events/GiftOfVitality/GiftOfVitality.java
    # events/HeavyMedal/HeavyMedal.java
    # events/MasterofEnchanting/MasterofEnchanting.java
    # events/SquashEvent/SquashEvent.java
    # events/TheValentineEvent/TheValentineEvent.java

     

    And script :

     

    public class HeavyMedal extends Quest
    {
    private final static int	CAT_ROY = 31228;
    private final static int	CAT_WINNIE = 31229;
    private final static int	GLITTERING_MEDAL = 6393;
    
    private final static int	WIN_CHANCE = 50;
    
    private final static int[] MEDALS = { 5,10,20,40 };
    private final static int[] BADGES = { 6399,6400,6401,6402 };
    
    public HeavyMedal(int questId, String name, String descr)
    {
    	super(questId, name, descr);
    	addStartNpc(CAT_ROY);
    	addStartNpc(CAT_WINNIE);
    	addTalkId(CAT_ROY);
    	addTalkId(CAT_WINNIE);
    	addFirstTalkId(CAT_ROY);
    	addFirstTalkId(CAT_WINNIE);
    }
    
    @Override
    public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
    {
    	String htmltext = "";
    	QuestState st = player.getQuestState(getName());
    	htmltext = event;
    
    	int level = checkLevel(st);
    
    	if (event.equalsIgnoreCase("game"))
    	{
    		if (st.getQuestItemsCount(GLITTERING_MEDAL) < MEDALS[level])
    			return "31229-no.htm";
    		else
    			return "31229-game.htm";
    	}
    	else if (event.equalsIgnoreCase("heads") || event.equalsIgnoreCase("tails"))
    	{
    		if (st.getQuestItemsCount(GLITTERING_MEDAL) < MEDALS[level])
    			return "31229-"+event.toLowerCase()+"-10.htm";
    
    		st.takeItems(GLITTERING_MEDAL, MEDALS[level]);
    
    		if(Rnd.get(100) > WIN_CHANCE)
    		{
    			level = 0;
    		}
    		else
    		{
    			if (level>0)
    				st.takeItems(BADGES[level-1], -1);
    			st.giveItems(BADGES[level], 1);
    			st.playSound("Itemsound.quest_itemget");
    			level++;
    		}
    		return "31229-"+event.toLowerCase()+"-"+String.valueOf(level)+".htm";
    	}
    	else if (event.equalsIgnoreCase("talk"))
    	{
    		return String.valueOf(npc.getNpcId())+ "-lvl-"+String.valueOf(level)+".htm";			
    	}
    	return htmltext;
    }
    
    @Override
    public String onFirstTalk(L2Npc npc, L2PcInstance player)
    {
    	QuestState st = player.getQuestState(getName());
    	if (st == null)
    	{
    		Quest q = QuestManager.getInstance().getQuest(getName());
    		st = q.newQuestState(player);
    	}
    	return npc.getNpcId()+".htm";
    }
    
    public int checkLevel(QuestState st)
    {
    	int _lev = 0;
    	if(st == null)
    		return 0;
    	else if (st.getQuestItemsCount(6402) > 0)
    		_lev = 4;
    	else if (st.getQuestItemsCount(6401) > 0)
    		_lev = 3;
    	else if (st.getQuestItemsCount(6400) > 0)
    		_lev = 2;
    	else if (st.getQuestItemsCount(6399) > 0)
    		_lev = 1;
    
    	return _lev;
    }
    
    public static void main(String[] args)
    {
    	new HeavyMedal(-1, "HeavyMedal", "events");
    }
    }

  4. Thanks your answer ! But i fixed it !  :)

     

    But my prolem again !  >:( ! Everyone help me fix it ! My server freya but quest hellbounce not work !

    package com.l2jserver.gameserver.instancemanager;
    
    import java.util.logging.Logger;
    
    public class HellboundManager
    {
    private static final Logger _log = Logger.getLogger(HellboundManager.class.getName());
    
    private HellboundManager()
    {
    	_log.info(getClass().getSimpleName()+": Initializing");
    	init();
    }
    
    private void init()
    {
    	_log.info(getClass().getSimpleName()+": Mode: dummy");
    	if (isLocked())
    		_log.info(getClass().getSimpleName()+": State: locked");
    	else
    		_log.info(getClass().getSimpleName()+": State: unlocked");
    }
    
    /**
     * Returns true if Hellbound is locked
     */
    public boolean isLocked()
    {
    	return false;
    }
    
    public static final HellboundManager getInstance()
    {
    	return SingletonHolder._instance;
    }
    
    @SuppressWarnings("synthetic-access")
    private static class SingletonHolder
    {
    	protected static final HellboundManager _instance = new HellboundManager();
    }
    }

    And My Script.cfg only code Budenka.java

    # Hellbound Section
    hellbound/Budenka/Budenka.java

  5. hic ! It's bad !But i read some thing in my datebass ! you can read it ! can you help me ?

    /*

    * 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.l2jserver.gameserver.model;

     

    import java.sql.Connection;

    import java.sql.PreparedStatement;

    import java.sql.SQLException;

    import java.util.concurrent.ScheduledFuture;

    import java.util.logging.Level;

    import java.util.logging.Logger;

     

    import com.l2jserver.Config;

    import com.l2jserver.L2DatabaseFactory;

    import com.l2jserver.gameserver.ThreadPoolManager;

    import com.l2jserver.gameserver.datatables.SkillTable;

    import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager;

    import com.l2jserver.gameserver.instancemanager.TransformationManager;

    import com.l2jserver.gameserver.model.actor.L2Attackable;

    import com.l2jserver.gameserver.model.actor.L2Character;

    import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;

    import com.l2jserver.gameserver.network.SystemMessageId;

    import com.l2jserver.gameserver.network.serverpackets.Earthquake;

    import com.l2jserver.gameserver.network.serverpackets.ExRedSky;

    import com.l2jserver.gameserver.network.serverpackets.InventoryUpdate;

    import com.l2jserver.gameserver.network.serverpackets.ItemList;

    import com.l2jserver.gameserver.network.serverpackets.SocialAction;

    import com.l2jserver.gameserver.network.serverpackets.SystemMessage;

    import com.l2jserver.gameserver.network.serverpackets.UserInfo;

    import com.l2jserver.gameserver.templates.item.L2Item;

    import com.l2jserver.gameserver.util.Broadcast;

    import com.l2jserver.util.Point3D;

    import com.l2jserver.util.Rnd;

     

     

    public class CursedWeapon

    {

    private static final Logger _log = Logger.getLogger(CursedWeaponsManager.class.getName());

     

    // _name is the name of the cursed weapon associated with its ID.

    private final String _name;

    // _itemId is the Item ID of the cursed weapon.

    private final int _itemId;

    // _skillId is the skills ID.

    private final int _skillId;

    private final int _skillMaxLevel;

    private int _dropRate;

    private int _duration;

    private int _durationLost;

    private int _disapearChance;

    private int _stageKills;

     

    // this should be false unless if the cursed weapon is dropped, in that case it would be true.

    private boolean _isDropped = false;

    // this sets the cursed weapon status to true only if a player has the cursed weapon, otherwise this should be false.

    private boolean _isActivated = false;

    private ScheduledFuture<?> _removeTask;

     

    private int _nbKills = 0;

    private long _endTime = 0;

     

    private int _playerId = 0;

    protected L2PcInstance _player = null;

    private L2ItemInstance _item = null;

    private int _playerKarma = 0;

    private int _playerPkKills = 0;

    protected int transformationId = 0;

     

    private static final int[] TRANSFORM_IDS = new int[]{3630,3631};

  6. <?xml version="1.0" encoding="UTF-8"?>
    <list>
    <item id="8190" skillId="3603" name="Demonic Sword Zariche">
    	<dropRate val="1" /> <!-- 100000 for 100% -->
    	<duration val="300" /> <!-- in minutes -->
    	<durationLost val="3" /> <!-- in minutes -->
    	<disapearChance val="50" /> <!-- in % -->
    	<stageKills val="10" /> <!-- Integer -->
    </item>
    <item id="8689" skillId="3629" name="Blood Sword Akamanah">
    	<dropRate val="1" /> <!-- 100000 for 100% -->
    	<duration val="300" /> <!-- in minutes -->
    	<durationLost val="3" /> <!-- in minutes -->
    	<disapearChance val="50" /> <!-- in % -->
    	<stageKills val="10" /> <!-- Integer -->
    </item>
    </list>

     

    Is it .xml right?? If It's wrong ! I hope you fix it for me !:(

×
×
  • Create New...