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

item slot

Yony

New Member
Joined
Sep 7, 2007
Messages
318
Reaction score
0
Location
Israel
i want to check what is the item slot of an item , (no getPlayerSlotItem cuz i want it to check when the item isnt equiped).. to check if it is (amulet/armor/legs/helmet etc..)
can anyone tell me how i do so?
im using 0.3.4

thx
 
Last edited:
Code:
function onThink(interval, lastExecution, thinkInterval)
local players = getPlayersOnline()
	for _,pid in ipairs(players) do
		if getPlayerSlotItem(pid,CONST_SLOT_HEAD) then
			doPlayerSendTextMessage(pid,27,'You have a helmet equipped.')
		else
			doPlayerSendTextMessage(pid,27,'You don\'t have a helmet equipped.')
		end
	end
	return true
end

use something like this.
A globalevent will check every player wether it has an item equipped or not.
 
i'm afraid it's not possible in 0.3.4! :S
but why don't you get 0.3.6pl1, and then downgrade it to the desired protocol?
 
Back
Top