if getplayervocation(cid) == 4 or getplayervocation(cid) == 8 then
spell comes here
else
somemessage
end
if isInArray({vocid, vocid, vocid...}, getPlayerVocation(cid)) == TRUE then
return doCombat(...)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_SMALL, "Your vocation may not use this rune.")
return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
local voc = 4, 8
if getPlayerVocation(cid) == voc then
i should make so.
PHP:local voc = 4, 8 if getPlayerVocation(cid) == voc then
local vocs = { 4, 8 }
if isInArray(vocs, getPlayerVocation(cid)) == TRUE then
...
end