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

TalkAction Addon Doll - You cant get addon if you havent an outfit

Venn

Member
Joined
Aug 16, 2009
Messages
547
Reaction score
20
I edited Bogard's scripts from here Separated addons in Addon Doll
I edited it becous if player hadnt an outfit for example knight and said !addon knight, 1 he got outfit and addon.
Now it woring like that:

First:
You need to change your outfit for that you want to add an addon
for example knight.
Then:
you have to say command for example:
!addon knight, 1

and done!

Script:
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!", "Addon Set sucesfully added!", "Addons require outfit, please change your outfit first"} 
local x = string.explode(param, ",") 
local current = getCreatureOutfit(cid)


	if(getPlayerItemCount(cid, 8982) > 0) then 
		if param ~= "" then 
			if maleOutfits[x[1]:lower()] and femaleOutfits[x[1]:lower()] then
				if(getPlayerSex(cid) == 0)then
					if femaleOutfits[x[1]:lower()][1] == current.lookType then
						if (x[2] == '1' or x[2] == '2') then
							doPlayerRemoveItem(cid, 8982, 1) 
							doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4]) 
							doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
							doPlayerAddOutfit(cid, femaleOutfits[x[1]:lower()][1], x[2])
						else
							doPlayerSendTextMessage(cid, 27, msg[3])
						end
					else
						doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])
						return true
					end
				else
					if maleOutfits[x[1]:lower()][1] == current.lookType then
						if (x[2] == '1' or x[2] == '2') then
							doPlayerRemoveItem(cid, 8982, 1) 
							doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4]) 
							doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
							doPlayerAddOutfit(cid, maleOutfits[x[1]:lower()][1], x[2])
						else
							doPlayerSendTextMessage(cid, 27, msg[3])
						end
					else
						doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[5])
						return true
					end
				end
			else
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[3])
			end
		else 
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1]) 
		end 
	else 
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2]) 
	end
return true
end
 
!addon knight, 1 = really RPG'ish

Why not create an NPC next to this script that gives you the outfits?
 
you know those kids nowadays, taking a walk to huntingplace is too boring, they need teleports with flashing signs and stuff, teleport to temple scrolls, super large manarunes and why would they even bother speaking to npc? way cooler to click on a freaken sweet ADDON DOLL.
 
you know those kids nowadays, taking a walk to huntingplace is too boring, they need teleports with flashing signs and stuff, teleport to temple scrolls, super large manarunes and why would they even bother speaking to npc? way cooler to click on a freaken sweet ADDON DOLL.

Oh, then you can go and create monsters with all the player outfits and a little button in front of them saying 'Click me if you have an addon doll and you can wear this outfit'
 
Don't hate the player, hate the game :D

I was being serious.

Sign:
Outfit and Addon Area => Teleport => Area with all the outfits (monsters) with all the other addons next to them or below them and levers next to them.

Example:

Citizen outfit => lever
Citizen outfit + first addon => lever
Citizen outfit + second addon => lever

If you push and have an addon doll, you get the desired outfit/addon.

You can only get first addon if you have the main outfit, you can only get the second addon if you have the main outfit and the first addon already.
 
say the doll works simillar u can get the addon only if you have a outfit
but do you need first addon to gain second ? no it doesnt metter which u want.
 
say the doll works simillar u can get the addon only if you have a outfit
but do you need first addon to gain second ? no it doesnt metter which u want.

Yeah, sounds better with no restriction. But in order to get any of the two addons first you need base outfit anyway.
 
Yeah, sounds better with no restriction. But in order to get any of the two addons first you need base outfit anyway.

yes. to get any of the two addons first you need base outfit anyway. its the way how it works
 
Nice, but you should use canPlayerWearOutfit(cid, lookType, addons) to check if the player has the outfit.
 
Last edited:
Back
Top