local zabierz = 300
local kolor = 163
function onStepIn(cid, item, pos)
local zycie = getCreatureHealth(cid)
local topos = getPlayerPosition(cid)
if item.actionid == 9881 and isKnight(cid) == FALSE then
doCreatureAddHealth(cid, -zycie)
doCreatureSay(cid, "You have choosen the wrong path!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), 15)
elseif item.actionid == 9881 and isKnight(cid) == TRUE then
doCreatureAddHealth(cid, -zabierz)
doSendMagicEffect(getPlayerPosition(cid), 15)
end
return 1
end