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

Monster doesn't attack ppl with vocation id = x

carreter

New Member
Joined
Aug 17, 2010
Messages
13
Reaction score
0
Hello! How can I setup a monster script which checks the vocation id of the players and if it's for example >4 then attack him.
Also the players with vocation <4 can't attack them.
Thank you!
 
Sure can be done , but be more specific this is for all mosnters or only 1 monster, and if monster dont attack player of voc x then players of voc x also cant attack him?
 
make a creaturescript file and add this in the monster file

PHP:
function onCombat(cid, target)

if getPlayerVocation(target) < 4
    return FALSE
end
    return TRUE
end
 
Back
Top