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

Flags request ^^

Bintzer

One Love
Joined
Dec 19, 2007
Messages
1,763
Reaction score
30
Location
Orlando
Hi, is it possible to make a player to not be able to attack or be attacked by other players but still be attacked by monsters? I tried doing the "Cannot be attacked" flag but then monsters will ignore the player also. Sorry if there is already a custom flag for this I couldn't find it.

If there isnt a flag for it could you tell me how to make it happen? :o I'm needing this for tutors.
 
Hi, is it possible to make a player to not be able to attack or be attacked by other players but still be attacked by monsters? I tried doing the "Cannot be attacked" flag but then monsters will ignore the player also. Sorry if there is already a custom flag for this I couldn't find it.

If there isnt a flag for it could you tell me how to make it happen? :o I'm needing this for tutors.

you could always edit combat.cpp in the isprotected function to check if a player has accesslevel / groupid higher than regular players
 
i still cannot get any of the "CUSTOM FLAGS SYSTEM" of the TFS to work right...

Also where are these CUSTOM FLAGS at?..

Seeing in 0.3 they updated to a custom flag system...
 
@up

data/lib/constant.lua

Code:
PlayerCustomFlag_CanReportBugs = 0
PlayerCustomFlag_CanSeePosition	= 1
PlayerCustomFlag_CanSeeItemDetails = 2
PlayerCustomFlag_CanSeeCreatureDetails = 3
PlayerCustomFlag_NotSearchable = 4
PlayerCustomFlag_GamemasterPrivileges = 5
PlayerCustomFlag_CanThrowAnywhere = 6
PlayerCustomFlag_CanPushAllItems = 7
PlayerCustomFlag_CanMoveAnywhere = 8
PlayerCustomFlag_CanMoveFromFar = 9
PlayerCustomFlag_CanLoginMultipleCharacters = 10
PlayerCustomFlag_HasFullLight = 11
PlayerCustomFlag_CanLogoutAnytime = 12
PlayerCustomFlag_HasInfiniteStamina = 13
PlayerCustomFlag_IsProtected = 14
PlayerCustomFlag_IsImmune = 15
PlayerCustomFlag_NotGainSkull = 16
PlayerCustomFlag_NotGainUnjustified = 17
PlayerCustomFlag_CanSeeStaffChannel = 18
PlayerCustomFlag_CanSeeCounsellorChannel = 19
PlayerCustomFlag_DescriptionGroupInsteadVocation = 20
PlayerCustomFlag_HideLevel = 21
PlayerCustomFlag_IgnoreDisable = 22
 
O.O I know how to compile it I just don't know how to make the codes, I already have some codes added that aren't in the normal TFS but I'm using 0.31 If you could just tell me what to add that would be great.
Edit: Also Pitufo, I know this is completley unrelated but could you also tell me how to use the function doCreatureSetNoMove(cid, cannotMove)? Do I add a time interval or something? And how do I remove it?
 
Back
Top