diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-19 12:56:40 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-08-19 12:56:40 +0000 |
commit | 4da2b68eb118e87b5632ea92e862d495221517f7 (patch) | |
tree | 3acd5fe99896bea1864cb54561f313d3493bceca | |
parent | 3c89751e48a424ce26bc1c6f78f4bf7fb6242fac (diff) | |
download | hercules-4da2b68eb118e87b5632ea92e862d495221517f7.tar.gz hercules-4da2b68eb118e87b5632ea92e862d495221517f7.tar.bz2 hercules-4da2b68eb118e87b5632ea92e862d495221517f7.tar.xz hercules-4da2b68eb118e87b5632ea92e862d495221517f7.zip |
Partially fixed monster_controller.txt (see r7233).
TODOs are in the npc changelog.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11041 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | npc/Changelog.txt | 4 | ||||
-rw-r--r-- | npc/sample/monster_controller.txt | 30 |
2 files changed, 19 insertions, 15 deletions
diff --git a/npc/Changelog.txt b/npc/Changelog.txt index f2979fbf3..4366cb7ee 100644 --- a/npc/Changelog.txt +++ b/npc/Changelog.txt @@ -1,5 +1,9 @@ Date Added ====== +2007/08/19 + * Partially fixed monster_controller.txt (see r7233, Lance!) [ultramage] + - TODO: why does it spam "Unlocked target [0]!" all the time? + - TODO: why does 'follow' walk only 1 cell? 2007/08/15 * Fixed some loop errors in the guides. [Samuray22] -Thanks to $ephiroth. diff --git a/npc/sample/monster_controller.txt b/npc/sample/monster_controller.txt index 4d368467c..4a8f7211c 100644 --- a/npc/sample/monster_controller.txt +++ b/npc/sample/monster_controller.txt @@ -11,7 +11,7 @@ prontera,180,200,4 script Monster Controller 123,{ } function remove_mob { - removemob getarg(0); + mobremove getarg(0); set .@mob_size, getarraysize(.mc_moblist); for(set .@i, 0; .@i < .@mob_size; set .@i, .@i + 1){ if(.mc_moblist[.@i] == getarg(0)) @@ -31,17 +31,17 @@ prontera,180,200,4 script Monster Controller 123,{ function summon_mob { set .@mob_size, getarraysize(.mc_moblist); - set .mc_moblist[.@mob_size], spawnmob("Slave - " + .@mob_size, getarg(0), "prontera", 180, 200); + set .mc_moblist[.@mob_size], mobspawn("Slave - " + .@mob_size, getarg(0), "prontera", 180, 200); mobattach .mc_moblist[.@mob_size]; setmobdata .mc_moblist[.@mob_size], 25, AI_ACTION_TYPE_ATTACK| AI_ACTION_TYPE_DETECT| - AI_ACTION_TYPE_DEAD| + AI_ACTION_TYPE_DEAD| AI_ACTION_TYPE_ASSIST| AI_ACTION_TYPE_KILL| - AI_ACTION_TYPE_UNLOCK| - AI_ACTION_TYPE_WALKACK| - AI_ACTION_TYPE_WARPACK; + AI_ACTION_TYPE_UNLOCK| + AI_ACTION_TYPE_WALKACK| + AI_ACTION_TYPE_WARPACK; return; } @@ -144,26 +144,26 @@ L_MainMenu: } L_AttackMenu: - switch(select("Walk","Follow","Attack","Stop","Defend","Talk","Emote","Random Walk","Callback","Back")){ + switch(select("Walk","Follow","Attack","Stop","Defend","Talk","Emote","Random Walk","Callback","Back","Sit")){ case 1: // Walk set .@src, make_menu(); input .@x; input .@y; - mobwalk .@src,.@x,.@y; // Mode 1: Walk to location. + unitwalk .@src,.@x,.@y; // Mode 1: Walk to location. break; case 2: // Follow set .@src, make_menu(); input .@tar; - mobwalk .@src, .@tar; // Mode 2: Walk to target. + unitwalk .@src, .@tar; // Mode 2: Walk to target. break; case 3: // Attack set .@src, make_menu(); input .@tar; - mobattack .@src, .@tar; + unitattack .@src, .@tar; break; case 4: // Stop set .@src, make_menu(); - mobstop .@src; + unitstop .@src; break; case 5: // Defend/Assist set .@src, make_menu(); @@ -173,24 +173,24 @@ L_AttackMenu: case 6: // Talk set .@src, make_menu(); input .@text$; - mobtalk .@src, .@text$; + unittalk .@src, .@text$; break; case 7: // Emote set .@src, make_menu(); input .@emote; - mobemote .@src, .@emote; + unitemote .@src, .@emote; break; case 8: set .@src, make_menu(); input .@flag; - mobrandomwalk .@src, .@flag; + setmobdata .@src, 26, .@flag; break; case 9: set .@src, make_menu(); input .@flag; setmobdata .@src, 25, .@flag; break; - case 9: + case 10: next; goto L_MainMenu; } |