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

Press on Statue to get an Outfit

patriciou

Member
Joined
Dec 26, 2009
Messages
180
Reaction score
6
Hello Otlanders.

Im Looking for a Script in which
Player Presses on statue and Gets
Certain Outfit.

Regards

Waiting for Quick reply

Rep++ for Help :)
 
try:

Actions.xml:
XML:
<action actionid="1000" event="script" value="outfit.lua"/>

Actions/scripts and name it "outfit.lua" and paste the code:

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

	local outfit = {lookType = 0}

	if isPlayer(cid) then
		doCreatureChangeOutfit(cid, outfit)
		doPlayerSendTextMessage(cid,22, "Congratz, you have gained a outfit")
		end
	return true
end

Also remeber put the actionid "1000" on the statue.
 
Thanks Cyko
Rep++ For You But..

What it does is just changing the Looktype and I needed
Something like when the Person presses on statue
It Adds this Looktype to his Outfits..

ill rep++ again for Any help :)
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)

    if isPlayer(cid) then
        doPlayerAddOutfit(cid, looktypehere, 0)
        doPlayerSendTextMessage(cid,22, "Congratz, you have gained a outfit")
        end
    return true
end
 
Back
Top