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

Lua New Outfit by Quest

matthewbro

New Member
Joined
Jun 11, 2011
Messages
10
Reaction score
0
Hello, i am trying to add new outfits (looktype from monsters) to my 8.6 otserv (forgotten server 0.4).

actions.xml:
<action uniqueid="1216" event="script" value="vipoutfit/sorcerer.lua"/>
<action uniqueid="1229" event="script" value="vipoutfit/pally.lua"/>
<action uniqueid="1213" event="script" value="vipoutfit/knight.lua"/>
<action uniqueid="1215" event="script" value="vipoutfit/druid.lua"/>

sorcerer.lua: (exemple, all of them are almost the same)

function onUse(cid, item, fromPosition, itemEx, toPosition)
if (getPlayerStorageValue(cid, 12216) == EMPTY_STORAGE) then
doCreatureSay(cid, "You have gained your new outfit and may leave the reward room now!", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 12216, 1)
doPlayerAddOutfit(cid,57, 0)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYDAMAGE)
else
doPlayerSendTextMessage(cid,22,"You have already gained your new outfit. You may leave the room now.")
end
return true
end

outfits.xml

<?xml version="1.0"?>
<outfits>
<outfit id="1">
<list gender="0" lookType="136" name="Citizen">
<attribute speed="10"/>
<stats maxHealth="200"/>
</list>
<list gender="1" lookType="128" name="Citizen">
<attribute speed="10"/>
<stats maxHealth="200"/>
</list>
</outfit>

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

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

<outfit id="4">
<list gender="0" lookType="139" name="Knight">
<skills sword="4"/>
</list>
<list gender="1" lookType="131" name="Knight">
<skills sword="4"/>
</list>
</outfit>

<outfit id="5" premium="yes">
<list gender="0" lookType="140" name="Noblewoman">
<skills club="4"/>
</list>
<list gender="1" lookType="132" name="Nobleman">
<skills club="4"/>
</list>
</outfit>

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

<outfit id="7" premium="yes">
<list gender="0" lookType="142" name="Warrior">
<skills sword="5"/>
</list>
<list gender="1" lookType="134" name="Warrior">
<skills sword="5"/>
</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="4"/>
<stats maxMana="50"/>
</list>
<list gender="1" lookType="145" name="Wizard">
<stats magLevel="4"/>
<stats maxMana="50"/>
</list>
</outfit>

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

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

<outfit id="13" premium="yes" >
<list gender="0" lookType="156" name="Assassin">
<attribute speed="10"/>
<skills dist="3"/>
</list>
<list gender="1" lookType="152" name="Assassin">
<attribute speed="10"/>
<skills dist="3"/>
</list>
</outfit>

<outfit id="14" premium="yes" >
<list gender="0" lookType="157" name="Beggar">
<stats maxHealth="300"/>
</list>
<list gender="1" lookType="153" name="Beggar">
<stats maxHealth="300"/>
</list>
</outfit>

<outfit id="15" premium="yes" >
<list gender="0" lookType="158" name="Shaman">
<stats magLevel="5"/>
</list>
<list gender="1" lookType="154" name="Shaman">
<stats magLevel="5"/>
</list>
</outfit>

<outfit id="16" premium="yes" >
<list gender="0" lookType="252" name="Norsewoman">
<skills shielding="4"/>
<stats maxHealth="30"/>
</list>
<list gender="1" lookType="251" name="Norseman">
<skills shielding="4"/>
<stats maxHealth="30"/>
</list>
</outfit>

<outfit id="17" premium="yes" >
<list gender="0" lookType="269" name="Nightmare">
<skills shielding="5"/>
</list>
<list gender="1" lookType="268" name="Nightmare">
<skills shielding="5"/>
</list>
</outfit>

<outfit id="18" premium="yes">
<list gender="0" lookType="270" name="Jester">
<stats maxMana="100"/>
<attribute speed="6"/>
<stats maxHealth="100"/>
</list>
<list gender="1" lookType="273" name="Jester">
<stats maxMana="100"/>
<attribute speed="6"/>
<stats maxHealth="100"/>
</list>
</outfit>

<outfit id="19" premium="yes">
<list gender="0" lookType="279" name="Brotherhood">
<reflect percentAll="25"/>
<stats magLevel="4"/>
<stats maxHealth="150"/>
</list>
<list gender="1" lookType="278" name="Brotherhood">
<reflect percentAll="25"/>
<stats magLevel="4"/>
<stats maxHealth="150"/>
</list>
</outfit>

<outfit id="20" premium="yes" >
<list gender="0" lookType="288" name="Demonhunter">
<attribute speed="20"/>
<stats maxHealth="200"/>
</list>
<list gender="1" lookType="289" name="Demonhunter">
<attribute speed="20"/>
<stats maxHealth="200"/>
</list>
</outfit>

<outfit id="21" premium="yes" >
<list gender="0" lookType="324" name="Yalaharian">
<attribute speed="10"/>
<stats magLevel="4"/>
</list>
<list gender="1" lookType="325" name="Yalaharian">
<attribute speed="10"/>
<stats magLevel="4"/>
</list>
</outfit>

<outfit id="22" premium="yes">
<list gender="0" lookType="336" name="Warmaster">
<stats maxMana="150"/>
<attribute speed="20"/>
<stats maxHealth="150"/>
<stats magLevel="3"/>
</list>
<list gender="1" lookType="335" name="Warmaster">
<stats maxMana="150"/>
<attribute speed="20"/>
<stats maxHealth="150"/>
<stats magLevel="3"/>
</list>
</outfit>

<outfit id="37" premium="yes" default="0" quest="12213" premium="yes">
<list gender="0-3" lookType="253" name="Kina">
<attribute speed="30"/>
<stats maxHealth="200"/>
<skills axe="5"/>
<skills sword="5"/>
</list>
</outfit>

<outfit id="38" premium="yes" default="0" quest="12229" premium="yes">
<list gender="0-3" lookType="64" name="Archer">
<attribute speed="30"/>
<stats maxHealth="100"/>
<skills dist="5"/>
</list>
</outfit>

<outfit id="39" premium="yes" default="0" quest="12215" premium="yes">
<list gender="0-3" lookType="264" name="Druix">
<attribute speed="10"/>
<stats maxMana="200"/>
<stats magLevel="5"/>
</list>

<outfit id="40" premium="yes" default="0" quest="12216" premium="yes">
<list gender="0-3" lookType="57" name="Sorcerex">
<attribute speed="10"/>
<stats maxMana="200"/>
<stats magLevel="5"/>
</list>
</outfit>

<outfit id="24" premium="yes" >
<list gender="0" lookType="329" name="Wedding"/>
<list gender="1" lookType="328" name="Wedding"/>
</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>

I don't get any error while loading the server and when I use the chest it says i got the outfit, but when i go to the outfits page of tibia it isn't there.

Help Please!
Thank You.
 
You can use this code:​
PHP:
<outfit id="1" quest="79500">
Is activated a costume for a character by creating key:
PHP:
setPlayerStorageValue(cid, 79500, 1)
 
You can use this code:​
PHP:
<outfit id="1" quest="79500">
Is activated a costume for a character by creating key:
PHP:
setPlayerStorageValue(cid, 79500, 1)

I've tried but don't work, i don't get any error, if i try to open te chest again it says that i already have the outfit, but the outfit doesn't appear.
 
Back
Top