• 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!

Onuse with vocation req

Swiff

Member
Joined
Apr 6, 2009
Messages
366
Reaction score
12
Location
Sweden
So I got this script from http://otland.net/f81/catch-summon-monster-vial-157760/ Virrages,

I would like to use this for my custom vocation, thus I'd need to make a "ifNot" vocation id 18 then "sorry, only master ultra giga super sayajains (with green hats) can use this" ~
I thought for sure this has been requested before, I actually did few years ago on Otfans but it's down - But I couldn't find any onUse item with a voc req on it.

Can I get some guidance?

Thanks in advance
 
Lua:
local vocations = {1, 2, 5, 6}

if not isInArray(vocations, getPlayerVocation(cid)) then
	doPlayerSendCancel(cid, "This is not for your vocation.")
	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF) 
	return true
end
 
Back
Top