darcioantonio
www.adventurerpg.com.br
- Joined
- Jul 30, 2013
- Messages
- 170
- Solutions
- 1
- Reaction score
- 16
- Location
- Brasil
- GitHub
- darcioantonio
- Twitch
- darcio_
- YouTube
- MundoOTServer
I Need check more itens.
I did this script but it only checks if it is 1 item just wanted to check + 1 an example of item 2152 wanted it 22 items
I did this script but it only checks if it is 1 item just wanted to check + 1 an example of item 2152 wanted it 22 items
LUA:
function onUse(cid)
local sqm = {x = 975, y = 844, z = 6}
local Bancada = 1642
local Item1 = 2152
if getTileItemById(sqm, Bancada).uid >= 1 and getTileItemById(sqm, Item1).uid >= 2 then
doSendMagicEffect(sqm, 30)
end
end