• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ If creature name is == "XX" player (you) cant follow him

breadmaker

New Member
Joined
Jul 16, 2010
Messages
160
Reaction score
3
Hello there.
I have a request in C++ [ TFS 0.3.6pl1]
Where I can do in sources this little patch:
If creature name is == "XX" player (you) can't follow this creature (if you trying to follow the creature with RMB -> Follow it refuse you message: "You cant follow this creature." and you dont following it)

Thanks in advance,
peace.
 
Hello there.
I have a request in C++ [ TFS 0.3.6pl1]
Where I can do in sources this little patch:
If creature name is == "XX" player (you) can't follow this creature (if you trying to follow the creature with RMB -> Follow it refuse you message: "You cant follow this creature." and you dont following it)

Thanks in advance,
peace.
Why C++ you can do this as a creaturescript, simple onFollow Script.
 
Code:
function onFollow(cid, target)
     if getCreatureName(target):lower() == "squirrel" then
         doPlayerSendCancel(cid, "You can't follow this creature.")
         return false
     end
     return true
end
 
Back
Top