Cześć, Próbuję zrobić Pierścień który daje pz (nie można wejść do dp i domków) długo się nad tym męczyłem, szukałem też w necie i nie dało to efektu. Robiłem to samemu a jestem w tym trochę zielony ;/ Pomoże ktoś?

plik test.lua
function onEquip(cid, item, slot)
if(item.itemid == 2124) and (slot == ring) then
getTilePzInfo(cid == 1) 1 is pz. 0 no pz. -- Returns the protection zone status of a tile 25
end
return 1
end
wpis w movements.xml
<movevent event="Equip" itemid="2124" slot="ring" value="test.lua"/>
próbowałem lua napisać też tak, pomoże ktoś?
function onEquip(cid, item, slot)

if(item.itemid == 2124) then
getTilePzInfo(pos) 1 is pz. 0 no pz. -- Returns the protection zone status of a tile 25
end
return 1
end