JA
dúvida

Erro Script De Não Dropar Item No Slot Do Shield

Por Janmix, 29 de set. de 2012 em Scripts

script
5
805
JanmixJ
29 de setembro de 2012 às 15:22

local item = getPlayerSlotItem(cid, 5).itemid == 5907

 

function onDeath(cid, lastHitKiller, mostDamageKiller)

if getPlayerSkullType(cid) >= 4 then

doCreatureSetDropLoot(item, false)

else

doCreatureSetDropLoot(item, false)

end

return true

end

 

erro:

[29/09/2012 14:35:11] [Error - CreatureScript Interface]

[29/09/2012 14:35:11] data/creaturescripts/scripts/noDrop.lua

[29/09/2012 14:35:11] Description:

[29/09/2012 14:35:11] (luaGetPlayerSlotItem) Player not found

 

esse script ta com erro o player morre dropa o item e esta dando um erro no executavel quem souber arrumar ou criar 1 script que faça o mesmo efeito que é não dropar items no slot do shield ou nao dropar o item 5907.

 

rep+

LuckOakeL
29 de setembro de 2012 às 15:32

function onDeath(cid, lastHitKiller, mostDamageKiller)
if getPlayerSlotItem(cid, 5).itemid == 5907 then
if getPlayerSkullType(cid) >= 4 then
doCreatureSetDropLoot(cid, false)
end
end
return true
end

 

Tenta ai.

JanmixJ
29 de setembro de 2012 às 15:48

não ta dando mais o erro só que ainda ta dropando o item. :/

LuckOakeL
29 de setembro de 2012 às 15:52

Já registrou no login.lua?

JanmixJ
29 de setembro de 2012 às 16:03

sim