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

Outfit Bonuses

Seanr

New Member
Joined
Jul 11, 2011
Messages
167
Reaction score
3
Location
Mo Town
Hey, I posted a thread like this a year or so ago, but I never found a solution. Addon bonuses work no problem, but I plan on using custom outfits on my OT like the barbarian outfits, Hero, Necromancer, etc. Anyone know how to get bonuses on custom outfits? I already tried adding them to the outfits and adding bonuses underneath. Doesn't work.
 
Code:
<outfit id="26" access="5" premium="yes">
<list gender="0-3" lookType="159" requirement="none" name="Elf">
<stats maxHealth="100"/>
<stats magLevel="100"/>
</list>
</outfit>
 
Code:
<outfit id="26" access="5" premium="yes">
<list gender="0-3" lookType="159" requirement="none" name="Elf">
<stats maxHealth="100"/>
<stats magLevel="100"/>
</list>
</outfit>

Didn't work :/ I have this setup in outfits.xml

<outfit id="20" quest="16439">
<list gender="0-3" lookType="73" name="Hero"/>
<stats maxHealth="100"/>
<stats magLevel="1"/>
</outfit>

This is the npc quest script I use to get the outfits. Maybe it can help.

Lua:
[/B]local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end

function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end

local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid



local configs = {

        ItemId = 10316,
        ItemCount = 1,
        Storage = 16439

        }


if(msgcontains(msg, 'outfit')) then
        if (getPlayerStorageValue(cid, configs.Storage) > 0) then
        selfSay('You already have this outfit.', cid)
        talkState[talkUser] = 0
    else
        selfSay('Did you bring the helmet?', cid)
            talkState[talkUser] = 1
    end
        else
            if(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
                        if (getPlayerItemCount(cid, configs.ItemId) == configs.ItemCount) then
                                doPlayerRemoveItem(cid, configs.ItemId, configs.ItemCount)
                                setPlayerStorageValue(cid, configs.Storage, 1)
                                              doPlayerAddOutfit(cid, 73)
                    doSendMagicEffect(getPlayerPosition(cid), 12)
                    selfSay('Congratz, you now have a brand new outfit.', cid)
                    talkState[talkUser] = 0
                else
                    selfSay('You don\'t have all the items.', cid)
            talkState[talkUser] = 0
        end

    end
        return TRUE
    end
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())[B]
 
Code:
<outfit id="20" quest="16439">
<list gender="0-3" lookType="73" requirement="none" name="Hero">
<stats maxHealth="100"/>
<stats magLevel="1"/>
</list>
</outfit>
 
Back
Top