local outfits = {
[128] or [136] = {hp = 100, mp = 150, speed = 200}, --Citizen
[129] or [137] = {hp = 100, mp = 150, speed = 200}, --Hunter
[130] or [138] = {hp = 100, mp = 150, speed = 200}, --Mage
[131] or [139] = {hp = 100, mp = 150, speed = 200}, --Knight
[132] or [140] = {hp = 100, mp = 150, speed = 200}, --Nobleman
[133] or [141] = {hp = 100, mp = 150, speed = 200}, --Summoner
[134] or [142] = {hp = 100, mp = 150, speed = 200}, --Warrior
[143] or [147] = {hp = 100, mp = 150, speed = 200}, --Barbarian
[144] or [148] = {hp = 100, mp = 150, speed = 200}, --Druid
[145] or [149] = {hp = 100, mp = 150, speed = 200}, --Wizard
[146] or [150] = {hp = 100, mp = 150, speed = 200}, --Oriental
[151] or [155] = {hp = 100, mp = 150, speed = 200}, --Pirate
[152] or [156] = {hp = 100, mp = 150, speed = 200}, --Assassin
[153] or [157] = {hp = 100, mp = 150, speed = 200}, --Beggar
[154] or [158] = {hp = 100, mp = 150, speed = 200}, --Shaman
[251] or [252] = {hp = 100, mp = 150, speed = 200}, --Norseman
[268] or [269] = {hp = 100, mp = 150, speed = 200}, --Nightmare
}
function onOutfit(cid, old, current)
for k, v in pairs(outfits) do
if doCreatureChangeOutfit(cid, current) and current.lookAddons == 3 and getCreatureOutfit(cid) ~= old and current.lookAddons == 3 then
doChangeSpeed(cid, getCreatureBaseSpeed(cid))
setCreatureMaxHealth(cid, -[current].v[1])
setCreatureMaxMana(cid, -[current].v[2])
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+[current].v[1])
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+[current].v[2])
doChangeSpeed(cid, getCreatureBaseSpeed(cid)+[current].v[3])
elseif
current.lookAddons ~= 3
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This outfit does not have both addons and therefore you have not received any bonus.")
end
end
return true
end