summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/atcommand.c11
-rw-r--r--src/map/clif.h14
-rw-r--r--src/map/status.c6
3 files changed, 17 insertions, 14 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index 0bbbf4f44..bfe510e34 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -6242,17 +6242,20 @@ ACMD_FUNC(pettalk)
"/!", "/?", "/ho", "/lv", "/swt", "/ic", "/an", "/ag", "/$", "/...",
"/scissors", "/rock", "/paper", "/korea", "/lv2", "/thx", "/wah", "/sry", "/heh", "/swt2",
"/hmm", "/no1", "/??", "/omg", "/O", "/X", "/hlp", "/go", "/sob", "/gg",
- "/kis", "/kis2", "/pif", "/ok", "-?-", "-?-", "/bzz", "/rice", "/awsm", "/meh",
- "/shy", "/pat", "/mp", "/slur", "/com", "/yawn", "/grat", "/hp", "/philippines", "/usa",
- "/indonesia", "/brazil", "/fsh", "/spin", "/sigh", "/dum", "/crwd", "/desp", "/dice"
+ "/kis", "/kis2", "/pif", "/ok", "-?-", "/indonesia", "/bzz", "/rice", "/awsm", "/meh",
+ "/shy", "/pat", "/mp", "/slur", "/com", "/yawn", "/grat", "/hp", "/philippines", "/malaysia",
+ "/singapore", "/brazil", "/fsh", "/spin", "/sigh", "/dum", "/crwd", "/desp", "/dice", "-dice2",
+ "-dice3", "-dice4", "-dice5", "-dice6", "/india", "/love", "/russia", "-?-", "/mobile", "/mail",
+ "/chinese", "/antenna1", "/antenna2", "/antenna3", "/hum", "/abs", "/oops", "/spit", "/ene", "/panic",
+ "/whisp"
};
int i;
ARR_FIND( 0, ARRAYLENGTH(emo), i, stricmp(message, emo[i]) == 0 );
+ if( i == E_DICE1 ) i = rand()%6 + E_DICE1; // randomize /dice
if( i < ARRAYLENGTH(emo) )
{
if (sd->emotionlasttime + 1 >= time(NULL)) { // not more than 1 per second
sd->emotionlasttime = time(NULL);
- clif_skill_fail(sd, 1, 0, 1);
return 0;
}
sd->emotionlasttime = time(NULL);
diff --git a/src/map/clif.h b/src/map/clif.h
index 3dcab7379..9ef748ecb 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -140,9 +140,9 @@ typedef enum emotion_type
E_FLASH, // /fsh
E_SPIN, // /spin
E_SIGH,
- E_PROUD, // /dum
+ E_DUM, // /dum
E_LOUD, // /crwd
- E_OHNOES, // /desp, /otl
+ E_OTL, // /otl, /desp
E_DICE1,
E_DICE2,
E_DICE3, // --- 60
@@ -150,15 +150,15 @@ typedef enum emotion_type
E_DICE5,
E_DICE6,
E_INDIA,
- E_LOOSER,
+ E_LUV, // /love
E_RUSSIA,
E_VIRGIN,
- E_PHONE,
+ E_MOBILE,
E_MAIL,
E_CHINESE, // --- 70
- E_SIGNAL,
- E_SIGNAL2,
- E_SIGNAL3,
+ E_ANTENNA1,
+ E_ANTENNA2,
+ E_ANTENNA3,
E_HUM,
E_ABS,
E_OOPS,
diff --git a/src/map/status.c b/src/map/status.c
index b15229308..790e02571 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -9313,7 +9313,7 @@ int status_change_timer(int tid, unsigned int tick, int id, intptr_t data)
}
}
- clif_emotion(bl,18);
+ clif_emotion(bl,E_HEH);
sc_timer_next(4000+tick,status_change_timer,bl->id,data);
}
return 0;
@@ -9337,7 +9337,7 @@ int status_change_timer(int tid, unsigned int tick, int id, intptr_t data)
case SC_OBLIVIONCURSE:
if( --(sce->val4) >= 0 )
{
- clif_emotion(bl,1);
+ clif_emotion(bl,E_WHAT);
sc_timer_next(3000 + tick, status_change_timer, bl->id, data );
return 0;
}
@@ -9488,7 +9488,7 @@ int status_change_timer(int tid, unsigned int tick, int id, intptr_t data)
case SC_VOICEOFSIREN:
if( --(sce->val4) >= 0 )
{
- clif_emotion(bl,3);
+ clif_emotion(bl,E_LV);
sc_timer_next(2000 + tick, status_change_timer, bl->id, data);
return 0;
}