Acho que assim funciona, mais nem testei. Sóh substituir la:
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local t = string.explode(param, ",")
local ret = RETURNVALUE_NOERROR
local pos = getCreaturePosition(cid)
local id = tonumber(t[1])
--------------------------------------------------------------------------------------------
local execoesId = {12642, 12643, 12644} -- adicionar os ids que não poderão funcionar
for i=0, #execoesId do
if (id == tonumber(execoesId[i])) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Este id nao eh valido!")
return true
end
end
--------------------------------------------------------------------------------------------
if(not id) then
id = getItemIdByName(t[1], false)
if(not id) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.")
return true
end
end
local amount = 100
if(t[2]) then
amount = t[2]
end
local item = doCreateItemEx(id, amount)
if(t[3] and getBooleanFromString(t[3])) then
if(t[4] and getBooleanFromString(t[4])) then
pos = getCreatureLookPosition(cid)
end
ret = doTileAddItemEx(pos, item)
else
ret = doPlayerAddItemEx(cid, item, true)
end
if(ret ~= RETURNVALUE_NOERROR) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1])
return true
end
doDecayItem(item)
if(not isPlayerGhost(cid)) then
doSendMagicEffect(pos, CONST_ME_MAGIC_RED)
end
return true
end





info
Grupo: Banidos
Registrado: 25/01/12
Posts: 1
Reputação: 0
Tipo do script: talkactions
Protocolo (versão do Tibia): 8.60
Servidor utilizado: TFS 0.4
Nível de experiência: Médio
Adicionais/Informações: /i com exeções
Preciso de um script que o comando /i não crie certos tipos de items. Alguma das ids que não poderão ser criados no /i são: 12642, 12643, 12644 e outros (caso alguem me ajude com a script eu mesmo adiciono o resto dos IDs).
Agradeço desde já..
dou REP++