local manashield = Condition(CONDITION_MANASHIELD)
manashield:setTicks(-1)
if isInArray({1}, player:getVocation():getId()) then
player:addCondition(manashield)
end
if isInArray({1, 2}, player:getVocation():getId()) then
player:addCondition(manashield)
end
local manashield = Condition(CONDITION_MANASHIELD)
manashield:setTicks(-1)
if isInArray({1}, player:getVocation():getId()) then
player:addCondition(manashield)
end
if isInArray({1, 2}, player:getVocation():getId()) then
player:addCondition(manashield)
end
Thank you, works perfect!Take all of this and set it outside of onLogin
Then inside of onLogin you place something like this.LUA:local manashield = Condition(CONDITION_MANASHIELD) manashield:setTicks(-1)
That {1} is a table, place all the vocation id's you want to have manashield when they login, for instance if i wanted a sorcerer and druid I would set the table to.LUA:if isInArray({1}, player:getVocation():getId()) then player:addCondition(manashield) end
LUA:if isInArray({1, 2}, player:getVocation():getId()) then player:addCondition(manashield) end