• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] Addon Use

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
somebody help me?
and a scripter so ... you use of the doll and you get all addons ...
REP++ :D :wub:
 
Which doll? (Id)

Here is script made fast, so write here if it doesn't work:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(getPlayerStorageValue(cid,11011) == -1) then
		doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE)
		doCreatureSay(cid,'You have got all addons to your outfits',TALKTYPE_MONSTER)
		setPlayerStorageValue(cid,11011,1)
		doPlayerRemoveItem(item.uid, 1)
		if(getPlayerSex(cid) == 0)
		-- First Addon --
			doPlayerAddOutfit(cid, 136, 1)
			doPlayerAddOutfit(cid, 137, 1)
			doPlayerAddOutfit(cid, 138, 1)
			doPlayerAddOutfit(cid, 139, 1)
			doPlayerAddOutfit(cid, 140, 1)
			doPlayerAddOutfit(cid, 141, 1)
			doPlayerAddOutfit(cid, 142, 1)
			doPlayerAddOutfit(cid, 147, 1)
			doPlayerAddOutfit(cid, 148, 1)
			doPlayerAddOutfit(cid, 149, 1)
			doPlayerAddOutfit(cid, 150, 1)
			doPlayerAddOutfit(cid, 155, 1)
			doPlayerAddOutfit(cid, 156, 1)
			doPlayerAddOutfit(cid, 157, 1)
			doPlayerAddOutfit(cid, 158, 1)
			doPlayerAddOutfit(cid, 252, 1)
			doPlayerAddOutfit(cid, 269, 1)
			doPlayerAddOutfit(cid, 270, 1)
			doPlayerAddOutfit(cid, 279, 1)
			doPlayerAddOutfit(cid, 288, 1)
			doPlayerAddOutfit(cid, 324, 1)
			doPlayerAddOutfit(cid, 336, 1)
		-- Second Addon --
			doPlayerAddOutfit(cid, 136, 2)
			doPlayerAddOutfit(cid, 137, 2)
			doPlayerAddOutfit(cid, 138, 2)
			doPlayerAddOutfit(cid, 139, 2)
			doPlayerAddOutfit(cid, 140, 2)
			doPlayerAddOutfit(cid, 141, 2)
			doPlayerAddOutfit(cid, 142, 2)
			doPlayerAddOutfit(cid, 147, 2)
			doPlayerAddOutfit(cid, 148, 2)
			doPlayerAddOutfit(cid, 149, 2)
			doPlayerAddOutfit(cid, 150, 2)
			doPlayerAddOutfit(cid, 155, 2)
			doPlayerAddOutfit(cid, 156, 2)
			doPlayerAddOutfit(cid, 157, 2)
			doPlayerAddOutfit(cid, 158, 2)
			doPlayerAddOutfit(cid, 252, 2)
			doPlayerAddOutfit(cid, 269, 2)
			doPlayerAddOutfit(cid, 270, 2)
			doPlayerAddOutfit(cid, 279, 2)
			doPlayerAddOutfit(cid, 288, 2)
			doPlayerAddOutfit(cid, 324, 2)
			doPlayerAddOutfit(cid, 336, 2)
		else
		-- First Addon --
			doPlayerAddOutfit(cid, 128, 1)
			doPlayerAddOutfit(cid, 129, 1)
			doPlayerAddOutfit(cid, 130, 1)
			doPlayerAddOutfit(cid, 131, 1)
			doPlayerAddOutfit(cid, 132, 1)
			doPlayerAddOutfit(cid, 133, 1)
			doPlayerAddOutfit(cid, 134, 1)
			doPlayerAddOutfit(cid, 143, 1)
			doPlayerAddOutfit(cid, 144, 1)
			doPlayerAddOutfit(cid, 145, 1)
			doPlayerAddOutfit(cid, 146, 1)
			doPlayerAddOutfit(cid, 151, 1)
			doPlayerAddOutfit(cid, 152, 1)
			doPlayerAddOutfit(cid, 153, 1)
			doPlayerAddOutfit(cid, 154, 1)
			doPlayerAddOutfit(cid, 251, 1)
			doPlayerAddOutfit(cid, 268, 1)
			doPlayerAddOutfit(cid, 273, 1)
			doPlayerAddOutfit(cid, 278, 1)
			doPlayerAddOutfit(cid, 289, 1)
			doPlayerAddOutfit(cid, 325, 1)
			doPlayerAddOutfit(cid, 335, 1)
		-- Second Addon --
			doPlayerAddOutfit(cid, 128, 2)
			doPlayerAddOutfit(cid, 129, 2)
			doPlayerAddOutfit(cid, 130, 2)
			doPlayerAddOutfit(cid, 131, 2)
			doPlayerAddOutfit(cid, 132, 2)
			doPlayerAddOutfit(cid, 133, 2)
			doPlayerAddOutfit(cid, 134, 2)
			doPlayerAddOutfit(cid, 143, 2)
			doPlayerAddOutfit(cid, 144, 2)
			doPlayerAddOutfit(cid, 145, 2)
			doPlayerAddOutfit(cid, 146, 2)
			doPlayerAddOutfit(cid, 151, 2)
			doPlayerAddOutfit(cid, 152, 2)
			doPlayerAddOutfit(cid, 153, 2)
			doPlayerAddOutfit(cid, 154, 2)
			doPlayerAddOutfit(cid, 251, 2)
			doPlayerAddOutfit(cid, 268, 2)
			doPlayerAddOutfit(cid, 273, 2)
			doPlayerAddOutfit(cid, 278, 2)
			doPlayerAddOutfit(cid, 289, 2)
			doPlayerAddOutfit(cid, 325, 2)
			doPlayerAddOutfit(cid, 335, 2)	
		end
	else
		doSendMagicEffect(fromPosition, CONST_ME_POOF)
		doCreatureSay(cid,'You have already got all addons to your outfits',TALKTYPE_MONSTER)
	end
	
	return true
end
 
Last edited:
Code:
local storage = 10000
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerStorageValue(cid, storage) < 1 then
		doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE)
		doCreatureSay(cid, 'You have got all addons to your outfits', TALKTYPE_ORANGE_1)
		setPlayerStorageValue(cid, storage, 1)
		doPlayerRemoveItem(item.uid, 1)
		doPlayerAddAddons(cid, 1)
		doPlayerAddAddons(cid, 2)
	else
		doSendMagicEffect(getThingPos(cid), CONST_ME_POOF)
		doCreatureSay(cid, 'You already have all addons to your outfits', TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
	end
	return true
end
 
Back
Top