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

Solved onUse, (doPlayerAddOutfit) issue..

Naxtie

mapper, designer
Joined
Oct 15, 2011
Messages
1,565
Solutions
1
Reaction score
250
Location
Sweden
So, here's the thing. I got a item that if you right click on it, you will recieve the Wayfarer outfit + full addon set. But somehow it seems like it doesn't work, any idea what's wrong? And i'm using TFS 0.3.6 btw..

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if not canPlayerWearOutfitId(cid, 23, 2) then
		doPlayerAddOutfitId(cid, 23, 2)
		doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
		doCreatureSay(cid, 'Blablablabla', TALKTYPE_ORANGE_1)
	else
		doPlayerSendCancel(cid, 'You have already completed this quest.')
	end
	return true
end

Thanks in advance.
 
if you are on the server and type /newtype 23, Naxtie (sorry my params were wrong at first) it will set your outfit to id 23 (in your thought its wayfarer) make sure 23 is wayfarer for sure and not a outfit that doesnt consist of addons

Also try looking in data/xml outfits for my wayfarer is 24 and wedding is 23
 
check your outfit.xml
XML:
	<outfit id="23" [COLOR="#FF0000"]premium="yes"[/COLOR] default="0">
		<list gender="0" lookType="366" name="Wayfarer"/>
		<list gender="1" lookType="367" name="Wayfarer"/>
	</outfit>
Player must have a premium for this outfit.

To give all addons, write:
doPlayerAddOutfitId(cid, 23, 3)
 
Back
Top