Moderator: MacroQuest Developers
Code: Select all
[MobTypes_Snplant]
a plague fly_ImmuneSnare=1
a diseased gnat_ImmuneSnare=1
a hardshell stonemite_ImmuneSnare=1
a burrowing stonemite_ImmuneSnare=1
a stonemite_ImmuneSnare=1Code: Select all
#Event MobImmuneSnare "Your target is immune to changes in its run speed."
Sub Event_MobImmuneSnare(string line)
/declare chk string local ${Ini[krust_zoneinfo.ini, MobTypes_${Zone.ShortName}, ${Target.CleanName}_ImmuneSnare, FALSE]}
/if (${chk.Equal[FALSE]} && ${Target.Type.Equal[NPC]}) {
/echo # Debug: Storing information that ${Target.CleanName} is immune to snare
/ini "ZONEINFO_FILE" "MobTypes_${Zone.ShortName}" "${Target.CleanName}_ImmuneSnare" "1"
}
/returnCode: Select all
[Captions]
NPC=${If[${NamingSpawn.Mark},${NamingSpawn.Mark} - ,]}${If[${NamingSpawn.Assist},>> ,]}${NamingSpawn.DisplayName}${If[${NamingSpawn.Assist}, - ${NamingSpawn.PctHPs}%<<,]}${If[${NamingSpawn.Surname.Length},\n(${NamingSpawn.Surname}),]}${If[${Ini[krust_zoneinfo.ini,MobTypes_${Zone.ShortName},${NamingSpawn.DisplayName}_ImmuneSnare,0]}, ImmuneSnare,]}