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

[ACTIONS] Get outfit by quest

Ataro

Member
Joined
Oct 28, 2010
Messages
689
Reaction score
20
Location
Netherlands
Hey, i found scripts about getting addons by quest but i want getting outfit by quest.
Custom outfits example:
Adding elf to the outfit menu like gods have on most ots.
 
You can change the ActionID to whatever you want. Put it onto a chest. Anything really.
I'm not sure if this will work... I use it for addons.

LUA:
function onUse(cid, item, frompos, item2, topos)
local looktype = 159
	if getPlayerStorageValue(cid,5500) == -1 then
		doPlayerAddOutfit(cid,looktype,1)
		setPlayerStorageValue(cid,5500,1)
		doCreatureSay(cid, "Elf Outfit!", TALKTYPE_ORANGE_1)
	end
return true
end

XML:
<action actionid="9989" event="script" value="quests/elfoutfit.lua"/>
 
Back
Top