Doniio
The REAL CENTERA creator
Helluu.. I ran into some problems when trying to get a new quest outfit to work..
Its the newtype 126/127 <- id of the outfit.. deadman looking ~
anyways I was making the quest at the end you will get this doll that you will need to use the command !outfit wood man to get the addon but aint working..
here is the scripts.
That is the talkaction script
Here is the outfits.xml
You can see at the end that i added the looktypes.. but still aint working when I use the command, I get this message: 13:44 Command requires GOOD param!
Its the newtype 126/127 <- id of the outfit.. deadman looking ~
anyways I was making the quest at the end you will get this doll that you will need to use the command !outfit wood man to get the addon but aint working..
here is the scripts.
Code:
function onSay(cid, words, param)
local femaleOutfits = { ["woodfemale"]={126} }
local maleOutfits = { ["woodman"]={127} }
local msg = {"Command requires GOOD param!", "You dont have the doll!", "Bad param!", "Full outfit set sucesfully added!"}
local param = string.lower(param)
if(getPlayerItemCount(cid, 2108) > 0) then
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
doPlayerRemoveItem(cid, 2108, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4])
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
if(getPlayerSex(cid) == 0)then
doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
else
doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
return TRUE
end
That is the talkaction script
Here is the outfits.xml
Code:
<?xml version="1.0"?>
<outfits>
<outfit id="1">
<list gender="0" lookType="136" name="Citizen"/>
<list gender="1" lookType="128" name="Citizen"/>
</outfit>
<outfit id="2">
<list gender="0" lookType="137" name="Hunter"/>
<list gender="1" lookType="129" name="Hunter"/>
</outfit>
<outfit id="3">
<list gender="0" lookType="138" name="Mage"/>
<list gender="1" lookType="130" name="Mage"/>
</outfit>
<outfit id="4">
<list gender="0" lookType="139" name="Knight"/>
<list gender="1" lookType="131" name="Knight"/>
</outfit>
<outfit id="5" premium="yes">
<list gender="0" lookType="140" name="Noblewoman"/>
<list gender="1" lookType="132" name="Nobleman"/>
</outfit>
<outfit id="6" premium="yes">
<list gender="0" lookType="141" name="Summoner"/>
<list gender="1" lookType="133" name="Summoner"/>
</outfit>
<outfit id="7" premium="yes">
<list gender="0" lookType="142" name="Warrior"/>
<list gender="1" lookType="134" name="Warrior"/>
</outfit>
<outfit id="8" premium="yes">
<list gender="0" lookType="147" name="Barbarian"/>
<list gender="1" lookType="143" name="Barbarian"/>
</outfit>
<outfit id="9" premium="yes">
<list gender="0" lookType="148" name="Druid"/>
<list gender="1" lookType="144" name="Druid"/>
</outfit>
<outfit id="10" premium="yes">
<list gender="0" lookType="149" name="Wizard"/>
<list gender="1" lookType="145" name="Wizard"/>
</outfit>
<outfit id="11" premium="yes">
<list gender="0" lookType="150" name="Oriental"/>
<list gender="1" lookType="146" name="Oriental"/>
</outfit>
<outfit id="12" premium="yes" default="0">
<list gender="0" lookType="155" name="Pirate"/>
<list gender="1" lookType="151" name="Pirate"/>
</outfit>
<outfit id="13" premium="yes" default="0">
<list gender="0" lookType="156" name="Assassin"/>
<list gender="1" lookType="152" name="Assassin"/>
</outfit>
<outfit id="14" premium="yes" default="0">
<list gender="0" lookType="157" name="Beggar"/>
<list gender="1" lookType="153" name="Beggar"/>
</outfit>
<outfit id="15" premium="yes" default="0">
<list gender="0" lookType="158" name="Shaman"/>
<list gender="1" lookType="154" name="Shaman"/>
</outfit>
<outfit id="16" premium="yes" default="0">
<list gender="0" lookType="252" name="Norsewoman"/>
<list gender="1" lookType="251" name="Norseman"/>
</outfit>
<outfit id="17" premium="yes" default="0">
<list gender="0" lookType="269" name="Nightmare"/>
<list gender="1" lookType="268" name="Nightmare"/>
</outfit>
<outfit id="18" premium="yes" default="0">
<list gender="0" lookType="270" name="Jester"/>
<list gender="1" lookType="273" name="Jester"/>
</outfit>
<outfit id="19" premium="yes" default="0">
<list gender="0" lookType="279" name="Brotherhood"/>
<list gender="1" lookType="278" name="Brotherhood"/>
</outfit>
<outfit id="20" premium="yes" default="0">
<list gender="0" lookType="288" name="Demonhunter"/>
<list gender="1" lookType="289" name="Demonhunter"/>
</outfit>
<outfit id="21" premium="yes" default="0">
<list gender="0" lookType="324" name="Yalaharian"/>
<list gender="1" lookType="325" name="Yalaharian"/>
</outfit>
<outfit id="22" premium="yes" default="0">
<list gender="0" lookType="336" name="Warmaster"/>
<list gender="1" lookType="335" name="Warmaster"/>
</outfit>
<outfit id="23" premium="yes" default="0">
<list gender="0" lookType="329" name="Wedding"/>
<list gender="1" lookType="328" name="Wedding"/>
</outfit>
<outfit id="24" access="5" premium="yes">
<list gender="0-3" lookType="12" name="Archdemon"/>
</outfit>
<outfit id="25" access="5" premium="yes">
<list gender="0-3" lookType="159" name="Elf"/>
</outfit>
<outfit id="26" access="5" premium="yes">
<list gender="0-3" lookType="160" name="Dwarf"/>
</outfit>
<outfit id="27" access="5" premium="yes">
<list gender="0-3" lookType="226" name="Frog"/>
</outfit>
<outfit id="28" access="5" premium="yes">
<list gender="0-3" lookType="194" name="Cult"/>
</outfit>
<outfit id="29" access="5" premium="yes">
<list gender="0-3" lookType="253" name="Headsplitter"/>
</outfit>
<outfit id="30" access="5" premium="yes">
<list gender="0-3" lookType="254" name="Skullhunter"/>
</outfit>
<outfit id="31" access="5" premium="yes">
<list gender="0-3" lookType="255" name="Bloodwalker"/>
</outfit>
<outfit id="32" access="5" premium="yes">
<list gender="0-3" lookType="264" name="Brutetamer"/>
</outfit>
<outfit id="33" access="3" premium="yes">
<list gender="0-3" lookType="75" name="Gamemaster"/>
</outfit>
<outfit id="34" access="4" premium="yes">
<list gender="0-3" lookType="266" name="Community Manager"/>
</outfit>
<outfit id="35" access="5" premium="yes">
<list gender="0-3" lookType="302" name="God"/>
</outfit>
<outfit id="36">
<list gender="0" lookType="126" name="Wood female"/>
<list gender="1" lookType="127" name="Wood man"/>
</outfit>
</outfits>
You can see at the end that i added the looktypes.. but still aint working when I use the command, I get this message: 13:44 Command requires GOOD param!