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

Need a vocation to enter TP rep

calveron

Bravemansworld
Joined
Feb 5, 2008
Messages
165
Reaction score
13
Location
Sweden
Could anyone help me fix a script so that you need to have a vocation to enter a tp, rep+ of course =)
 
Code:
local place = {x=1000, y=1000, z=7}

function onStepIn(cid, item, position, fromPosition)
 
  if is[B][COLOR="Red"]Sorcerer[/COLOR][/B](cid) then
     doTeleportThing(cid, place)
     doPlayerSendTextMessage(cid, TALKTYPE_MONSTER_YELL, "You are teleported!")
	 doSendMagicEffect(getPlayerPosition(cid), 10)

 else
     doPlayerSendCancel(cid, "You Don't Have The Required Vocation!")
	 doTeleportThing(cid, fromPosition, TRUE)
	 doSendMagicEffect(getPlayerPosition(cid), 2) 
 end
end

in the place that Sorcerer (this mean sorcerer and master sorcerer's)
just change it even to Druid or Paladin or Knight
 
Back
Top