895150
New Member
- Joined
- Jul 16, 2007
- Messages
- 31
- Reaction score
- 0
Hi ive been searching around for ages trying to find how to make potions not usable in pz. I found a thread on a mana rune scripts with : canUseInPz = false. I tried adding it into data/actions/liquids/potions.lua but no luck
Edit: Got it working finally if anybody is wondering add this in potions.lua underneath
if(not potion) then
return false
end
if (getTileInfo(getCreaturePosition(cid)).protection) then
doPlayerSendCancel(cid, "You cannot use potions in protection zones.")
return true
end
Edit: Got it working finally if anybody is wondering add this in potions.lua underneath
if(not potion) then
return false
end
if (getTileInfo(getCreaturePosition(cid)).protection) then
doPlayerSendCancel(cid, "You cannot use potions in protection zones.")
return true
end
Last edited: