ifmatches(%HELMID%,"diamond"); #helm = 3; else; ifmatches(%HELMID%,"gold"); #helm = 1; else; ifmatches(%HELMID%,"leather"); #helm = 0; else; if(%HELMNAME% = "None"); log("Kein Helm"); else; #helm = 2; endif; endif; endif; endif; ifmatches(%CHESTPLATEID%,"diamond"); #brust = 3; else; ifmatches(%CHESTPLATEID%,"gold"); #brust = 1; else; ifmatches(%CHESTPLATEID%,"leather"); #brust = 0; else; if(%CHESTPLATENAME% = "None"); log("Keine Brustplatte"); else; #brust = 2; endif; endif; endif; endif; ifmatches(%LEGGINGSID%,"diamond"); #hose = 3; else; ifmatches(%LEGGINGSID%,"gold"); #hose = 1; else; ifmatches(%LEGGINGSID%,"leather"); #hose = 0; else; if(%LEGGINGSNAME% = "None"); log("Kein Beinschutz"); else; #hose = 2; endif; endif; endif; endif; ifmatches(%BOOTSID%,"diamond"); #fuss = 3; else; ifmatches(%BOOSTID%,"gold"); #fuss = 1; else; ifmatches(%BOOTSID%,"leather"); #fuss = 0; else; if(%BOOTSNAME% = "None"); log("Keine Stiefel"); else; #fuss = 2; endif; endif; endif; endif; setproperty(Helm,expression,%HELMDURABILITY%); if(%HELMDURABILITY% > %@#helmvier[%#helm%]%); setproperty(Helm,colour,"#FF00FF00"); elseif((%HELMDURABILITY% < %@#helmvier[%#helm%]%) && (%HELMDURABILITY% > %@#helmdrei[%#helm%]%)); setproperty(Helm,colour,"#FF3FC000"); elseif((%HELMDURABILITY% < %@#helmdrei[%#helm%]%) && (%HELMDURABILITY% > %@#helmzwei[%#helm%]%)); setproperty(Helm,colour,"#FF7F7F00") elseif((%HELMDURABILITY% < %@#helmzwei[%#helm%]%) && (%HELMDURABILITY% > %@#helmeins[%#helm%]%)); setproperty(Helm,colour,"#FFC03F00") else setproperty(Helm,colour,"#FFFF0000"); endif; setproperty(Brust,expression,%CHESTPLATEDURABILITY%); if(%CHESTPLATEDURABILITY% > %@#brustvier[%#brust%]%); setproperty(Brust,colour,"#FF00FF00"); elseif((%CHESTPLATEDURABILITY% < %@#brustvier[%#brust%]%) && (%CHESTPLATEDURABILITY% > %@#brustdrei[%#brust%]%)); setproperty(Brust,colour,"#FF3FC000"); elseif((%CHESTPLATEDURABILITY% < %@#brustdrei[%#brust%]%) && (%CHESTPLATEDURABILITY% > %@#brustzwei[%#brust%]%)); setproperty(Brust,colour,"#FF7F7F00") elseif((%CHESTPLATEDURABILITY% < %@#brustzwei[%#brust%]%) && (%CHESTPLATEDURABILITY% > %@#brusteins[%#brust%]%)); setproperty(Brust,colour,"#FFC03F00") else setproperty(Brust,colour,"#FFFF0000"); endif; setproperty(Hose,expression,%LEGGINGSDURABILITY%); if(%LEGGINGSDURABILITY% > %@#hosevier[%#hose%]%); setproperty(Hose,colour,"#FF00FF00"); elseif((%LEGGINGSDURABILITY% < %@#hosevier[%#hose%]%) && (%LEGGINGSDURABILITY% > %@#hosedrei[%#hose%]%)); setproperty(Hose,colour,"#FF3FC000"); elseif((%LEGGINGSDURABILITY% < %@#hosedrei[%#hose%]%) && (%LEGGINGSDURABILITY% > %@#hosezwei[%#hose%]%)); setproperty(Hose,colour,"#FF7F7F00") elseif((%LEGGINGSDURABILITY% < %@#hosezwei[%#hose%]%) && (%LEGGINGSDURABILITY% > %@#hoseeins[%#hose%]%)); setproperty(Hose,colour,"#FFC03F00") else setproperty(Hose,colour,"#FFFF0000"); endif; setproperty(Fuss,expression,%BOOTSDURABILITY%); if(%BOOTSDURABILITY% > %@#fussvier[%#fuss%]%); setproperty(Fuss,colour,"#FF00FF00"); elseif((%BOOTSDURABILITY% < %@#fussvier[%#fuss%]%) && (%BOOTSDURABILITY% > %@#fussdrei[%#fuss%]%)); setproperty(Fuss,colour,"#FF3FC000"); elseif((%BOOTSDURABILITY% < %@#fussdrei[%#fuss%]%) && (%BOOTSDURABILITY% > %@#fusszwei[%#fuss%]%)); setproperty(Fuss,colour,"#FF7F7F00") elseif((%BOOTSDURABILITY% < %@#fusszwei[%#fuss%]%) && (%BOOTSDURABILITY% > %@#fusseins[%#fuss%]%)); setproperty(Fuss,colour,"#FFC03F00") else setproperty(Fuss,colour,"#FFFF0000"); endif;