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

Next attack hit better?

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello.
Anyone have an script like this:
- If i cast buff my next attack get better damage ? (i mean One spell that increase next spell attack ?)
 
Not tested. Put this as a creaturescript:
LUA:
function onAttack(cid,target)
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, 1000)
setConditionParam(condition, CONDITION_PARAM_SKILL_MELEEPERCENT, 110)
setConditionParam(condition, CONDITION_PARAM_SKILL_SHIELDPERCENT, -100)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)

local s = 66000
if getPlayerStorageValue(cid, s) > 0 then
	setPlayerStorageValue(cid, s, -1)
	doAddCondition(cid, condition)
end
return true
end
 
Last edited:
I think this is bad . ;/
I want temp. script that if I active it, my next (only one) attack hit better than normal.
 
Ya, just do a spell that activate the storage.

Ex:
LUA:
local s = 66000
function onCastSpell(cid, var)
	if getPlayerStorageValue(cid, s) < 0 then
		setPlayerStorageValue(cid, s, 1)
		doSendMagicEffect(getCreaturePosition(cid), 12)
		doPlayerSendTextMessage(cid, 22, "Your next hit will be powerful.")
	end
	return true
end
 
Last edited:
I think he want something like this:
Active spell -> next hit after active hits better -> deactive the "buff" after the better hit. (remove storage)
 
Okay, I just remade the script. So now, if you have storagevalue from the spell, then you will hit more and the condition(attribute) will continue 1 second more after you've hit your strong hit...
 
Last edited:
Back
Top