viewing paste Unknown #5070 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Index: map/guild.c
===================================================================
--- map/guild.c (revision 17100)
+++ map/guild.c (working copy)
@@ -1970,8 +1970,15 @@
  *---------------------------------------------------*/
 void guild_agit_start(void)
 {      // Run All NPC_Event[OnAgitStart]
+       struct s_mapiterator* iter;
+       struct map_session_data* sd;
+
        int c = npc_event_doall("OnAgitStart");
        ShowStatus("NPC_Event:[OnAgitStart] Run (%d) Events by @AgitStart.\n",c);
+
+       iter = mapit_getallusers();
+       for( sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); sd = (TBL_PC*)mapit_next(iter) )
+               clif_soundeffectall(&sd->bl, "woe.wav", 0, SELF);
 }
 
 /*====================================================
@@ -1979,8 +1986,15 @@
  *---------------------------------------------------*/
 void guild_agit_end(void)
 {      // Run All NPC_Event[OnAgitEnd]
+       struct s_mapiterator* iter;
+       struct map_session_data* sd;
+
        int c = npc_event_doall("OnAgitEnd");
        ShowStatus("NPC_Event:[OnAgitEnd] Run (%d) Events by @AgitEnd.\n",c);
+
+       iter = mapit_getallusers();
+       for( sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); sd = (TBL_PC*)mapit_next(iter) )
+               clif_soundeffectall(&sd->bl, "woe.wav", 0, SELF);      
 }
 
 /*====================================================
Viewed 538 times, submitted by clydelion.