* have creature emotes in the same system (on a negeative index) as SAI links were uselessly pointing to player emotes before
 * player emotes are now gendered
 * display two more cases of who points at whom when using a player emote
 * use and link event sound from emote
 * display more misc info
This commit is contained in:
Sarjuuk
2023-08-13 05:10:30 +02:00
parent 0f186576d3
commit 4d6fb4975e
20 changed files with 495 additions and 106 deletions

View File

@@ -905,7 +905,7 @@ class SmartAI
if ($time = $this->numRange('event', 1, true))
$footer = $time;
break;
case SAI_EVENT_RECEIVE_EMOTE: // 22 - On Receive Emote.
case SAI_EVENT_RECEIVE_EMOTE: // 22 - On Receive Player Emote.
$this->jsGlobals[Type::EMOTE][] = $e['param'][0];
if ($time = $this->numRange('event', 1, true))
@@ -1044,7 +1044,10 @@ class SmartAI
case SAI_ACTION_PLAY_EMOTE: // 5 -> any target
case SAI_ACTION_SET_EMOTE_STATE: // 17 -> any target
if ($a['param'][0])
{
$a['param'][0] *= -1; // handle creature emote
$this->jsGlobals[Type::EMOTE][] = $a['param'][0];
}
break;
case SAI_ACTION_FAIL_QUEST: // 6 -> any target
case SAI_ACTION_OFFER_QUEST: // 7 -> invoker
@@ -1152,6 +1155,7 @@ class SmartAI
if (empty($a['param'][$i]))
continue;
$a['param'][$i] *= -1; // handle creature emote
$buff[] = '[emote='.$a['param'][$i].']';
$this->jsGlobals[Type::EMOTE][] = $a['param'][$i];
}