luizragna Posted August 24, 2019 Share Posted August 24, 2019 (edited) The custom label OnAttackMob don't trigger... The script: - script OnAttackMob -1,{ OnAttackMob: mes "ID: ^0000FF"+ mobid +"^000000"; mes "Nome: ^0000FF"+ mobnome$ +"^000000"; mes "Level: ^0000FF"+ moblevel +"^000000"; close; } mob.cpp case BL_PC: { struct map_session_data *sd = (TBL_PC*)src; char_id = sd->status.char_id; if( damage ) md->attacked_id = src->id; //Variáveis Especiais [SlexFire] pc_setglobalreg(sd, add_str("mobid"), md->mob_id); pc_setglobalreg_str(sd, add_str("mobnome$"), md->name); pc_setglobalreg(sd, add_str("moblevel"), md->level); //Slexfire OnAttackMob npc_script_event(sd, NPCE_ATTACKMOB); //<--- Trigger break; } npc.cpp case NPCE_ATTACKMOB: //OnAttackMob return script_config.attackmob_event_name; npc.hpp NPCE_ATTACKMOB, //OnAttackMob script.cpp "OnAttackMob", script.hpp const char *attackmob_event_name; //OnAttackMob Edited August 24, 2019 by luizragna 1 Quote Link to comment Share on other sites More sharing options...
0 Thanna20 Posted November 8, 2020 Share Posted November 8, 2020 up on this Quote Link to comment Share on other sites More sharing options...
The custom label OnAttackMob don't trigger...
The script:
mob.cpp
npc.cpp
npc.hpp
script.cpp
script.hpp
Edited by luizragnaLink to comment
Share on other sites