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

Spell Mark of the Assassin ♥

Snake Royal

Snake Hunter ♥
Joined
Sep 9, 2011
Messages
25
Reaction score
3
Location
Poland
Mark of the Assassin ♥
Player deals a physical damage and mark the creature for 10 second. When target is marked, caster deals 50% more damage.
.
_______________________________________________
[video=youtube;XhxF3ReM5TQ]http://www.youtube.com/watch?v=XhxF3ReM5TQ[/video]


_______________________________________________
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Mark of the Assassin" version="1.0" author="Snake Royal" contact="otland.net" enabled="yes">
	<instant name="Mark of the Assassin" words="exori sin" lvl="50" mana="140" prem="1" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="7000" needlearn="0" event="script">
		<vocation id="4"/>
		<vocation id="8"/>
		<![CDATA[
			local combat = createCombatObject()
			setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
			setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
			setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WEAPONTYPE)

			function onGetFormulaValues(cid, level, skill, attack, factor)
				local skillTotal, levelTotal = skill + attack, level / 5
				return -(skillTotal / 3 + levelTotal), -(skillTotal + levelTotal)
			end

			function onTargetCreature(cid, target) 
				registerCreatureEvent(target, "Mark of the Assassin/statschange001")
				doCreatureSetStorage(target, 1000, os.time() + 10)
				doCreatureSetStorage(target, 1001, cid)
				return true
			end
			
			
			setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature")
			setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
			function onCastSpell(cid, var)
				return doCombat(cid, combat, var)
			end

		]]>
	</instant>
	
	<event type="statschange" name="Mark of the Assassin/statschange001" event="script"><![CDATA[
		function onStatsChange(cid, attacker, type, combat, value)
			if (getCreatureStorage(cid, 1000) > os.time() and getCreatureStorage(cid, 1001) == attacker and type == STATSCHANGE_HEALTHLOSS) then
				doSendMagicEffect(getThingPosition(cid), CONST_ME_STUN)
				doCreatureAddHealth(cid, -math.ceil(value * 0.5))
			end
			return true
		end
	]]></event>
</mod>
mods/yourname.xml
 
Last edited:
What does it do?
Player deals a physical damage and mark the creature for 10 second. When target is marked, caster deals 50% more damage. I'll upload videos, which show this spell.
 
Last edited:
Could it be like when someone gots the mark of assassin, everybody who hurts he will deal +50% but the caster cant say any spells
 
I don't see any differnce. You hit exacly the same with the spell and without...
 
I think this is dealing 150% more than normal not 50%.

It will be the attack plus the attack more 1.5x

EX:
Attack = 100
Attack with spell = 100 + 100*1.5 = 250
 
Back
Top