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

i need a spell that adds addon

jayray

New Member
Joined
Oct 9, 2010
Messages
92
Reaction score
0
Location
TX, USA
i already have a spell that changes the player's outfit (ex: player turns into werewolf). But i think what i really need is a spell that changes the addons for a player. So when spell 1 is cast, the player will have addon 1 for a few minutes. And when player casts spell 2, addon 2 is worn for a few minutes.

is this at all possible?
 
no tested!
Lua:
local wolf = {lookType = 52}
local rotworm = {lookType = 26}


local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)

	local outfit = createConditionObject(CONDITION_OUTFIT)
	setConditionParam(outfit, CONDITION_PARAM_TICKS, time)
	if ...that what you will then
		addOutfitCondition(outfit, wolf)
	else
		addOutfitCondition(outfit, rotworm)
	end
	setCombatCondition(combat, outfit)

	return doCombat(cid, combat, var)
end
 
Lua:
local looktype = 141
local addons = 3 --{1 = first addon, 2 = second addon, 3 = both addons}

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
    doPlayerAddOutfit(cid, looktype, addons)
    return true
end
 
andypsylon's script will give you the outfit of whatever (basically like a costume box or utevo res ina)
The one I made will give you the addon available to use whenever you use the 'Set Outfit' window.
 
Back
Top