diff options
author | Jared Adams <jaxad0127@gmail.com> | 2011-06-01 15:27:26 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2011-06-01 15:37:09 -0600 |
commit | 3d0823d5c9b56be5c3892c0a4e717f961cb93e69 (patch) | |
tree | 6545b29dbd08d81b57f9cb1f9f83df57ead489c2 /npc/027-1/monsters.txt | |
parent | c6e448824925eec18edffffc7342399b73b6feb4 (diff) | |
download | serverdata-3d0823d5c9b56be5c3892c0a4e717f961cb93e69.tar.gz serverdata-3d0823d5c9b56be5c3892c0a4e717f961cb93e69.tar.bz2 serverdata-3d0823d5c9b56be5c3892c0a4e717f961cb93e69.tar.xz serverdata-3d0823d5c9b56be5c3892c0a4e717f961cb93e69.zip |
Change the Converter to use different folder names
And update everything to use it.
Diffstat (limited to 'npc/027-1/monsters.txt')
-rw-r--r-- | npc/027-1/monsters.txt | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/npc/027-1/monsters.txt b/npc/027-1/monsters.txt new file mode 100644 index 00000000..0efe43c4 --- /dev/null +++ b/npc/027-1/monsters.txt @@ -0,0 +1,61 @@ +// 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,0,0,0 script specialMob027-1 -1,{ +On1036: + set @mobID, 1036; + callsub _MOBCOUNT_ZOMBIES; + callfunc "MobPoints"; + break; + +On1045: + 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 @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; + +_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); + + 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; + +S_Update_Mask: + set QUEST_Graveyard_Inn, + (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK)) + | (@state << @Graveyard_Inn_SHIFT); + return; + + end; +} |