• 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!

Utito Tempo doesn't work with Addon Bonus

Vendeliko

Banned User
Joined
Dec 3, 2011
Messages
3,087
Reaction score
93
Location
Beside that guy with that thing but without that t
Hi,I have this problem that when someone is wearing any full outfit they get a bonus for wearing it but when a knight or paladin types in 'utito tempo' or 'utito tempo san' when wearing a full outfit he doesn't get the skills for the spell.Can anyone please help me solve it?

This is the script
Code:
local hunter = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(hunter, CONDITION_PARAM_TICKS, -1)
setConditionParam(hunter, CONDITION_PARAM_SKILL_DISTANCE, 3)
 
local knight = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(knight, CONDITION_PARAM_TICKS, -1)
setConditionParam(knight, CONDITION_PARAM_SKILL_SWORD, 3)
 
local mage = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(mage, CONDITION_PARAM_TICKS, -1)
setConditionParam(mage, CONDITION_PARAM_STAT_MAGICLEVEL, 2)
 
local barbarian = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(barbarian, CONDITION_PARAM_TICKS, -1)
setConditionParam(barbarian, CONDITION_PARAM_SKILL_AXE, 3)
 
local norse = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(norse, CONDITION_PARAM_TICKS, -1)
setConditionParam(norse, CONDITION_PARAM_SKILL_SHIELD, 2)
setConditionParam(norse, CONDITION_PARAM_STAT_MAXHEALTH, 200) --- hp
 
local nightmare = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(nightmare, CONDITION_PARAM_TICKS, -1)
setConditionParam(nightmare, CONDITION_PARAM_SKILL_SHIELD, 3)
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, 200) --- hp
setConditionParam(yalaharian, CONDITION_PARAM_STAT_MAXMANA, 200) --- mana
 
local demonhunter = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(demonhunter, CONDITION_PARAM_TICKS, -1)
setConditionParam(demonhunter, CONDITION_PARAM_STAT_MAXHEALTH, 500) --- hp
setConditionParam(demonhunter, CONDITION_PARAM_STAT_MAXMANA, 500) -- mana
 
local brotherhood = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(brotherhood, CONDITION_PARAM_TICKS, -1)
setConditionParam(brotherhood, CONDITION_PARAM_STAT_MAXHEALTH, 200) --- 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) >= 3 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

Thanks in advance,
Vendeliko.
 
Its because addon bonus gives bonus attributes and its the same for the utito tempo, but it still can be fixed

Try this easy addon bonus and change the bonuses

