Jump to content
  • 0

Feather of Blessing


Question

Posted

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

 

 

		ItemHandler.getInstance().registerItemHandler(new FeatherOfBlessing());

 

 

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

 

<skill id="9010" levels="1" name="Feather of Blessing">
  <set name="target" val="TARGET_SELF"/>
  <set name="skillType" val="RESURRECT"/>
  <set name="operateType" val="OP_ACTIVE"/>
  <set name="castRange" val="400"/>
  <set name="effectRange" val="600"/>
</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

  • 0
Posted

Same sh1t... Then i Dead ant press on item in chat show msg:

 

Feather of Blessing cannot be used due to unsuitable terms.

 

you need to use skill core support not itemhandler support

  • 0
Posted

ItemSkills.java sounds familiar?

 

Its an item handler executeing a skill.. you made that skill as ressurect...so whats left to do is pritty simple...

In ur etcitem table change that item handler in ItemSkills or ItemSkill (dont remember the correct name) and add the skill id and lvl to identify the skill...

and ur done >.>

  • 0
Posted

ItemSkills.java sounds familiar?

 

Its an item handler executeing a skill.. you made that skill as ressurect...so whats left to do is pritty simple...

In ur etcitem table change that item handler in ItemSkills or ItemSkill (dont remember the correct name) and add the skill id and lvl to identify the skill...

and ur done >.>

 

easier if he just rename/copy the existing support of charm of a self resurrect skill or to even use it

  • 0
Posted

Same... I changed in etc table handler to ItemSkills... added skill in same table.. but not working.

 

look

 

L2Skill.java do the core support

itemId and itemConsumeId in the skill xml

done

  • 0
Posted

Same sh1t... Then i Dead ant press on item in chat show msg:

 

Feather of Blessing cannot be used due to unsuitable terms.

 

Maybe the problem is in UseItem.java cuz u cannot use items while u'r dead.

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.



  • Posts

    • just with this extender that I have shared it is not possible to start with c4 client, you have to make some changes to the extender and it works with c4 client perfectly. regarding the updates in this last revision   🔹dll is not packaged with vmprotect   New custom zone types have been added: 🔹 NO_NOBLESS begin MinX=84638 MaxX=92616 MinY=-87170 MaxY=-82018 MinZ=-6000 MaxZ=0 Type=NO_NOBLESS KickOutPos=83007/148057/-3464 end   ▶️ This zone checks if the character is noble. If it does not meet the condition, it will be automatically kicked to the indicated position (KickOutPos). 🔹 CUSTOM_SPAWN_ZONE begin MinX=77275 MaxX=85704 MinY=10122 MaxY=18066 MinZ=-8000 MaxZ=5000 Type=CUSTOM_SPAWN_ZONE OutPos=83007/148057/-3464 Spawns={{82984/18066/-5256}};{{79275/15147/-5248}};{{82922/14263/-5256}};{{83704/10122/-5288}} end ▶️ This zone allows characters, upon death, to respawn with full buff, CP, HP and MP if they press “Fixed”. They will only be able to revive in one of the positions defined in Spawns. 🔧 Both zones are fully configurable from territorydata.txt
    • Could you tell me what changed in this update?   more one question: Is it possible to log in through the c4 client instead of interlude? That would be great  
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • ➡ Discount for your purchase: JULY2025 (11% discount) ➡ Our Online Shop: https://socnet.store  ➡ Our SMM-Boosting Panel: https://socnet.pro  ➡ Telegram Shop Bot: https://socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: https://wa.me/79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock