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

Cannot Attack

Jaed Le Raep

★Gaeming★
Joined
Sep 3, 2007
Messages
1,298
Reaction score
446
What's a function/condition that makes a character or monster unable to attack for a set amount of time?
 
lua way is creaturescript onAttack/onCombat/onCast/onAreaCombat/onTarget
with exhaustion if you need to keep it after death/relog
 
LUA:
exhaustion = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaustion, CONDITION_PARAM_TICKS, 3000)
doAddCondition(cid, exhaustion)

But the best way is to go c++.

@edit

You ment attack not cast spells. :D I'm so tired that I'm seeing things. Anyways cbrm lua method is the legit one, but cpp is more efficient.
 
LUA:
exhaustion = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaustion, CONDITION_PARAM_TICKS, 3000)
doAddCondition(cid, exhaustion)

But the best way is to go c++.

I really don't plan to dive into c++ aspect of things. With the method of exhaust, if i were to set it for 6 seconds, would that also mean that the character wouldn't be able to attack at all for those 6 seconds? Note, I'm not talking via spells, just regular attacking.
 
What's a function/condition that makes a character or monster unable to attack for a set amount of time?

That's a lot of work, Why dont you just create the illusion of that.
Just by increasing there attack speed to example 30 seconds. (So bassicly hit every 30 seconds). That creates the illusion that the aren't hitting.
Besides that you can remove there melee dammig. because even if you set it to 30 seconds the first attack will pof then.
 
That's a lot of work, Why dont you just create the illusion of that.
Just by increasing there attack speed to example 30 seconds. (So bassicly hit every 30 seconds). That creates the illusion that the aren't hitting.
Besides that you can remove there melee dammig. because even if you set it to 30 seconds the first attack will pof then.

Lol, wow, thank you :) That's the exact type of work-around that I needed. You've been awesome.
 
I got a server and everything hunting spot work, quest too but when am using pots i lose them i whanna make pots umlimdet how do i do that?
 
Back
Top