summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorEmistry Haoyan <Equinox1991@gmail.com>2017-09-03 22:19:35 +0800
committerEmistry Haoyan <Equinox1991@gmail.com>2017-09-03 22:56:39 +0800
commit1d3a6afb81d390c76e8fcb7b7f4669b5e9e13218 (patch)
tree84efe23e883e055fedc42b09f158b917bec86844 /npc
parent209201d9bcda0347619addc0110bf8476dcbceba (diff)
downloadhercules-1d3a6afb81d390c76e8fcb7b7f4669b5e9e13218.tar.gz
hercules-1d3a6afb81d390c76e8fcb7b7f4669b5e9e13218.tar.bz2
hercules-1d3a6afb81d390c76e8fcb7b7f4669b5e9e13218.tar.xz
hercules-1d3a6afb81d390c76e8fcb7b7f4669b5e9e13218.zip
Update F_GetArmorType()
- update missing equip types.
Diffstat (limited to 'npc')
-rw-r--r--npc/other/Global_Functions.txt19
1 files changed, 16 insertions, 3 deletions
diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt
index bc19ff048..5a15ff1d2 100644
--- a/npc/other/Global_Functions.txt
+++ b/npc/other/Global_Functions.txt
@@ -269,17 +269,30 @@ function script F_GetWeaponType {
// Determines equipment type by equip location
function script F_GetArmorType {
switch(getiteminfo(getarg(0),5)) {
- case 001: return "Lower Headgear"; break;
- case 2: return "Weapon"; break;
+ case 1: return "Lower Headgear"; break;
+ case 2: return callfunc("F_GetWeaponType", getarg(0)); break;
case 4: return "Garment"; break;
case 8: return "Accessory"; break;
case 16: return "Armor"; break;
case 32: return "Shield"; break;
case 64: return "Shoes"; break;
case 128: return "Accessory"; break;
+ case 136: return "Accessory"; break;
case 256: return "Upper Headgear"; break;
case 512: return "Middle Headgear"; break;
- default: return "Unable to Determine Equip Location"; break;
+ case 1024: return "Costume Upper Headgear"; break;
+ case 2048: return "Costume Midle Headgear"; break;
+ case 4096: return "Costume Lower Headgear"; break;
+ case 8192: return "Costume Garment"; break;
+ case 32768: return "Ammo"; break;
+ case 65536: return "Shadow Armor"; break;
+ case 131072: return "Shadow Weapon"; break;
+ case 262144: return "Shadow Shield"; break;
+ case 524288: return "Shadow Shoes"; break;
+ case 1048576: return "Shadow Accessory"; break;
+ case 2097152: return "Shadow Accessory"; break;
+ case 3145728: return "Shadow Accessory"; break;
+ default: return "Unknown Equip Type"; break;
}
end;
}