XML:
<?xml version="1.0"?>
<outfits>
	<outfit id="1">
		<list gender="0" lookType="136" name="Citizen">
			<stats maxHealth="50"/>
			<stats speed="30"/>
			</list>
		<list gender="1" lookType="128" name="Citizen">
			<stats maxHealth="50"/>
			</list>
	</outfit>

	<outfit id="2">
		<list gender="0" lookType="137" name="Hunter">
			<skills distance="2"/>
			</list>
		<list gender="1" lookType="129" name="Hunter">
			<skills distance="2"/>
			</list>
	</outfit>

	<outfit id="3">
		<list gender="0" lookType="138" name="Mage">
			<stats magLevel="2"/>
			<stats maxMana="150"/>
			</list>
		<list gender="1" lookType="130" name="Mage">
			<stats magLevel="2"/>
			<stats maxMana="150"/>
			</list>
	</outfit>

	<outfit id="4">
		<list gender="0" lookType="139" name="Knight">
			<skills sword="2"/>
			<skills axe="2"/>
			<skills club="2"/>
			<stats maxHealth="150"/>
			</list>
		<list gender="1" lookType="131" name="Knight">
			<skills sword="2"/>
			<skills axe="2"/>
			<skills club="2"/>
			<stats maxHealth="150"/>
			</list>
	</outfit>

	<outfit id="5" premium="yes">
		<list gender="0" lookType="140" name="Noblewoman">
			<stats maxHealth="80"/>
			</list>
		<list gender="1" lookType="132" name="Nobleman">
			<stats maxHealth="80"/>
			</list>
	</outfit>

	<outfit id="6" premium="yes">
		<list gender="0" lookType="141" name="Summoner">
			<stats magLevel="3"/>
			<stats maxMana="100"/>
			</list>
		<list gender="1" lookType="133" name="Summoner">
			<stats magLevel="3"/>
			<stats maxMana="100"/>
			</list>
	</outfit>

	<outfit id="7" premium="yes">
		<list gender="0" lookType="142" name="Warrior">
			<skills sword="4"/>
			</list>
		<list gender="1" lookType="134" name="Warrior">
			<skills sword="4"/>
			</list>
	</outfit>

	<outfit id="8" premium="yes">
		<list gender="0" lookType="147" name="Barbarian">
			<skills axe="4"/>
			</list>
		<list gender="1" lookType="143" name="Barbarian">
			<skills axe="4"/>
			</list>
	</outfit>

	<outfit id="9" premium="yes">
		<list gender="0" lookType="148" name="Druid">
			<stats magLevel="3"/>
			</list>
		<list gender="1" lookType="144" name="Druid">
			<stats magLevel="3"/>
			</list>
	</outfit>

	<outfit id="10" premium="yes">
		<list gender="0" lookType="149" name="Wizard">
			<stats magLevel="2"/>
			<stats maxMana="120"/>
			</list>
		<list gender="1" lookType="145" name="Wizard">
			<stats magLevel="2"/>
			<stats maxMana="120"/>
			</list>
	</outfit>

	<outfit id="11" premium="yes">
		<list gender="0" lookType="150" name="Oriental">
			<stats maxHealth="200"/>
			</list>
		<list gender="1" lookType="146" name="Oriental">
			<stats maxHealth="200"/>
			</list>
	</outfit>

	<outfit id="12" premium="yes">
		<list gender="0" lookType="155" name="Pirate">
			<skills axe="3"/>
			<skills sword="3"/>
			<skills club="3"/>
			</list>
		<list gender="1" lookType="151" name="Pirate">
			<skills axe="3"/>
			<skills sword="3"/>
			<skills club="3"/>
			</list>
	</outfit>

	<outfit id="13" premium="yes">
		<list gender="0" lookType="156" name="Assassin">
			<stats maxHealth="200"/>
			<stats maxMana="100"/>
			<skills distance="3"/>
			<stats speed="30"/>
			</list>
		<list gender="1" lookType="152" name="Assassin">
			<skills distance="3"/>
			<stats maxMana="100"/>
			<stats maxHealth="200"/>
			<stats speed="30"/>
			</list>
	</outfit>

	<outfit id="14" premium="yes">
		<list gender="0" lookType="157" name="Beggar">
			<skills club="4"/>
			</list>
		<list gender="1" lookType="153" name="Beggar">
			<skills club="4"/>
			</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">
			<stats maxHealth="150"/>
			<skills shield="2"/>
			</list>
		<list gender="1" lookType="251" name="Norseman">
			<stats maxHealth="150"/>
			<skills shield="2"/>
			</list>
	</outfit>

	<outfit id="17" premium="yes">
		<list gender="0" lookType="269" name="Nightmare">
			<stats maxHealth="200"/>
			<stats maxMana="100"/>
			<skills shield="5"/>
			<skills axe="1"/>
			<skills sword="1"/>
			<skills club="1"/>
			<stats speed="20"/>
			</list>
		<list gender="1" lookType="268" name="Nightmare">
			<stats maxHealth="200"/>
			<stats maxMana="100"/>
			<skills shield="5"/>
			<skills axe="1"/>
			<skills sword="1"/>
			<skills club="1"/>
			<stats speed="20"/>
			</list>
	</outfit>

	<outfit id="18" premium="yes">
		<list gender="0" lookType="270" name="Jester">
			<stats magLevel="3"/>
			</list>
		<list gender="1" lookType="273" name="Jester">
			<stats magLevel="3"/>
			</list>
	</outfit>

	<outfit id="19" premium="yes">
		<list gender="0" lookType="279" name="Brotherhood">
			<stats magLevel="2"/>
			<stats maxHealth="250"/>
			<stats maxMana="100"/>
			</list>
		<list gender="1" lookType="278" name="Brotherhood">
			<stats magLevel="2"/>
			<stats maxHealth="250"/>
			<stats maxMana="100"/>
			</list>
	</outfit>

	<outfit id="20" premium="yes">
		<list gender="0" lookType="288" name="Demonhunter">
			<stats maxHealth="300"/>
			<skills axe="3"/>
			<skills sword="3"/>
			<skills club="3"/>
			</list>
		<list gender="1" lookType="289" name="Demonhunter">
			<stats maxHealth="300"/>
			<skills axe="3"/>
			<skills sword="3"/>
			<skills club="3"/>
			</list>
	</outfit>

	<outfit id="21" premium="yes">
		<list gender="0" lookType="324" name="Yalaharian">
			<stats magLevel="3"/>
			<stats maxHealth="125"/>
			<stats maxMana="200"/>
			</list>
		<list gender="1" lookType="325" name="Yalaharian">
			<stats magLevel="3"/>
			<stats maxHealth="125"/>
			<stats maxMana="200"/>
			</list>
	</outfit>

	<outfit id="22" premium="yes">
		<list gender="0" lookType="336" name="Warmaster">
			<stats maxHealth="250"/>
			<skills shield="3"/>
			</list>
		<list gender="1" lookType="335" name="Warmaster">
			<stats maxHealth="250"/>
			<skills shield="3"/>
			</list>
	</outfit>

	<outfit id="23" premium="yes">
		<list gender="0" lookType="329" name="Wedding">
			<skills shield="5"/>
			</list>
		<list gender="1" lookType="328" name="Wedding">
			<skills shield="5"/>
			</list>
	</outfit>
	
	<outfit id="24" premium="yes">
		<list gender="0" lookType="366" name="Wayfarer">
			<stats maxHealth="250"/>
			<stats maxMana="250"/>
		</list>
		<list gender="1" lookType="367" name="Wayfarer">
			<stats maxHealth="250"/>
			<stats maxMana="250"/>
		</list>
    </outfit>

	<outfit id="28" access="3" premium="yes">
		<list gender="0-3" lookType="75" name="Gamemaster"/>
	</outfit>

	<outfit id="29" access="4" premium="yes">
		<list gender="0-3" lookType="266" name="Community Manager"/>
	</outfit>

	<outfit id="30" access="5" premium="yes">
		<list gender="0-3" lookType="302" name="Admin"/>
	</outfit>
</outfits>
<< make this ur outfits.xml ;)
 
Back
Top