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

Lua Destroy item on death

aha i know what he mean He say need a script/system like 7.5 then you can destory Big Table or chair or things A Item desotry
 
Untested, most likely more than 1 bug:

Lua:
onPrepareDeath(cid, deathList)

	local vip_items = {
		[1] = {1111, VIP helmet}, 
		[2] = {2222, VIP armor}, 
		[3] = {3333, VIP legs}
	}

	if getCreatureSkullType(cid) >= 4 then
		for i = 1, table.maxn(vip_items) do
			local current_item = vip_items[i]
			doPlayerRemoveItem(cid, current_items[1], getPlayerItemCount(current_item[1]))
		end
	end
	
	return true
end
 
Last edited by a moderator:
Back
Top