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

Addon Doll Doesn't work..

mikezeid

New Member
Joined
Jan 9, 2013
Messages
60
Reaction score
1
Hello. I entered this code
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local femaleOutfits = {136, 137, 138, 139, 140, 141, 142, 147, 148, 149, 150, 155, 156, 157, 158, 252, 269, 270, 279, 288, 324} 
    local maleOutfits = {128, 129, 130, 131, 132, 133, 134, 143, 144, 145, 146, 151, 152, 153, 154, 251, 268, 273, 278, 289, 325} 
 
    if(getPlayerItemCount(cid, 9693) > 0) then 
		doPlayerRemoveItem(cid, 9693, 1) 
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You now have all addons!") 
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) 
		if (getPlayerSex(cid) == 0) then
			for _,n in ipairs(femaleOutfits) do
				doPlayerAddOutfit(cid, n, 3)
			end
		else 
			for _,n in ipairs(maleOutfits) do
				doPlayerAddOutfit(cid, n, 3)
			end
		end 
    else 
		return false
    end
	return true
end

For the addon dolls to work for players .but says you need an addon doll .. what should i do ??
 
I mean addon dolls when I use the commnad or any players use "!addon assasin" while having a addon doll in their bp. It says "you need addon doll" . And they are carrying an addon doll
 
But this isn't a talkaction, it's an action script, you need to click use on it. Post the talkaction script you use.
 
In talkactions/scripts make file addon.lua and put this in

LUA:
function onSay(cid, words, param) 
local femaleOutfits = { ["citizen"]={136}, ["hunter"]={137}, ["mage"]={138}, ["knight"]={139}, ["noblewoman"]={140}, ["summoner"]={141}, ["warrior"]={142}, ["barbarian"]={147}, ["druid"]={148}, ["wizard"]={149}, ["oriental"]={150}, ["pirate"]={155}, ["assassin"]={156}, ["beggar"]={157}, ["shaman"]={158}, ["norsewoman"]={252}, ["nightmare"]={269}, ["jester"]={270}, ["brotherhood"]={279}, ["demonhunter"]={288}, ["yalaharian"]={324}, ["warmaster"]={336} } 
local maleOutfits = { ["citizen"]={128}, ["hunter"]={129}, ["mage"]={130}, ["knight"]={131}, ["nobleman"]={132},["summoner"]={133}, ["warrior"]={134}, ["barbarian"]={143}, ["druid"]={144}, ["wizard"]={145}, ["oriental"]={146}, ["pirate"]={151}, ["assassin"]={152}, ["beggar"]={153}, ["shaman"]={154}, ["norsewoman"]={251}, ["nightmare"]={268}, ["jester"]={273}, ["brotherhood"]={278}, ["demonhunter"]={289}, ["yalaharian"]={325}, ["warmaster"]={335}, ["wayfarer"]={366} } 
local msg = {"Command requires GOOD param!", "You dont have Addon Doll!", "Bad param!", "Full Addon Set sucesfully added!"} 
local param = string.lower(param) 
 
if(getPlayerItemCount(cid, 8982) > 0) then 
if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then 
doPlayerRemoveItem(cid, 8982, 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

In talkactions.xml put

LUA:
<talkaction words="!addon" event="script" value="addon.lua" />
 
Back
Top