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..
Question
bauwbas
Ok, i need really help, i want to create Feather of Blessing (There is no server packs where work it)
Ok, in gameserver\data\scripts\handlers\itemhandlers
I createf file with name
FeatherofBlessing.java
package handlers.itemhandlers; import net.sf.l2j.gameserver.handler.IItemHandler; import net.sf.l2j.gameserver.model.L2ItemInstance; import net.sf.l2j.gameserver.model.actor.L2Playable; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; public class FeatherOfBlessing implements IItemHandler { public void useItem(L2Playable playable, L2ItemInstance item) { L2PcInstance activeChar = (L2PcInstance) playable; if(!activeChar.isAlikeDead()) { activeChar.sendMessage("You cannot be ressurected while alive."); return; } if(activeChar.isInOlympiadMode()) { activeChar.sendMessage("You cannot use this feature during olympiad."); return; } activeChar.sendMessage("You have been ressurected!"); activeChar.getInventory().destroyItemByItemId("RessSystem", 10649, 1, activeChar, activeChar.getTarget()); activeChar.doRevive(); activeChar.broadcastUserInfo(); activeChar.sendMessage("Feather of Blessing has dissapeared."); //return; } }Then i register it in MasterHandler.java
Then, i go to etcitem.sql and where is item id 10649 (Feather of blessing) in Handler colum add "FeatherOfBlessing" and in Skill "9010-1;"
And the last thing i go to
gameserver\data\stats\skills
Creating new skill
And then i everything done, my item isint working :// Then i alive, in chat i get msg "You cannot be ressurected while alive.", but then i dead and press item, its nothing. My char don't ress... Have some1 any ideas?
8 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now