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

Solved TFS 0.3.6pl1 is lacking function getCreatureCondition - How can I get it?

zajacmp3

New Member
Joined
Jan 5, 2009
Messages
35
Reaction score
0
Location
Poland, Gdansk
Hello!

If you are willing to help I will be grateful for... some time ;)

My engine is lacking this very needed function getCreatureCondition
It is marked as TODO but it was never done.

How can I get it? I can't find any c++ code for it?

Any... And now I just say - ANY help will be appreciated!

Thank YOU if you are reading this and you are willing to help!
 
Last edited:
Okay thx every one I mark this solved. I checked by test NPC it and it works

Here is the code I used to check:

PHP:
function onCreatureSay(cid, type, msg)
	msg = string.lower(msg)

	if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then
		selfSay('Fight')
		focus = 0

	elseif (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 and (getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE) then
		selfSay('No Fight')
		focus = 0
	end
end
 
Back
Top