chadness 1 Posted April 8 Hello Master's i would like to ask for help if mob 1907 or Guardian Stone is Destroyed the name of the player will be announce thank you Quote Share this post Link to post Share on other sites
0 mrfizi 11 Posted April 8 Maybe you can check this topic/post/reply: OnNPCKillEvent: if( killedrid == 1907 ) announce strcharinfo(0)+" of "+strcharinfo(2)+" slained "+getmonsterinfo( killedrid,MOB_NAME )+" at "+strcharinfo(3),bc_all,0xFF0000"; end; try this 1 Quote Share this post Link to post Share on other sites
0 chadness 1 Posted April 8 On 4/8/2021 at 10:12 PM, mrfizi said: Maybe you can check this topic/post/reply: thanks but i didnt get it On 4/8/2021 at 10:38 PM, mrfizi said: OnNPCKillEvent: if( killedrid == 1907 ) announce strcharinfo(0)+" of "+strcharinfo(2)+" slained "+getmonsterinfo( killedrid,MOB_NAME )+" at "+strcharinfo(3),bc_all,0xFF0000"; end; try this thanks men Quote Share this post Link to post Share on other sites
0 Emistry 2,046 Posted April 10 if you're using the default script, then you shall change this instead. npc/guild2/agit_main_se.txt#L1492-L1505 OnGuardianStoneDied: set [email protected], atoi(charat(strnpcinfo(1),2)); set [email protected]$,"$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); setd [email protected]$+"["+([email protected])+"]",1; if (getd([email protected]$+"[0]") == 1 || getd([email protected]$+"[0]") == 2) set [email protected], [email protected]+1; if (getd([email protected]$+"[1]") == 1 || getd([email protected]$+"[1]") == 2) set [email protected], [email protected]+1; if (playerattached()) mapannounce strnpcinfo(2),"The "+(([email protected] == 1)?"1st":"2nd")+" Guardian Stone has been destroyed by "+strcharinfo(3)+"!",bc_map,"0x00ff00"; else mapannounce strnpcinfo(2),"The "+(([email protected] == 1)?"1st":"2nd")+" Guardian Stone has been destroyed!",bc_map,"0x00ff00"; if ([email protected] == 2) { mapannounce strnpcinfo(2),"All of the Guardian Stones have been destroyed!",bc_map,"0x00ff00"; donpcevent "RL0#"+strnpcinfo(2)+"::OnDisable"; } donpcevent "gard"[email protected]+"#"+strnpcinfo(2)+"::OnReset"; initnpctimer; end; 1 Quote Share this post Link to post Share on other sites
0 chadness 1 Posted April 11 22 hours ago, Emistry said: if you're using the default script, then you shall change this instead. npc/guild2/agit_main_se.txt#L1492-L1505 OnGuardianStoneDied: set [email protected], atoi(charat(strnpcinfo(1),2)); set [email protected]$,"$agit_"+substr(strnpcinfo(2),0,1)+substr(strnpcinfo(2),8,9); setd [email protected]$+"["+([email protected])+"]",1; if (getd([email protected]$+"[0]") == 1 || getd([email protected]$+"[0]") == 2) set [email protected], [email protected]+1; if (getd([email protected]$+"[1]") == 1 || getd([email protected]$+"[1]") == 2) set [email protected], [email protected]+1; if (playerattached()) mapannounce strnpcinfo(2),"The "+(([email protected] == 1)?"1st":"2nd")+" Guardian Stone has been destroyed by "+strcharinfo(3)+"!",bc_map,"0x00ff00"; else mapannounce strnpcinfo(2),"The "+(([email protected] == 1)?"1st":"2nd")+" Guardian Stone has been destroyed!",bc_map,"0x00ff00"; if ([email protected] == 2) { mapannounce strnpcinfo(2),"All of the Guardian Stones have been destroyed!",bc_map,"0x00ff00"; donpcevent "RL0#"+strnpcinfo(2)+"::OnDisable"; } donpcevent "gard"[email protected]+"#"+strnpcinfo(2)+"::OnReset"; initnpctimer; end; thank you Master Quote Share this post Link to post Share on other sites
Hello Master's i would like to ask for help if mob 1907 or Guardian Stone is Destroyed the name of the player will be announce thank you
Share this post
Link to post
Share on other sites