summaryrefslogtreecommitdiff
path: root/npc/sample
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-26 11:58:13 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-26 11:58:13 +0000
commit2024273648858ab009892ee38e780a835a6bd4dc (patch)
treee4b575172b0539bef0c925e41a4e9e3ca4a5f202 /npc/sample
parent8f7a18236bc8ad7642cd1b9adf7b484e05b17e24 (diff)
downloadhercules-2024273648858ab009892ee38e780a835a6bd4dc.tar.gz
hercules-2024273648858ab009892ee38e780a835a6bd4dc.tar.bz2
hercules-2024273648858ab009892ee38e780a835a6bd4dc.tar.xz
hercules-2024273648858ab009892ee38e780a835a6bd4dc.zip
Added a few more events in..
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6776 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/sample')
-rw-r--r--npc/sample/monster_controller.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/npc/sample/monster_controller.cpp b/npc/sample/monster_controller.cpp
index 2c1c4acf4..035215300 100644
--- a/npc/sample/monster_controller.cpp
+++ b/npc/sample/monster_controller.cpp
@@ -68,11 +68,17 @@ prontera.gat,180,200,4 script Monster Controller 123,{
set .@action_name$, ""+.ai_action[AI_ACTION_TAR];
break;
}
+
if(.ai_action[AI_ACTION_TYPE] == AI_ACTION_TYPE_ATTACK)
- set .@action_type$, "attacked by";
+ set .@action_type$, "Attacked by";
+ else if(.ai_action[AI_ACTION_TYPE] == AI_ACTION_TYPE_DETECT)
+ set .@action_type$, "Detected";
+ else if (.ai_action[AI_ACTION_TYPE] == AI_ACTION_TYPE_ASSIST)
+ set .@action_type$, "Killed by";
else
- set .@action_type$, "detected";
- announce "Action " + .@action_type$ + " [" + .@action_from$ + "] " + .@action_name$ + "!", bc_all;
+ set .@action_type$, "Assisting";
+
+ announce "Details - " + .@action_type$ + " [" + .@action_from$ + "] " + .@action_name$ + "!", bc_all;
deletearray .ai_action, 4;
end;
}