• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Addon Bonus' "statMagic" not working

Lifer420

Advanced OT User
Joined
Jul 27, 2009
Messages
1,490
Reaction score
196
Okay so I'm using an addon bonus script, every stat boost works EXCEPT magic level. I'm using tfs 0.4

Here's the script:

Code:
local hunter = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(hunter, CONDITION_PARAM_TICKS, -1)
setConditionParam(hunter, CONDITION_PARAM_SKILL_DISTANCE, 3)
setConditionParam(hunter, CONDITION_PARAM_SPEED, 10)

local knight = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(knight, CONDITION_PARAM_TICKS, -1)
setConditionParam(knight, CONDITION_PARAM_SKILL_SWORD, 3)
setConditionParam(knight, CONDITION_PARAM_STAT_MAXHEALTH, 75) --- hp

local mage = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(mage, CONDITION_PARAM_TICKS, -1)
setConditionParam(mage, CONDITION_PARAM_STAT_MAGICLEVEL, 3)
setConditionParam(mage, CONDITION_PARAM_STAT_MAXMANA, 100) --- mana

local barbarian = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(barbarian, CONDITION_PARAM_TICKS, -1)
setConditionParam(barbarian, CONDITION_PARAM_SKILL_AXE, 4)
setConditionParam(barbarian, CONDITION_PARAM_STAT_MAXHEALTH, 50) --- hp

local norse = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(norse, CONDITION_PARAM_TICKS, -1)
setConditionParam(norse, CONDITION_PARAM_SKILL_SHIELD, 2)
setConditionParam(norse, CONDITION_PARAM_STAT_MAXHEALTH, 100) --- hp

local nightmare = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(nightmare, CONDITION_PARAM_TICKS, -1)
setConditionParam(nightmare, CONDITION_PARAM_SKILL_SHIELD, 5)
setConditionParam(nightmare, CONDITION_PARAM_STAT_MAXHEALTH, 100) --- hp

local yalaharian = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(yalaharian, CONDITION_PARAM_TICKS, -1)
setConditionParam(yalaharian, CONDITION_PARAM_STAT_MAGICLEVEL, 2)
setConditionParam(yalaharian, CONDITION_PARAM_STAT_MAXHEALTH, 50) --- hp
setConditionParam(yalaharian, CONDITION_PARAM_STAT_MAXMANA, 50) --- mana

local demonhunter = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(demonhunter, CONDITION_PARAM_TICKS, -1)
setConditionParam(demonhunter, CONDITION_PARAM_SKILL_SWORD, 4)
setConditionParam(demonhunter, CONDITION_PARAM_STAT_MAXHEALTH, 150) --- hp
setConditionParam(demonhunter, CONDITION_PARAM_STAT_MAXMANA, 150) -- mana


local brotherhood = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(brotherhood, CONDITION_PARAM_TICKS, -1)
setConditionParam(brotherhood, CONDITION_PARAM_STAT_MAGICLEVEL, 3)
setConditionParam(brotherhood, CONDITION_PARAM_STAT_MAXMANA, 75) -- mana
setConditionParam(brotherhood, CONDITION_PARAM_STAT_MAXHEALTH, 75) --- hp

local hpmana100 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(hpmana100, CONDITION_PARAM_TICKS, -1)
setConditionParam(hpmana100, CONDITION_PARAM_STAT_MAXHEALTH, 100) --- hp
setConditionParam(hpmana100, CONDITION_PARAM_STAT_MAXMANA, 100) --- mana

local hpmana200 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(hpmana200, CONDITION_PARAM_TICKS, -1)
setConditionParam(hpmana200, CONDITION_PARAM_STAT_MAXHEALTH, 200) --- hp
setConditionParam(hpmana200, CONDITION_PARAM_STAT_MAXMANA, 200) --- mana

local mana100 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(mana100, CONDITION_PARAM_TICKS, -1)
setConditionParam(mana100, CONDITION_PARAM_STAT_MAXMANA, 100) --- mana

local mana200 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(mana200, CONDITION_PARAM_TICKS, -1)
setConditionParam(mana200, CONDITION_PARAM_STAT_MAXMANA, 200) --- mana

