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

Eternal Life

New Member
Joined
May 15, 2011
Messages
148
Reaction score
1
Location
Aguadilla,Puerto Rico
Guys i need ascript that when a player uses a fauntain you get all addons from 8.10!! they are :

<!-- Female outfits -->
<outfit type="0" looktype="136" addons="3" name="Citizen" premium="0"/>
<outfit type="0" looktype="137" addons="3" name="Hunter" premium="0"/>
<outfit type="0" looktype="138" addons="3" name="Summoner" premium="1"/>
<outfit type="0" looktype="269" addons="3" name="Nightmare" premium="1"/>
<outfit type="0" looktype="270" addons="3" name="Jesker" premium="1"/>
<outfit type="0" looktype="279" addons="3" name="Brotherwood" premium="1"/>
<outfit type="0" looktype="252" addons="3" name="Norseman" premium="1"/>
<outfit type="0" looktype="139" addons="3" name="Knight" premium="0"/>
<outfit type="0" looktype="140" addons="3" name="Nobleman" premium="1"/>
<outfit type="0" looktype="141" addons="3" name="Mage" premium="0"/>
<outfit type="0" looktype="142" addons="3" name="Warrior" premium="1"/>
<outfit type="0" looktype="147" addons="3" name="Barbarian" premium="1"/>
<outfit type="0" looktype="148" addons="3" name="Druid" premium="1"/>
<outfit type="0" looktype="149" addons="3" name="Wizard" premium="1"/>
<outfit type="0" looktype="150" addons="3" name="Oriental" premium="1"/>
<outfit type="0" looktype="155" addons="3" name="Pirate" premium="1"/>
<outfit type="0" looktype="156" addons="3" name="Assassin" premium="1"/>
<outfit type="0" looktype="157" addons="3" name="Beggar" premium="1"/>
<outfit type="0" looktype="158" addons="3" name="Shaman" premium="1"/>
<!-- Male outfits -->
<outfit type="1" looktype="128" addons="0" name="Citizen" premium="0"/>
<outfit type="1" looktype="129" addons="0" name="Hunter" premium="0"/>
<outfit type="1" looktype="130" addons="0" name="Mage" premium="0"/>
<outfit type="1" looktype="131" addons="0" name="Knight" premium="0"/>
<outfit type="1" looktype="268" addons="3" name="Nightmare" premium="1"/>
<outfit type="1" looktype="273" addons="3" name="Jesker" premium="1"/>
<outfit type="1" looktype="278" addons="3" name="Brotherwood" premium="1"/>
<outfit type="1" looktype="251" addons="3" name="Norseman" premium="1"/>
<outfit type="1" looktype="132" addons="3" name="Nobleman" premium="1"/>
<outfit type="1" looktype="133" addons="3" name="Summoner" premium="1"/>
<outfit type="1" looktype="134" addons="3" name="Warrior" premium="1"/>
<outfit type="1" looktype="143" addons="3" name="Barbarian" premium="1"/>
<outfit type="1" looktype="144" addons="3" name="Druid" premium="1"/>
<outfit type="1" looktype="145" addons="3" name="Wizard" premium="1"/>
<outfit type="1" looktype="146" addons="3" name="Oriental" premium="1"/>
<outfit type="1" looktype="151" addons="3" name="Pirate" premium="1"/>
<outfit type="1" looktype="152" addons="3" name="Assassin" premium="1"/>
<outfit type="1" looktype="153" addons="3" name="Beggar" premium="1"/>
<outfit type="1" looktype="154" addons="3" name="Shaman" premium="1"/>




These are the outfits for 8.10 :p, here is a picture of the fauntain!







Untitled.jpg
 
Put this into data/actions/actions.xml:
(Replace XXXX with action id that you set to your fountain)

PHP:
	<action actionid="XXXX" event="script" value="fountain1.lua"/>

