luizragna Posted August 24, 2019 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 107 Reputation: 28 Joined: 02/12/14 Last Seen: January 9, 2023 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 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 137 Reputation: 11 Joined: 11/26/16 Last Seen: Thursday at 03:54 AM Share Posted November 8, 2020 up on this Quote Link to comment Share on other sites More sharing options...
Question
luizragna
The custom label OnAttackMob don't trigger...
The script:
mob.cpp
npc.cpp
npc.hpp
script.cpp
script.hpp
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.