Hello, i need help with max door level at config i wrote 2000 then it doesnt work on the doors, i think i need edit soruce or smth. pleasse help rep will you get if you help me!
Tfs 0.3.6
Tfs 0.3.6
config =
{
minlevel = 0,
maxlevel = 150
}
function onUse(cid, item, fromPos, itemEx, toPos)
if (getPlayerLevel(cid) < config.minlevel or getPlayerLevel(cid) > config.maxlevel) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.")
else
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPos)
end
return true
end
should i put the id of the door at action.xml? and what should i add at the door what id?