Make a new file called fountain1.lua in data/actions/scripts/ and paste this into it:
(Before you put it, you have to replace OUTFIT_ID with ID of outfit you want to give addons to, and I just added 3 of these lines, since you need more, just copy the line "doPlayerAddOutfit(cid, OUTFIT_ID, 3)" how many times you need)
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)

doSendMagicEffect(getCreaturePosition(cid),12)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You acquired new addons!")

doPlayerAddOutfit(cid, OUTFIT_ID, 3)
doPlayerAddOutfit(cid, OUTFIT_ID, 3)
doPlayerAddOutfit(cid, OUTFIT_ID, 3)

end

Untested, but I'm sure it should work.
 
Well i have this:

function onUse(cid, item, fromPosition, itemEx, toPosition)

doSendMagicEffect(getCreaturePosition(cid),12)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You acquired new addons!")

doPlayerAddOutfit(cid, 136, 3)
doPlayerAddOutfit(cid, 137, 3)
doPlayerAddOutfit(cid, 138, 3)
doPlayerAddOutfit(cid, 269, 3)
doPlayerAddOutfit(cid, 270, 3)
doPlayerAddOutfit(cid, 279, 3)
doPlayerAddOutfit(cid, 252, 3)
doPlayerAddOutfit(cid, 139, 3)
doPlayerAddOutfit(cid, 140, 3)
doPlayerAddOutfit(cid, 141, 3)
doPlayerAddOutfit(cid, 142, 3)
doPlayerAddOutfit(cid, 147, 3)
doPlayerAddOutfit(cid, 148, 3)
doPlayerAddOutfit(cid, 149, 3)
doPlayerAddOutfit(cid, 150, 3)
doPlayerAddOutfit(cid, 155, 3)
doPlayerAddOutfit(cid, 156, 3)
doPlayerAddOutfit(cid, 157, 3)
doPlayerAddOutfit(cid, 158, 3)
doPlayerAddOutfit(cid, 128, 3)
doPlayerAddOutfit(cid, 129, 3)
doPlayerAddOutfit(cid, 130, 3)
doPlayerAddOutfit(cid, 131, 3)
doPlayerAddOutfit(cid, 268, 3)
doPlayerAddOutfit(cid, 273, 3)
doPlayerAddOutfit(cid, 278, 3)
doPlayerAddOutfit(cid, 251, 3)
doPlayerAddOutfit(cid, 132, 3)
doPlayerAddOutfit(cid, 133, 3)
doPlayerAddOutfit(cid, 134, 3)
doPlayerAddOutfit(cid, 143, 3)
doPlayerAddOutfit(cid, 144, 3)
doPlayerAddOutfit(cid, 145, 3)
doPlayerAddOutfit(cid, 146, 3)
doPlayerAddOutfit(cid, 151, 3)
doPlayerAddOutfit(cid, 152, 3)
doPlayerAddOutfit(cid, 153, 3)
doPlayerAddOutfit(cid, 154, 3)

end


But nothing happends :/
 
Lua:
local female = {136, 137, 138,139, 140, 141, 142, 147, 148, 149, 150, 155, 156, 157, 158, 252, 269, 270, 279}
local male = {128, 129, 130, 131, 268, 273, 278, 251, 132, 133, 134, 143, 144, 145, 146, 151, 152, 153, 154}

local st = 32422 --storage for prevents using this again.

function onUse(cid, item, fromPosition, itemEx, toPosition)
	local sex = getPlayerSex(cid)
	local get = getPlayerStorageValue(cid, st)
	local pos = getCreaturePosition(cid)
	
	if (get < 1) then
		if (sex == 0) then 
			for _, x in ipairs(female) do
				doPlayerAddOutfitId(cid, x, 3)
			end
		elseif (sex == 1) then
			for _, x in ipairs(male) do
				doPlayerAddOutfitId(cid, x, 3)
			end
		end
		doPlayerSetStorageValue(cid, st, 1)
		doSendMagicEffect(pos, 12)
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have adquired new addons!")
	else
		doPlayerSendCancel(cid, "Sorry, you have already done this quest.")
	end

	return true
end
 
Back
Top