local hp100 = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(hp100, CONDITION_PARAM_TICKS, -1)
setConditionParam(hp100, CONDITION_PARAM_STAT_MAXHEALTH, 100) --- hp

local speed1 = createConditionObject(CONDITION_HASTE)
setConditionParam(speed1, CONDITION_PARAM_TICKS, -1)
setConditionParam(speed1, CONDITION_PARAM_SPEED, 10)

local speed2 = createConditionObject(CONDITION_HASTE)
setConditionParam(speed2, CONDITION_PARAM_TICKS, -1)
setConditionParam(speed2, CONDITION_PARAM_SPEED, 20)

--- CONDITION_PARAM_STAT_MAXHEALTH, CONDITION_PARAM_STAT_MAXMANA
--- CONDITION_PARAM_BUFF
outfitBonusTable = { --- [] = {condition = , typ = }
   [128] = {condition = {speed1, hp100}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, [136] = {condition = {speed1, hp100}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, --Citizen --[maxHealth = 100]
   [129] = {condition = hunter}, [137] = {condition = hunter}, --Hunter
   [130] = {condition = mana200, typ = CONDITION_ATTRIBUTES}, [138] = {condition = mana200, typ = CONDITION_ATTRIBUTES}, --Mage
   [131] = {condition = knight, typ = CONDITION_ATTRIBUTES}, [139] = {condition = knight, typ = CONDITION_ATTRIBUTES}, --Knight
   [133] = {condition = mana100, typ = CONDITION_ATTRIBUTES}, [141] = {condition = mana100, typ = CONDITION_ATTRIBUTES}, --Summoner -- [maxMana = 100]
   [134] = {condition = knight, typ = CONDITION_ATTRIBUTES}, [142] = {condition = knight, typ = CONDITION_ATTRIBUTES}, --Warrior
   [143] = {condition = barbarian, typ = CONDITION_ATTRIBUTES}, [147] = {condition = barbarian, typ = CONDITION_ATTRIBUTES}, --Barbarian
   [144] = {condition = mage, typ = CONDITION_ATTRIBUTES}, [148] = {condition = mage, typ = CONDITION_ATTRIBUTES}, --Druid
   [145] = {condition = {hpmana100}, typ = CONDITION_ATTRIBUTES}, [149] = {condition = {hpmana100}, typ = CONDITION_ATTRIBUTES}, --Wizard --[maxHealth = 100, maxMana = 100]
   [146] = {condition = {speed1, hpmana200}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, [150] = {condition = {speed1, hpmana200}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, --Oriental --[maxHealth = 200, maxMana = 200]
   [152] = {condition = speed2, typ = CONDITION_HASTE}, [156] = {condition = speed2, typ = CONDITION_HASTE}, --Assassin
   [154] = {condition = mage, typ = CONDITION_ATTRIBUTES}, [158] = {condition = mage, typ = CONDITION_ATTRIBUTES}, --Shaman
   [251] = {condition = norse, typ = CONDITION_ATTRIBUTES}, [252] = {condition = norse, typ = CONDITION_ATTRIBUTES}, --Norse [maxHealth = 200]
   [268] = {condition = nightmare, typ = CONDITION_ATTRIBUTES}, [269] = {condition = nightmare, typ = CONDITION_ATTRIBUTES}, --Nightmare --[maxHealth = 100]
   [270] = {condition = {speed1, hpmana100}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, [273] = {condition = {speed1, hpmana100}, typ = {CONDITION_HASTE, CONDITION_ATTRIBUTES}}, --Jester --[maxHealth = 100, maxMana = 100]
   [278] = {condition = brotherhood, typ = CONDITION_ATTRIBUTES}, [279] = {condition = brotherhood, typ = CONDITION_ATTRIBUTES}, --Brotherhood -- [maxHealth = 200]
   [288] = {condition = speed2, typ = CONDITION_HASTE}, [289] = {condition = speed2, typ = CONDITION_HASTE}, --Demonhunter --[maxHealth = 500, maxMana = 500]
   [324] = {condition = yalaharian, typ = CONDITION_ATTRIBUTES}, [325] = {condition = yalaharian, typ = CONDITION_ATTRIBUTES} --Yalaharian -- [maxHealth = 200, maxMana = 200]
}

function onLogin(cid)
   registerCreatureEvent(cid, "Addons")
   --- local current = getCreatureOutfit(cid)
   return onOutfit(cid, {lookAddons = 1}, getCreatureOutfit(cid)) and true
end

function onOutfit(cid, old, current)
   if getPlayerAccess(cid) >= 7 then
      return print("Staff/support can't get any addon bonus!") and true
   end
   if old.lookAddons == 3 and outfitBonusTable[old.lookType] then --Bonus off
      if (outfitBonusTable[old.lookType]).typ ~= nil then
         if type((outfitBonusTable[old.lookType]).typ) == "table" then
            for _, value in pairs((outfitBonusTable[old.lookType]).typ) do
               doRemoveCondition(cid, value)
            end
         else
            doRemoveCondition(cid, (outfitBonusTable[old.lookType]).typ)
         end
      end
   end
   if current.lookAddons == 3 and outfitBonusTable[current.lookType] then --Bonus on
      if (outfitBonusTable[current.lookType]).condition ~= nil then
         if type((outfitBonusTable[current.lookType]).condition) == "table" then
            for _, value in pairs((outfitBonusTable[current.lookType]).condition) do
               doAddCondition(cid, value)
            end
         else
            doAddCondition(cid, (outfitBonusTable[current.lookType]).condition)
         end
      end
   end
   return true
end
 
use this:
Data/xml/outfits.xml

Code:
<?xml version="1.0"?>
<outfits>
    <outfit id="1">
        <list gender="0" lookType="136" name="Citizen">
        <attribute speed="5"/>
        <stats maxHealth="100"/>
            </list>
        <list gender="1" lookType="128" name="Citizen">
        <attribute speed="5"/>
        <stats maxHealth="100"/>
            </list>
    </outfit>
    <outfit id="2">
        <list gender="0" lookType="137" name="Hunter">
        <skills dist="3"/>
        </list>
        <list gender="1" lookType="129" name="Hunter">
        <skills dist="3"/>
        </list>
    </outfit>
    <outfit id="3">
        <list gender="0" lookType="138" name="Mage">
        <stats magLevel="2"/>
        <stats maxMana="200"/>
        </list>
        <list gender="1" lookType="130" name="Mage">
        <stats magLevel="2"/>
        <stats maxMana="200"/>
        </list>
    </outfit>
    <outfit id="4">
        <list gender="0" lookType="139" name="Knight">
        <skills sword="3"/>
        </list>
        <list gender="1" lookType="131" name="Knight">
        <skills sword="3"/>
        </list>
    </outfit>
    <outfit id="5" premium="yes">
        <list gender="0" lookType="140" name="Noblewoman">
        <skills club="3"/>
        </list>
        <list gender="1" lookType="132" name="Nobleman">
        <skills club="3"/>
        </list>
    </outfit>
    <outfit id="6" premium="yes">
        <list gender="0" lookType="141" name="Summoner">
        <stats magLevel="2"/>
        <stats maxMana="100"/>
        </list>
        <list gender="1" lookType="133" name="Summoner">
        <stats magLevel="2"/>
        <stats maxMana="100"/>
        </list>
    </outfit>
    <outfit id="7" premium="yes">
        <list gender="0" lookType="142" name="Warrior">
        <skills sword="3"/>
        </list>
        <list gender="1" lookType="134" name="Warrior">
        <skills sword="3"/>
        </list>
    </outfit>
    <outfit id="8" premium="yes">
        <list gender="0" lookType="147" name="Barbarian">
        <skills axe="3"/>
        </list>
        <list gender="1" lookType="143" name="Barbarian">
        <skills axe="3"/>
        </list>
    </outfit>
    <outfit id="9" premium="yes">
        <list gender="0" lookType="148" name="Druid">
        <stats magLevel="2"/>
        </list>
        <list gender="1" lookType="144" name="Druid">
        <stats magLevel="2"/>
        </list>
    </outfit>
    <outfit id="10" premium="yes">
        <list gender="0" lookType="149" name="Wizard">
        <stats magLevel="1"/>
        <stats maxMana="100"/>
        </list>
        <list gender="1" lookType="145" name="Wizard">
        <stats magLevel="1"/>
        <stats maxMana="100"/>
        </list>
    </outfit>
    <outfit id="11" premium="yes">
        <list gender="0" lookType="150" name="Oriental">
        <attribute speed="5"/>
        <stats maxHealth="200"/>
        <stats maxMana="200"/>
            </list>
        <list gender="1" lookType="146" name="Oriental">
        <attribute speed="5"/>
        <stats maxHealth="200"/>
        <stats maxMana="200"/>
            </list>
    </outfit>
    <outfit id="12" premium="yes">
        <list gender="0" lookType="155" name="Pirate">
        <stats maxHealth="100"/>
        <skills club="3"/>
        </list>
        <list gender="1" lookType="151" name="Pirate">
        <stats maxHealth="100"/>
        <skills club="3"/>
        </list>
    </outfit>
    <outfit id="13" premium="yes" >
        <list gender="0" lookType="156" name="Assassin">
        <attribute speed="5"/>
        <skills dist="2"/>
            </list>
        <list gender="1" lookType="152" name="Assassin">
        <attribute speed="5"/>
        <skills dist="2"/>
            </list>
    </outfit>
    <outfit id="14" premium="yes" >
        <list gender="0" lookType="157" name="Beggar">
        <stats maxHealth="200"/>
        </list>
        <list gender="1" lookType="153" name="Beggar">
        <stats maxHealth="200"/>
        </list>
    </outfit>
    <outfit id="15" premium="yes" >
        <list gender="0" lookType="158" name="Shaman">
        <stats magLevel="2"/>
        </list>
        <list gender="1" lookType="154" name="Shaman">
        <stats magLevel="2"/>
        </list>
    </outfit>
    <outfit id="16" premium="yes" >
        <list gender="0" lookType="252" name="Norsewoman">
        <skills shielding="2"/>
        <stats maxHealth="200"/>
        </list>
        <list gender="1" lookType="251" name="Norseman">
        <skills shielding="2"/>
        <stats maxHealth="200"/>
        </list>
    </outfit>
    <outfit id="17" premium="yes" >
        <list gender="0" lookType="269" name="Nightmare">
        <skills shielding="3"/>
        </list>
        <list gender="1" lookType="268" name="Nightmare">
        <skills shielding="3"/>
        </list>
    </outfit>
    <outfit id="18" premium="yes">
        <list gender="0" lookType="270" name="Jester">
        <stats maxMana="100"/>
        <attribute speed="5"/>
        <stats maxHealth="100"/>
        </list>
        <list gender="1" lookType="273" name="Jester">
        <stats maxMana="100"/>
        <attribute speed="5"/>
        <stats maxHealth="100"/>
        </list>
    </outfit>
    <outfit id="19" premium="yes">
        <list gender="0" lookType="279" name="Brotherhood">
        <stats magLevel="2"/>
        <stats maxHealth="100"/>
        </list>
        <list gender="1" lookType="278" name="Brotherhood">
        <stats magLevel="2"/>
        <stats maxHealth="100"/>
        </list>
    </outfit>
    <outfit id="20" premium="yes" >
        <list gender="0" lookType="288" name="Demonhunter">
        <attribute speed="10"/>
        <stats maxHealth="200"/>
        </list>
        <list gender="1" lookType="289" name="Demonhunter">
        <attribute speed="10"/>
        <stats maxHealth="200"/>
        </list>
    </outfit>
    <outfit id="21" premium="yes" >
        <list gender="0" lookType="324" name="Yalaharian">
        <attribute speed="5"/>
        <stats magLevel="2"/>
        </list>
        <list gender="1" lookType="325" name="Yalaharian">
        <attribute speed="5"/>
        <stats magLevel="2"/>
        </list>
    </outfit>
    <outfit id="22" premium="yes">
        <list gender="0" lookType="336" name="Warmaster">
        <stats maxMana="100"/>
        <attribute speed="15"/>
        <stats maxHealth="100"/>
        <stats magLevel="2"/>
        </list>
        <list gender="1" lookType="335" name="Warmaster">
        <stats maxMana="100"/>
        <attribute speed="15"/>
        <stats maxHealth="100"/>
        <stats magLevel="2"/>
        </list>
    </outfit>
    <outfit id="23" premium="yes">
        <list gender="0" lookType="366" name="Wayfarer"/>
        <list gender="1" lookType="367" name="Wayfarer"/>
    </outfit>
    <outfit id="24" premium="yes" >
        <list gender="0" lookType="329" name="Wedding"/>
        <list gender="1" lookType="328" name="Wedding"/>
    </outfit>
    <outfit id="25" access="5" premium="yes">
        <list gender="0-3" lookType="12" name="Archdemon"/>
    </outfit>
    <outfit id="26" access="5" premium="yes">
        <list gender="0-3" lookType="159" name="Elf"/>
    </outfit>
    <outfit id="27" access="5" premium="yes">
        <list gender="0-3" lookType="160" name="Dwarf"/>
    </outfit>
    <outfit id="28" access="5" premium="yes">
        <list gender="0-3" lookType="226" name="Frog"/>
    </outfit>
    <outfit id="29" access="5" premium="yes">
        <list gender="0-3" lookType="194" name="Cult"/>
    </outfit>
    <outfit id="30" access="5" premium="yes">
        <list gender="0-3" lookType="253" name="Headsplitter"/>
    </outfit>
    <outfit id="31" access="5" premium="yes">
        <list gender="0-3" lookType="254" name="Skullhunter"/>
    </outfit>
    <outfit id="32" access="5" premium="yes">
        <list gender="0-3" lookType="255" name="Bloodwalker"/>
    </outfit>
    <outfit id="33" access="5" premium="yes">
        <list gender="0-3" lookType="264" name="Brutetamer"/>
    </outfit>
    <outfit id="34" access="3" premium="yes">
        <list gender="0-3" lookType="75" name="Gamemaster"/>
    </outfit>
    <outfit id="35" access="4" premium="yes">
        <list gender="0-3" lookType="266" name="Community Manager"/>
    </outfit>
    <outfit id="36" access="5" premium="yes">
        <list gender="0-3" lookType="302" name="God"/>
    </outfit>
</outfits>

Effects:
http://pastebin.com/TAwk8BYc
 
The data/xml/outfits ones gave me errors.


use this:
Data/xml/outfits.xml

Code:
<?xml version="1.0"?>
<outfits>
    <outfit id="1">
        <list gender="0" lookType="136" name="Citizen">
        <attribute speed="5"/>
        <stats maxHealth="100"/>
            </list>
        <list gender="1" lookType="128" name="Citizen">
        <attribute speed="5"/>
        <stats maxHealth="100"/>
            </list>
    </outfit>
    <outfit id="2">
        <list gender="0" lookType="137" name="Hunter">
        <skills dist="3"/>
        </list>
        <list gender="1" lookType="129" name="Hunter">
        <skills dist="3"/>
        </list>
    </outfit>
    <outfit id="3">
        <list gender="0" lookType="138" name="Mage">
        <stats magLevel="2"/>
        <stats maxMana="200"/>
        </list>
        <list gender="1" lookType="130" name="Mage">
        <stats magLevel="2"/>
        <stats maxMana="200"/>
        </list>
    </outfit>
    <outfit id="4">
        <list gender="0" lookType="139" name="Knight">
        <skills sword="3"/>
        </list>
        <list gender="1" lookType="131" name="Knight">
        <skills sword="3"/>
        </list>
    </outfit>
    <outfit id="5" premium="yes">
        <list gender="0" lookType="140" name="Noblewoman">
        <skills club="3"/>
        </list>
        <list gender="1" lookType="132" name="Nobleman">
        <skills club="3"/>
        </list>
    </outfit>
    <outfit id="6" premium="yes">
        <list gender="0" lookType="141" name="Summoner">
        <stats magLevel="2"/>
        <stats maxMana="100"/>
        </list>
        <list gender="1" lookType="133" name="Summoner">
        <stats magLevel="2"/>
        <stats maxMana="100"/>
        </list>
    </outfit>
    <outfit id="7" premium="yes">
        <list gender="0" lookType="142" name="Warrior">
        <skills sword="3"/>
        </list>
        <list gender="1" lookType="134" name="Warrior">
        <skills sword="3"/>
        </list>
    </outfit>
    <outfit id="8" premium="yes">
        <list gender="0" lookType="147" name="Barbarian">
        <skills axe="3"/>
        </list>
        <list gender="1" lookType="143" name="Barbarian">
        <skills axe="3"/>
        </list>
    </outfit>
    <outfit id="9" premium="yes">
        <list gender="0" lookType="148" name="Druid">
        <stats magLevel="2"/>
        </list>
        <list gender="1" lookType="144" name="Druid">
        <stats magLevel="2"/>
        </list>
    </outfit>
    <outfit id="10" premium="yes">
        <list gender="0" lookType="149" name="Wizard">
        <stats magLevel="1"/>
        <stats maxMana="100"/>
        </list>
        <list gender="1" lookType="145" name="Wizard">
        <stats magLevel="1"/>
        <stats maxMana="100"/>
        </list>
    </outfit>
    <outfit id="11" premium="yes">
        <list gender="0" lookType="150" name="Oriental">
        <attribute speed="5"/>
        <stats maxHealth="200"/>
        <stats maxMana="200"/>
            </list>
        <list gender="1" lookType="146" name="Oriental">
        <attribute speed="5"/>
        <stats maxHealth="200"/>
        <stats maxMana="200"/>
            </list>
    </outfit>
    <outfit id="12" premium="yes">
        <list gender="0" lookType="155" name="Pirate">
        <stats maxHealth="100"/>
        <skills club="3"/>
        </list>
        <list gender="1" lookType="151" name="Pirate">
        <stats maxHealth="100"/>
        <skills club="3"/>
        </list>
    </outfit>
    <outfit id="13" premium="yes" >
        <list gender="0" lookType="156" name="Assassin">
        <attribute speed="5"/>
        <skills dist="2"/>
            </list>
        <list gender="1" lookType="152" name="Assassin">
        <attribute speed="5"/>
        <skills dist="2"/>
            </list>
    </outfit>
    <outfit id="14" premium="yes" >
        <list gender="0" lookType="157" name="Beggar">
        <stats maxHealth="200"/>
        </list>
        <list gender="1" lookType="153" name="Beggar">
        <stats maxHealth="200"/>
        </list>
    </outfit>
    <outfit id="15" premium="yes" >
        <list gender="0" lookType="158" name="Shaman">
        <stats magLevel="2"/>
        </list>
        <list gender="1" lookType="154" name="Shaman">
        <stats magLevel="2"/>
        </list>
    </outfit>
    <outfit id="16" premium="yes" >
        <list gender="0" lookType="252" name="Norsewoman">
        <skills shielding="2"/>
        <stats maxHealth="200"/>
        </list>
        <list gender="1" lookType="251" name="Norseman">
        <skills shielding="2"/>
        <stats maxHealth="200"/>
        </list>
    </outfit>
    <outfit id="17" premium="yes" >
        <list gender="0" lookType="269" name="Nightmare">
        <skills shielding="3"/>
        </list>
        <list gender="1" lookType="268" name="Nightmare">
        <skills shielding="3"/>
        </list>
    </outfit>
    <outfit id="18" premium="yes">
        <list gender="0" lookType="270" name="Jester">
        <stats maxMana="100"/>
        <attribute speed="5"/>
        <stats maxHealth="100"/>
        </list>
        <list gender="1" lookType="273" name="Jester">
        <stats maxMana="100"/>
        <attribute speed="5"/>
        <stats maxHealth="100"/>
        </list>
    </outfit>
    <outfit id="19" premium="yes">
        <list gender="0" lookType="279" name="Brotherhood">
        <stats magLevel="2"/>
        <stats maxHealth="100"/>
        </list>
        <list gender="1" lookType="278" name="Brotherhood">
        <stats magLevel="2"/>
        <stats maxHealth="100"/>
        </list>
    </outfit>
    <outfit id="20" premium="yes" >
        <list gender="0" lookType="288" name="Demonhunter">
        <attribute speed="10"/>
        <stats maxHealth="200"/>
        </list>
        <list gender="1" lookType="289" name="Demonhunter">
        <attribute speed="10"/>
        <stats maxHealth="200"/>
        </list>
    </outfit>
    <outfit id="21" premium="yes" >
        <list gender="0" lookType="324" name="Yalaharian">
        <attribute speed="5"/>
        <stats magLevel="2"/>
        </list>
        <list gender="1" lookType="325" name="Yalaharian">
        <attribute speed="5"/>
        <stats magLevel="2"/>
        </list>
    </outfit>
    <outfit id="22" premium="yes">
        <list gender="0" lookType="336" name="Warmaster">
        <stats maxMana="100"/>
        <attribute speed="15"/>
        <stats maxHealth="100"/>
        <stats magLevel="2"/>
        </list>
        <list gender="1" lookType="335" name="Warmaster">
        <stats maxMana="100"/>
        <attribute speed="15"/>
        <stats maxHealth="100"/>
        <stats magLevel="2"/>
        </list>
    </outfit>
    <outfit id="23" premium="yes">
        <list gender="0" lookType="366" name="Wayfarer"/>
        <list gender="1" lookType="367" name="Wayfarer"/>
    </outfit>
    <outfit id="24" premium="yes" >
        <list gender="0" lookType="329" name="Wedding"/>
        <list gender="1" lookType="328" name="Wedding"/>
    </outfit>
    <outfit id="25" access="5" premium="yes">
        <list gender="0-3" lookType="12" name="Archdemon"/>
    </outfit>
    <outfit id="26" access="5" premium="yes">
        <list gender="0-3" lookType="159" name="Elf"/>
    </outfit>
    <outfit id="27" access="5" premium="yes">
        <list gender="0-3" lookType="160" name="Dwarf"/>
    </outfit>
    <outfit id="28" access="5" premium="yes">
        <list gender="0-3" lookType="226" name="Frog"/>
    </outfit>
    <outfit id="29" access="5" premium="yes">
        <list gender="0-3" lookType="194" name="Cult"/>
    </outfit>
    <outfit id="30" access="5" premium="yes">
        <list gender="0-3" lookType="253" name="Headsplitter"/>
    </outfit>
    <outfit id="31" access="5" premium="yes">
        <list gender="0-3" lookType="254" name="Skullhunter"/>
    </outfit>
    <outfit id="32" access="5" premium="yes">
        <list gender="0-3" lookType="255" name="Bloodwalker"/>
    </outfit>
    <outfit id="33" access="5" premium="yes">
        <list gender="0-3" lookType="264" name="Brutetamer"/>
    </outfit>
    <outfit id="34" access="3" premium="yes">
        <list gender="0-3" lookType="75" name="Gamemaster"/>
    </outfit>
    <outfit id="35" access="4" premium="yes">
        <list gender="0-3" lookType="266" name="Community Manager"/>
    </outfit>
    <outfit id="36" access="5" premium="yes">
        <list gender="0-3" lookType="302" name="God"/>
    </outfit>
</outfits>

Effects:
http://pastebin.com/TAwk8BYc
 
Do I just edit Outfits.xml and itll work or do I change creaturescripts.xml to "Outfits.xml" instead of .LUA?
 
For absorbing energy, would it be
" <stats absorbpercentEnergy="5"/>"
or
" <stats absorbEnergy="5"/> "

Same with reflect?

<stats reflectPercentEnergy="5"/> or <stats reflectEnergy="5"/>
 
Man I only got in working with CONDITION_PARAM_STAT_MAGICLEVELPERCENT , which will increase magic level by an "x" percent just change :

setConditionParam(mage, CONDITION_PARAM_STAT_MAGICLEVEL, 3)

for this one:

setConditionParam(mage, CONDITION_PARAM_STAT_MAGICLEVELPERCENT , 110)

110 means 100 percent of your magic level Plus 10% i.e. if you have 70 magic level the 10% is 7 so the player will get 77 magic level points:)!

if you want 20 % just change it to 120, or 130 if you want 30% , etc ,etc ,etc.
 
Last edited:
This thread is old, but maybe I'll help others who are searching for the same solution.

So, there are some servers that the condition to improve magic level by quantities it is named differently. So for example in the case of Tfs 0.2.15 Mystic Sipirit, this condition is called CONDITION_PARAM_STAT_MAGICPOINTS.

If neither conditions work for you, try looking carefully in global.lua or constant.lua the name of the function.
 
Back
Top