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

Script problem

Pening

Pingwin :P
Joined
Nov 25, 2008
Messages
152
Reaction score
6
Location
Poland/Płock
Hi
I want add one more storagevalue but I don't know how add to other uniqueid

Code:
local itemUniqueIds = {12901, 12902, 12903, 12904, 12905}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	for i = 1, #itemUniqueIds do
		if item.uid == itemUniqueIds[i] then
			setPlayerStorageValue(cid, 12538, i)
			
		else
			doPlayerSendCancel(cid, text)
		end
		end
	end
return TRUE
end
 
?

Code:
local itemUniqueIds = {12901, 12902, 12903, 12904, 12905}

You can add more there?
Then you register new uid at actions.xml... if thats what you mean o_O
 
Back
Top