• 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:
 
Ok, i wilml explain it better than.
I put in the Lever, ActionID=1001, and i put the tag
<action itemid="1001" script="teste/pirate.lua"/>
And i put the script in actios/teste/pirate.lua
THEN i enter in the server (Mystic Spirit) and use the lever.
The result is: The lever change to the other lever id but nothing happens.
Now, i whould like to have some light..
About the question:
Your Server Support AddplayersOutfit.
Anwser: Yes, because i have a addon NPC, and the script is this-->
doPlayerAddOutfit(cid, 128, 2)
doPlayerAddOutfit(cid, 136, 2)
Byebye, and tankyou every body for trying help!
 
Found your error lol

PHP:
<action actionid="1001" script="teste/pirate.lua"/>

and replace your old script with this

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 and item.actionid == 1001 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

this should work now :)

yours Evil Hero,
 
last try by my part.
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 = 1002--the value id, change it for every outfit
    if item.itemid == 1945 then
        if getPlayerStorageValue(cid,value) == -1 then
			doPlayerAddOutfit(cid, looktypefemale, 0)
			doPlayerAddOutfit(cid, looktypemale, 0)
            doTransformItem(item.uid,item.itemid+1)
			setPlayerStorageValue(cid,value,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
almost every script in this thread should work =S
 
last try by my part.
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 = 1002--the value id, change it for every outfit
    if item.itemid == 1945 then
        if getPlayerStorageValue(cid,value) == -1 then
			doPlayerAddOutfit(cid, looktypefemale, 0)
			doPlayerAddOutfit(cid, looktypemale, 0)
            doTransformItem(item.uid,item.itemid+1)
			setPlayerStorageValue(cid,value,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
almost every script in this thread should work =S

I will try your script tham! :D
I edit soom.
 
Ok, The Problem is, I put the Sccript, but i dont won the Outfit.
I will put my Outfits.xml here.. If every body see some error on it, how mmake the script dont work tell me..
<?xml version="1.0"?>
<outfits>
<!-- Female outfits -->
<outfit type="0" looktype="136" addons="0" name="Citizen" premium="0"/>
<outfit type="0" looktype="137" addons="0" name="Hunter" premium="0"/>
<outfit type="0" looktype="138" addons="0" name="Summoner" premium="1"/>
<outfit type="0" looktype="139" addons="0" name="Knight" premium="0"/>
<outfit type="0" looktype="140" addons="0" name="Nobleman" premium="1"/>
<outfit type="0" looktype="141" addons="0" name="Mage" premium="0"/>
<outfit type="0" looktype="142" addons="0" name="Warrior" premium="1"/>
<outfit type="0" looktype="147" addons="0" name="Barbarian" premium="1"/>
<outfit type="0" looktype="148" addons="0" name="Druid" premium="1"/>
<outfit type="0" looktype="149" addons="0" name="Wizard" premium="1"/>
<outfit type="0" looktype="150" addons="0" name="Oriental" premium="1"/>
<outfit type="0" looktype="156" addons="0" name="Assassin" premium="1"/>
<outfit type="0" looktype="157" addons="0" name="Beggar" premium="1"/>
<outfit type="0" looktype="158" addons="0" name="Shaman" premium="1"/>
<outfit type="0" looktype="252" addons="0" name="Norseman" premium="1"/>
<outfit type="0" looktype="269" addons="0" name="Nightmare" premium="1"/>
<outfit type="0" looktype="270" addons="0" name="Jester" premium="1"/>
<outfit type="0" looktype="279" addons="0" name="Brotherhood" 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="132" addons="0" name="Nobleman" premium="1"/>
<outfit type="1" looktype="133" addons="0" name="Summoner" premium="1"/>
<outfit type="1" looktype="134" addons="0" name="Warrior" premium="1"/>
<outfit type="1" looktype="143" addons="0" name="Barbarian" premium="1"/>
<outfit type="1" looktype="144" addons="0" name="Druid" premium="1"/>
<outfit type="1" looktype="145" addons="0" name="Wizard" premium="1"/>
<outfit type="1" looktype="146" addons="0" name="Oriental" premium="1"/>
<outfit type="1" looktype="152" addons="0" name="Assassin" premium="1"/>
<outfit type="1" looktype="153" addons="0" name="Beggar" premium="1"/>
<outfit type="1" looktype="154" addons="0" name="Shaman" premium="1"/>
<outfit type="1" looktype="251" addons="0" name="Norseman" premium="1"/>
<outfit type="1" looktype="268" addons="0" name="Nightmare" premium="1"/>
<outfit type="1" looktype="273" addons="0" name="Jester" premium="1"/>
<outfit type="1" looktype="278" addons="0" name="Brotherhood" premium="1"/>
<!-- Gainable Outfits-->
<outfit type="2" looktype="155" addons="3" name="Pirate" premium="1"/>
<outfit type="2" looktype="151" addons="3" name="Pirate" premium="1"/>
<!-- Elf outfits -->
<outfit type="2" looktype="159" addons="3" name="Elf" premium="0"/>
<!-- Dwarf outfits -->
<outfit type="2" looktype="160" addons="3" name="Dwarf" premium="0"/>
<!-- Frog outfits -->
<outfit type="2" looktype="226" addons="3" name="Frog" premium="0"/>
<!-- Cult -->
<outfit type="2" looktype="194" addons="3" name="Cult" premium="0"/>
<!-- Demon -->
<outfit type="2" looktype="12" addons="0" name="Arch Demon" premium="0"/>
<!-- Tutor/GM Outfit -->
<outfit type="2" looktype="266" addons="0" name="God" premium="0"/>
<outfit type="2" looktype="75" addons="0" name="GameMaster" premium="0"/>
<outfit type="2" looktype="73" addons="0" name="Tutor(male)" premium="0"/>
<outfit type="2" looktype="58" addons="0" name="Tutor(female)" premium="0"/>
<!-- Barbarians -->
<outfit type="2" looktype="253" addons="3" name="Headsplitter" premium="0"/>
<outfit type="2" looktype="254" addons="3" name="Skullhunter" premium="0"/>
<outfit type="2" looktype="255" addons="3" name="Bloodwalker" premium="0"/>
<outfit type="2" looktype="264" addons="3" name="Brutetamer" premium="0"/>
<!-- Other -->

</outfits>
 
The TFS is not supporting outfit quests yet. Or you put to all premium get it, or to all people get it, or to none get it. You can't put to only people that did some quests... yet. I'm trying to talk to Taratulen about it. He told me that he put the command "enabled" on this new version, but it still doesn't make any difference.
Bye
 
no TFS does support doplayeraddoutfit.
doPlayerAddOutfit(cid,looktype,addons)
gonna test it and fix it
 
Last edited:
Back
Top