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

Awesome Spell Request.

Lbtg

Advanced OT User
Joined
Nov 22, 2008
Messages
2,398
Reaction score
165
Hello I wand request a spell
the Spell:
then player cast this spell he will block all demage for 10 seconds and then he casted this spell hes gain 1k hp/mana every 1 second till demage block ends also this spell should take 10 crystal coins from you on cast .

sorry for me bad english.
 
No need more info...

Player Cast Spell with duration 10 secs....
The spell absorb all damage
Every sec passed after cast spell and until it finish, the player gain 1k mana and hp....
Need to paid to cast spell (10 cc)
 
yeah , when plaer cast this spell he will block all demages making on him for 10 seconds , and from start spell he gain 1khp/mana every second till spell ends , and to cast this spell you need have x crystal coins
 
That sux.
If the player got low mana or health and is not in fight, he will cast the spell and fill his heath and mana for nothing.
 
GOOD SPELL!
I need this too ^^

But:
-when player say "exura go" reduces all damage, and when say "exura go" again, stop reduces
-when reduce damage, remove 1/10hp/s

someone can? :D

Pzdr,
Erexo.
 
No need more info...

Player Cast Spell with duration 10 secs....
The spell absorb all damage
Every sec passed after cast spell and until it finish, the player gain 1k mana and hp....
Need to paid to cast spell (10 cc)

So, if I have 200 hp, and I cast this spell, after 8 seconds I will have 8200hp. Thats way to OP?

Perhaps you want to refill up to max hp every second. But why the hell do that if you have 100% protection? You aint loosing any health. :P
 
well i want this spell for people who near death in war to save your life for little more time.

Its For High Rate server so ,spell should block all demage for 10 seconds and like i told when spell is made he gain every 1 sec 1kmana/hp so totaly 10kmana/10k hp in 10 sec spell . and to cast it need have lets say 10 crystal coins . and you can't cast this spell anymore for 15 minutes
 
LUA:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Shield" author="c" enabled="yes">	
	<config name="abs">
		<![CDATA[
			storage = 23142
			vocations = {1,2,3,4,5,6,7,8}
			money = 10000
			time = 10 * 1000
			condition = createConditionObject(CONDITION_INFIGHT)
			setConditionParam(condition, CONDITION_PARAM_TICKS, time)
			
			local condition1 = createConditionObject(CONDITION_REGENERATION)
            setConditionParam(condition1, CONDITION_PARAM_SUBID, 1)
            setConditionParam(condition1, CONDITION_PARAM_BUFF, true)
            setConditionParam(condition1, CONDITION_PARAM_TICKS, time)
            setConditionParam(condition1, CONDITION_PARAM_HEALTHGAIN, 1000)
            setConditionParam(condition1, CONDITION_PARAM_HEALTHTICKS, 1000)

            local condition2 = createConditionObject(CONDITION_REGENERATION)
            setConditionParam(condition2, CONDITION_PARAM_SUBID, 1)
			setConditionParam(condition2, CONDITION_PARAM_BUFF, true)
            setConditionParam(condition2, CONDITION_PARAM_TICKS, time)
            setConditionParam(condition2, CONDITION_PARAM_MANAGAIN, 1000)
            setConditionParam(condition2, CONDITION_PARAM_MANATICKS, 1000)
 
			function doFinish(cid)
				return isPlayer(cid) and stopEvent(event1) and doPlayerSetStorageValue(cid, storage, 0)
			end
 
			function doWaste(cid)
				if isPlayer(cid) then
					if getPlayerMoney >= money then 	
						doPlayerRemoveMoney(cid, money) 
						doSendMagicEffect(getThingPos(cid), CONST_ME_LOSEENERGY)
						event1 = addEvent(doWaste, 1000, cid)
					else
						stopEvent(event2)
						doPlayerSetStorageValue(cid, storage, 0)
						doPlayerSendCancel(cid, 'Your shield has worn out.')
					end
				end	
			end
		]]>
	</config>
 
	<event type="login" name="shield2" event="script">
		<![CDATA[
			domodlib('abs')
			function onLogin(cid)
				registerCreatureEvent(cid, "shield3")
				doPlayerSetStorageValue(cid, storage, 0)
				return true
			end
		]]>	
	</event>
 
	<event type="statschange" name="shield3" event="script">
		<![CDATA[
			domodlib('abs')
			function onStatsChange(cid, attacker, type, combat, value)
				if isInArray(vocations, getPlayerVocation(cid)) and combat ~= COMBAT_HEALING and isCreature(attacker) and getPlayerStorageValue(cid, storage) > 0 then
					if math.abs(value) > getCreatureHealth(cid) then
						stopEvent(event1)
						stopEvent(event2)
						doSendAnimatedText(getThingPos(cid), TEXTCOLOR_DARKORANGE, 'BREAK')
						doPlayerSendCancel(cid, 'Your shield was broken!')
						doPlayerSetStorageValue(cid, storage, 0)
						return true
					else
						return false
					end
				end
				return true
			end
		]]>
	</event>
 
	<instant name="Absorb Shield" words="utamo gran" lvl="100" mana="100" soul="10" exhaustion="30000" event="script">
		<text>
			<![CDATA[
				domodlib('abs')
				function onCastSpell(cid, var)
					if getPlayerStorageValue(cid, storage) > 0 then
						doPlayerSendCancel(cid,'Your shield is still active.')
						return false
					end
 
					doAddCondition(cid, condition)
					doAddCondition(cid, condition1)
					doAddCondition(cid, condition2)
					doPlayerSetStorageValue(cid, storage, 1)
					event1 = addEvent(doWaste, 1000, cid)
					event2 = addEvent(doFinish, time, cid)
					doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN)
					doPlayerSendCancel(cid,'You have just enabled shield for 10 seconds.')
					return true
				end
			]]>
		</text>
		<vocation id="1;2;3;4;5;6;7;8"/>
	</instant>
