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

Add Special Outfits.

jpkulik

New Member
Joined
Mar 15, 2008
Messages
208
Reaction score
2
Hello all!
Im trying do make and script, to, when players use the Lever, get the special outfit, like,
Pirate, Shaman,Brotherhood, Jester, Nightmare, Norseman, Assassin.
But i have NO ideia how to do that.
Someone can really help me with an action scritp??
Tankyou all! Cya :thumbup:
 
Do it like i told you over Msn that should work fine :)

Edit: here is the Script

PHP:
function onUse(cid, item, frompos, item2, topos)
local value = Pirate--change this to the Outfit name
local looktypefemale = 155--id for the female outfit
local looktypemale = 151--id for the male outfit
	if item.itemid == 1945 then
		if getPlayerStorageValue(cid,value) == -1 then
			setPlayerStorageValue(cid,value,1)
			doPlayerAddOutfit(cid,looktypefemale,0)
			doPlayerAddOutfit(cid,looktypemale,0)
		else
			doPlayerSendCancel(cid,"You already gained your Outfit.")
		end
	end
end

yours Evil Hero,
 
Last edited:
Do it like i told you over Msn that should work fine :)

Edit: here is the Script

PHP:
function onUse(cid, item, frompos, item2, topos)
local value = Pirate--change this to the Outfit name
local looktypefemale = 155--id for the female outfit
local looktypemale = 151--id for the male outfit
	if item.itemid == 1945 then
		if getPlayerStorageValue(cid,value) == -1 then
			setPlayerStorageValue(cid,value,1)
			doPlayerAddOutfit(cid,looktypefemale,0)
			doPlayerAddOutfit(cid,looktypemale,0)
		else
			doPlayerSendCancel(cid,"You already gained your Outfit.")
		end
	end
end

yours Evil Hero,

Great, i will try it, but i need to put some actionID ?
And the tag for actions.xml?
:p
CyA
 
Do it like i told you over Msn that should work fine :)

Edit: here is the Script

PHP:
function onUse(cid, item, frompos, item2, topos)
local value = Pirate--change this to the Outfit name
local looktypefemale = 155--id for the female outfit
local looktypemale = 151--id for the male outfit
	if item.itemid == 1945 then
		if getPlayerStorageValue(cid,value) == -1 then
			setPlayerStorageValue(cid,value,1)
			doPlayerAddOutfit(cid,looktypefemale,0)
			doPlayerAddOutfit(cid,looktypemale,0)
		else
			doPlayerSendCancel(cid,"You already gained your Outfit.")
		end
	end
end

yours Evil Hero,

Ey how you pretend get or set a storagevalue to a string. ^.-
 
Sorry just noticed after you said that :p

fix:

PHP:
function onUse(cid, item, frompos, item2, topos)
local looktypefemale = 155--id for the female outfit
local looktypemale = 151--id for the male outfit
local value = 1001--the value id, change it for every outfit
    if item.itemid == 1945 then
        if getPlayerStorageValue(cid,value) == -1 then
            setPlayerStorageValue(cid,value,1)
            doPlayerAddOutfit(cid,looktypefemale,0)
            doPlayerAddOutfit(cid,looktypemale,0)
        else
            doPlayerSendCancel(cid,"You already gained your Outfit.")
        end
    end
end
 
Last edited:
Code:
function onUse(cid, item, frompos, item2, topos)
local looktypefemale = 155--id for the female outfit
local looktypemale = 151--id for the male outfit
local value = 1001--the value id, change it for every outfit
    if item.itemid == 1945 then
        if getPlayerStorageValue(cid,value) == -1 then
            setPlayerStorageValue(cid,value,1)
            doPlayerAddOutfit(cid,looktypefemale,0)
            doPlayerAddOutfit(cid,looktypemale,0)
            doTransformItem(item.uid,item.itemid+1)
        else
            doPlayerSendCancel(cid,"You already gained your Outfit.")
        end
    elseif item.itemid == 1946 then
        doTransformItem(item.uid,item.itemid-1)
    end
return 1
end
nothing special, just added a switch transformer.
Evil Hero's one should work.
 
Code:
function onUse(cid, item, frompos, item2, topos)
local looktypefemale = 155--id for the female outfit
local looktypemale = 151--id for the male outfit
local value = 1001--the value id, change it for every outfit
    if item.itemid == 1945 then
        if getPlayerStorageValue(cid,value) == -1 then
            setPlayerStorageValue(cid,value,1)
            doPlayerAddOutfit(cid,looktypefemale,0)
            doPlayerAddOutfit(cid,looktypemale,0)
            doTransformItem(item.uid,item.itemid+1)
        else
            doPlayerSendCancel(cid,"You already gained your Outfit.")
        end
    elseif item.itemid == 1946 then
        doTransformItem(item.uid,item.itemid-1)
    end
return 1
end
nothing special, just added a switch transformer.
Evil Hero's one should work.
I have no response from the Lever..
I just clik and it transform to the other lever ID..
Some one can help??
 
Last edited:
But are you sure that doPlayerAddOutfit(cid,lookType,0) will add new outfit to player? If yes, then what should be in outfits.xml to be some outfits was only from quests? I tried many times, but it seems to not work. So tested it someone ? :p
 
Ok, if someone really know how to do that, please, can help Us? o0
My situation is, i put the script , and i have no reply when i use the lever, it just change and dont Give me the mensage or de outfit.
Byebye, and tankyou all!
 
Well i totally forgot to ask that...
does your Distro even support the function "doPlayerAddOutfit"? I'm not sure if every distro has that function.
 
Back
Top