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

Outfit Scroll

Script:
Code:
 local female = 0
 local male = 1

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if getPlayerSex(cid) == female then
	if getPlayerStorageValue(cid, 16344) == TRUE then
	   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but you already have this outfit.")
	 elseif getPlayerStorageValue(cid, 16344) == FALSE then
	   doPlayerAddOutfit(cid, 288, 0)
	   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations, you received the demon hunter outfit.")
	   doRemoveItem(item.uid)
	   setPlayerStorageValue(cid, 16344, TRUE)

	 elseif getPlayerSex(cid) == male then
	if getPlayerStorageValue(cid, 16344) == TRUE then
	   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Sorry, but you already have this outfit.")
	 elseif getPlayerStorageValue(cid, 16344) == FALSE then
	   doPlayerAddOutfit(cid, 289, 0)
	   doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Congratulations, you received the demon hunter outfit.")
	   doRemoveItem(item.uid)
	   setPlayerStorageValue(cid, 16344, TRUE)
  end
 end
  return TRUE
end



Tag:
Code:
	<action itemid="2239" script="demonHunter_outfit.lua" /> --burnt scroll(2239)--
 
Back
Top