</mod>
 
Last edited:
Ough,
can you remake this script to:
-when player say "exura go" reduces all damage, and when say "exura go" again, stop reduces
-when reduce damage, remove 1/10hp /s
-and when you have less/or 1/10hp shields stop

Plix :)
 
Ough,
can you remake this script to:
-when player say "exura go" reduces all damage, and when say "exura go" again, stop reduces
-when reduce damage, remove 1/10hp /s
-and when you have less/or 1/10hp shields stop

Plix :)

might be it even wont work but i'm not gonna to fix it...

LUA:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Shield" author="Apsivaflines" enabled="yes">	
	<config name="abs">
		<![CDATA[
			storage = 23142
			vocations = {1,2,3,4,5,6,7,8}
			health = 10
			time = 10 * 1000
			condition = createConditionObject(CONDITION_INFIGHT)
			setConditionParam(condition, CONDITION_PARAM_TICKS, time)
 
			function doFinish(cid)
				return isPlayer(cid) and stopEvent(event1) and doPlayerSetStorageValue(cid, storage, 0)
			end
 
			function doWaste(cid)
				if isPlayer(cid) then
					if getCreatureHealth(cid) >= health then 	
						doCreatureAddHealth(cid, -health) 
						doSendMagicEffect(getThingPos(cid), CONST_ME_LOSEENERGY)
						event1 = addEvent(doWaste, 1000, cid)
					else
						stopEvent(event2)
						doPlayerSetStorageValue(cid, storage, 0)
						doPlayerSendCancel(cid, 'Your shield has worn out.')
					end
				end	
			end
		]]>
	</config>
 
	<event type="login" name="shield2" event="script">
		<![CDATA[
			domodlib('abs')
			function onLogin(cid)
				registerCreatureEvent(cid, "shield3")
				doPlayerSetStorageValue(cid, storage, 0)
				return true
			end
		]]>	
	</event>
 
	<event type="statschange" name="shield3" event="script">
		<![CDATA[
			domodlib('abs')
			function onStatsChange(cid, attacker, type, combat, value)
				if isInArray(vocations, getPlayerVocation(cid)) and combat ~= COMBAT_HEALING and isCreature(attacker) and getPlayerStorageValue(cid, storage) > 0 then
					if math.abs(value) > getCreatureHealth(cid) then
						stopEvent(event1)
						stopEvent(event2)
						doSendAnimatedText(getThingPos(cid), TEXTCOLOR_DARKORANGE, 'BREAK')
						doPlayerSendCancel(cid, 'Your shield was broken!')
						doPlayerSetStorageValue(cid, storage, 0)
						return true
					else
						return false
					end
				end
				return true
			end
		]]>
	</event>
 
	<instant name="Absorb Shield" words="exura go" lvl="100" mana="100" soul="10" event="script">
		<text>
			<![CDATA[
				domodlib('abs')
				function onCastSpell(cid, var)
					if getPlayerStorageValue(cid, storage) > 0 then
					    doPlayerSetStorageValue(cid, storage, 0)
						stopEvent(event1)
						stopEvent(event2)
						doPlayerSendCancel(cid,'Your shield is  Disactive.')
						return false
					end
 
					doAddCondition(cid, condition)
					doPlayerSetStorageValue(cid, storage, 1)
					event1 = addEvent(doWaste, cid)
					doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_GREEN)
					doPlayerSendCancel(cid,'You have just enabled shield.')
					return true
				end
			]]>
		</text>
		<vocation id="1;2;3;4;5;6;7;8"/>
	</instant>
</mod>
 
Back
Top