diff options
author | The Kandiman <kandiman@kandiman.(none)> | 2011-09-11 20:33:46 -0400 |
---|---|---|
committer | The Kandiman <kandiman@kandiman.(none)> | 2011-09-11 20:33:46 -0400 |
commit | ea8bb7b0cd86321ad0f85cc7a145671c527c10f9 (patch) | |
tree | 58128461e815f6aef84d7989e6fc5e0463b00235 /world/map/npc/027-1/monsters.txt | |
parent | 1cb0e75cbd356485ebe35bb3f5af10e1454e57a5 (diff) | |
download | classic-serverdata-ea8bb7b0cd86321ad0f85cc7a145671c527c10f9.tar.gz classic-serverdata-ea8bb7b0cd86321ad0f85cc7a145671c527c10f9.tar.bz2 classic-serverdata-ea8bb7b0cd86321ad0f85cc7a145671c527c10f9.tar.xz classic-serverdata-ea8bb7b0cd86321ad0f85cc7a145671c527c10f9.zip |
Tab conversion and script formatting project.
Final commit, maps 024-1 through 042-2 complete.
Diffstat (limited to 'world/map/npc/027-1/monsters.txt')
-rw-r--r-- | world/map/npc/027-1/monsters.txt | 87 |
1 files changed, 46 insertions, 41 deletions
diff --git a/world/map/npc/027-1/monsters.txt b/world/map/npc/027-1/monsters.txt index 0efe43c4..b8f1233a 100644 --- a/world/map/npc/027-1/monsters.txt +++ b/world/map/npc/027-1/monsters.txt @@ -1,61 +1,66 @@ // 027-1 Graveyard zombies and fallens // they need to be in an extra file because of the crying child quest -027-1.gat,71,41,31,22 monster Zombie 1036,2,300000,120000,specialMob027-1::On1036 -027-1.gat,37,41,33,22 monster Zombie 1036,2,200000,10000,specialMob027-1::On1036 -027-1.gat,37,65,33,22 monster Zombie 1036,3,140000,30000,specialMob027-1::On1036 -027-1.gat,37,65,33,22 monster Fallen 1045,3,120000,30000,specialMob027-1::On1045 +027-1.gat,71,41,31,22|monster|Zombie|1036,2,300000,120000,specialMob027-1::On1036 +027-1.gat,37,41,33,22|monster|Zombie|1036,2,200000,10000,specialMob027-1::On1036 +027-1.gat,37,65,33,22|monster|Zombie|1036,3,140000,30000,specialMob027-1::On1036 +027-1.gat,37,65,33,22|monster|Fallen|1045,3,120000,30000,specialMob027-1::On1045 -027-1.gat,0,0,0 script specialMob027-1 -1,{ +027-1.gat,0,0,0|script|specialMob027-1|-1,{ On1036: - set @mobID, 1036; - callsub _MOBCOUNT_ZOMBIES; - callfunc "MobPoints"; - break; + set @mobID, 1036; + callsub _MOBCOUNT_ZOMBIES; + callfunc "MobPoints"; + break; On1045: - set @mobID, 1045; - callsub _MOBCOUNT_FALLENS; - callfunc "MobPoints"; - break; + set @mobID, 1045; + callsub _MOBCOUNT_FALLENS; + callfunc "MobPoints"; + break; _MOBCOUNT_ZOMBIES: - set @Graveyard_Inn_MASK, NIBBLE_2_MASK; - set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT; + set @Graveyard_Inn_MASK, NIBBLE_2_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT; - set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); - if (@state != 1) return; - set @ring, @ring + 1; - if (@ring < 10) return; - if (rand(8) != 0) return; - message strcharinfo(0), "You found a ring hidden in the zombie's rotten rags. Maybe this is what Aldred was looking for..."; - set @state, 2; - callsub S_Update_Mask; - return; + if (@state != 1) + return; + set @ring, @ring + 1; + if (@ring < 10) + return; + if (rand(8) != 0) + return; + message strcharinfo(0), "You found a ring hidden in the zombie's rotten rags. Maybe this is what Aldred was looking for..."; + set @state, 2; + callsub S_Update_Mask; + return; _MOBCOUNT_FALLENS: - set @Graveyard_Inn_MASK, NIBBLE_2_MASK; - set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT; - - set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); + set @Graveyard_Inn_MASK, NIBBLE_2_MASK; + set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT; - if (@state != 1) return; - set @ring, @ring + 1; - if (@ring < 10) return; - if (rand(8) != 0) return; - message strcharinfo(0), "You found a ring inside the fallen's broken helmet. Maybe this is what Aldred was looking for..."; - set @state, 2; - callsub S_Update_Mask; - return; + set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT); -S_Update_Mask: - set QUEST_Graveyard_Inn, - (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) - | (@state << @Graveyard_Inn_SHIFT); + if (@state != 1) + return; + set @ring, @ring + 1; + if (@ring < 10) return; + if (rand(8) != 0) + return; + message strcharinfo(0), "You found a ring inside the fallen's broken helmet. Maybe this is what Aldred was looking for..."; + set @state, 2; + callsub S_Update_Mask; + return; - end; +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; + end; } |