• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Outfit Change

psychosisneamia

~Beginner~
Joined
Jun 7, 2012
Messages
162
Reaction score
7
Is there a way to make an item that when clicked on it says "Changed" and changes a player outfit to a monster outfit example Outfit 9

Then when clicked on the item again it sends the outfit back to normal?

I don't know if you can use it something with these functions

doRemoveCondition(cid,CONDITION_OUTFIT)
doAddCondition(cid, Condition)

then add when they have the outfit to have a speed advantage something like

doAddCondition(cid,Speed)
 
I have a new question, I want to add an outfit 254 in to my game, I don't want players to have it free so I can't add it into outfit.xml is there a way to make it so they have to have an NPC give them the correct storage and thenit is added to their outfit selection? That way they can change their outfit colors?

Also this is the script for the outfit item if anyone wants it: (

Code:
local duration = 9999999 --Length outfit lasts
local monsters = {"Swordsman"}


function onUse(cid, item, fromPosition, itemEx, toPosition)
doSetMonsterOutfit(cid,monsters[math.random(#monsters)],duration*1000)
doPlayerSendTextMessage(cid, 20, 'You have changed into Swordsman Outfit!') 
return true
end
 
in outfits.xml put quest="storage" , need this storage to have this outfit/addon, etc..
 
Back
Top