• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Addon Doll Searching

LuckyM

Ett är Ett
Joined
Jun 13, 2009
Messages
1,412
Solutions
1
Reaction score
167
Location
Sweden
Hello OTlanders :)

I need a addon doll only give War-Master Outfit. i have been searching alot but dont find it :)

I give rep for it :)


Thanks


Yours
Aearar
 
Try this:

talkactions.xml
PHP:
<talkaction words="!addon" script="addon.lua"/>

addon.lua
LUA:
function onSay(cid, words, param)
    local femaleOutfits = {["Warmaster"]={336}}
    local maleOutfits = {["Warmaster"]={335}}
    local msg = {"Command requires GOOD param!", "You dont have Addon Doll!", "Bad param!", "Full Addon Set succesfully added!"}
    local param = string.lower(param) 
    if(getPlayerItemCount(cid, 9693) > 0) then
        if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then
            doPlayerRemoveItem(cid, 9693, 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
end

from:
http://otland.net/f81/addon-doll-forgotten-server-0-3-5-a-67113/
 
Back
Top