• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Rune] Certain Vocation Use Only?

I just add that to the top of the script?
and
Can you implement a message?

"You cannot use this rune, your not a knight"
 
I fixed it for him. Just put
Code:
if getplayervocation(cid) == 4 or getplayervocation(cid) == 8 then
Code:
spell comes here
Code:
else
Code:
somemessage
Code:
end
 
In funtion onCastSpell():
Code:
    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
 
Back
Top