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

[click on tree - recive an addon]

rilleman

New Member
Joined
Feb 14, 2010
Messages
269
Reaction score
0
As topic says; Anyone can fix this? (Its for an christmas tree i have in temple)
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if (getPlayerStorageValue(cid, 4777) == EMPTY_STORAGE) then
		doCreatureSay(cid, "You have gained asas Addon", TALKTYPE_ORANGE_1)
		doPlayerAddOutfit(cid, 336, 3)
		doPlayerAddOutfit(cid, 335, 3)
		setPlayerStorageValue(cid, 4777, 1)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYDAMAGE)
	else
		doPlayerSendTextMessage(cid,22,"You already have your addon.")
	end
	return true
end

<action itemid="TREEID" script="tree.lua"/>
 
Back
Top