Where can i add trigger for my custom label? (OnUseSkillEvent)

luizragna

New member
Messages
114
Points
0
Location
In their hearts
Emulator
Hello guys!

I'm creating a custom label, OnUseSkillEvent

I need add this trigger: (probabily in the skill.c)

npc->script_event(sd, NPCE_USESKILL);


I added in the cases (for exmple: MG_FIREBOLT) but i want for all skills.

i already created the code for others files.

npc.c:

{"Use Skill Event",script->config.useskill_event_name},


npc.h:

NPCE_USESKILL,


script.c

script->config.useskill_event_name = "OnUseSkillEvent";


and script.h

const char *useskill_event_name;




Test script:

Code:
-	script	OnUseTest	FAKE_NPC,{

OnUseSkillEvent:

mes "Do you used a skill";
close;


}
 
Last edited by a moderator:
Back
Top