Jump to content
  • 0

{Help} ! i need add Cursed Weapon in my server


danilo10

Question

8 answers to this question

Recommended Posts

  • 0

I need command drop Cursed Weapon in game lineage 2 ! . I used //cw_reload ! My gameserver.bat see Initializing CurseWeaponManager,loaded : 2 cursed weapon . But i didn't see anything Curse weapon in game ! How ? Help me ! sry my english bad !

Link to comment
Share on other sites

  • 0

<?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 !:(

Link to comment
Share on other sites

  • 0

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};

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...