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

Special Description..

alvo

New Member
Joined
Oct 20, 2009
Messages
45
Reaction score
0
Someone could do one script for me? you say /sd "special description" and the item in your front gain one special desc.. using that function doItemSetAttribute(uid, "description", desc) , if it's possible..


ty,cya
 
Code:
function onSay(cid, words, param, channel)
	if(param == "") then
		doPlayerSendCancel(cid, "You have to type description.")
		return true
	end

	local pos = getCreatureLookPosition(cid)
	pos.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
	local item = getThingFromPos(pos).uid
	if(item) then
		doItemSetAttribute(item, "description", param)
	end
	return true
end
 
Back
Top