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

[Request] 2 Runes [+1 if help]

cesar10

Active Member
Joined
Aug 4, 2009
Messages
427
Reaction score
37
Hello TibiaAdicts xD well im here to request a simple [for experts not me] script
actualy its 2 scripts

1st: Frezzer Rune
Description:
*When Use On Player Sends X Distance Effect To The Player You Used It
Each Second Like If Hiting With Rod And At Same Time Does Magic Effect [31] Each Second
* Dosent Let Player Use Any Action Or Spell
* Dosent Let Player Move
*Last 10Seconds

2nd: Ultra Paralize
*Make Player You Used On Move THE MOST SLOW POSIBLE until he uses Haste
*Player Cant Use Actions Or Spells While Your Paralized

PLEASE HELP ME ON THIS ): I RLY NEED AT LEAS ONE OF THIS

I WILL REP+ EVERY TIME I CAN :D!
PLEASE :(
 
well..at lua i guess storages+onCast(return false) would make it work
dunno if you can override all action scripts via lua
 
this would be the actions part
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
    
    if getCreatureStorage(cid, 15345) > 0 then
        return doPlayerSendCancel(cid, 'You are paralyzed.')
    end

    return false
end
XML:
<action default="yes" event="script" value="paralyze.lua"/>
 
@up
You must spread some Reputation around before giving it to CyberM again.

Wtf Sry Ill Rep When I Can :) Thx For Helping Me Out :)
 
im not asking for rep xP

cast spells part
Lua:
function onCast(cid, target)
	if getCreatureStorage(cid, 15345) > 0 then
		return false, doPlayerSendCancel(cid, 'You are paralyzed.')
	end
	return true
end
XML:
<event type="cast" name="paralyze" event="script" value="paralyze.lua"/>
login.lua
Lua:
registerCreatureEvent(cid, "paralyze")
 
2286 is currently used (Poison Bomb) (spells/scripts/attack/poison bomb.lua)
will you replace it or use another unused rune like 2312?
 
Current version information - version: 0.4.0, patch: 0, build: 3429, timestamp: 1261647210.
xDD 0.4.0 i think it is xDD

YES IT IS :D
[11/02/2011 18:10:52] The Forgotten Server, version 0.4.0 (Crying Damson)
 
try this mod
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Custom Runes" author="C" contact="otland.net" enabled="yes">

	<config name="rune_config">
		<![CDATA[
			storage = 13356
			
			restore = function(cid)
				return isPlayer(cid) and doCreatureSetStorage(cid, storage, 0), doCreatureSetNoMove(cid, false)
			end
		]]>
	</config>

	<event type="cast" name="cast" event="buffer">
		<![CDATA[
			domodlib('rune_config')
			if getCreatureStorage(cid, storage) > 0 then
				return false, doPlayerSendCancel(cid, 'You are paralyzed.')
			end		
		]]>
	</event>

	<event type="login" name="registering" event="buffer">
		<![CDATA[
			domodlib('rune_config')
			registerCreatureEvent(cid, "cast")
			doCreatureSetStorage(cid, storage, 0)
		]]>
	</event>

	<action default="yes" event="script">
		<![CDATA[
			domodlib('rune_config')
			function onUse(cid, item, fromPosition, itemEx, toPosition)
				if getCreatureStorage(cid, storage) > 0 then
					return doPlayerSendCancel(cid, 'You are paralyzed.')
				end
				
				local item = getItemInfo(item.itemid)
				if(item.weaponType == WEAPON_SWORD or item.weaponType == WEAPON_CLUB or item.weaponType == WEAPON_AXE) then
					return destroyItem(cid, itemEx, toPosition)
				end

				return false
			end
		]]>
	</action>

	<rune name="Freezer Rune" id="2312" allowfaruse="1" charges="3" lvl="14" maglv="4" exhaustion="2000" needtarget="1" blocktype="solid" event="script">
		<text>
			<![CDATA[
				local condition = createConditionObject(CONDITION_FREEZING, 10000)
				setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
				addDamageCondition(condition, 5, 2000, -10)
				
				domodlib('rune_setup')
				
				function onCastSpell(cid, var)
					if not isPlayer(getCreatureTarget(cid)) then
						return false, doPlayerSendCancel(cid, 'Your target is not a player.')
					end

					if getCreatureStorage(getCreatureTarget(cid), storage) > 0 then
						return false, doPlayerSendCancel(cid, 'Your target is already paralyzed.')
					end
   
					addEvent(restore, 10000, cid)
					doAddCondition(cid, condition)
					doCreatureSetStorage(getCreatureTarget(cid), storage, 1)
					doSendMagicEffect(getThingPos(target), CONST_ME_MAGIC_RED)
					doPlayerSendCancel(cid,'You\'ve been paralyzed and are unable to use actions or spells.')
					return true
				end
			]]>
		</text>
	</rune>

	<rune name="Ultra Paralize" id="2294" allowfaruse="1" charges="3" lvl="14" maglv="4" exhaustion="2000" needtarget="1" blocktype="solid" event="script">
		<text>
			<![CDATA[
				local condition = createConditionObject(CONDITION_PARALYZE, 10000)
				setConditionParam(condition, CONDITION_PARAM_SPEED, -999)
				
				domodlib('rune_setup')
				
				function onCastSpell(cid, var)
					if not isPlayer(getCreatureTarget(cid)) then
						return false, doPlayerSendCancel(cid, 'Your target is not a player.')
					end
					
					if getCreatureStorage(getCreatureTarget(cid), storage) > 0 then
						return false, doPlayerSendCancel(cid, 'Your target is already paralyzed.')
					end
   
					addEvent(restore, 10000, cid)
					doCreatureSetNoMove(cid, true)
					doAddCondition(cid, condition)
					doCreatureSetStorage(getCreatureTarget(cid), storage, 1)
					doSendMagicEffect(getThingPos(target), CONST_ME_MAGIC_RED)
					doPlayerSendCancel(cid,'You\'ve been paralyzed and are unable to use actions or spells.')
					return true
				end
			]]>
		</text>	</rune>
	
	<conjure name="Freezer Rune" words="exevo freeze" lvl="14" mana="200" soul="1" reagentId="2260" conjureId="2312" conjureCount="3" exhaustion="1000" needlearn="0" event="function" value="conjureRune">
		<vocation id="2"/>
		<vocation id="6"/>
	</conjure>
	
	<conjure name="Ultra Paralize" words="exevo paralyze" lvl="14" mana="200" soul="1" reagentId="2260" conjureId="2294" conjureCount="3" exhaustion="1000" needlearn="0" event="function" value="conjureRune">
		<vocation id="2"/>
		<vocation id="6"/>
	</conjure>
	
	<item id="2312" article="a" name="Freezer Rune" override="yes">
		<attribute key="runeSpellName" value="exevo freeze" />
		<attribute key="type" value="rune" />
		<attribute key="weight" value="25" />
	</item>

	<item id="2294" article="a" name="Ultra Paralize" override="yes">
		<attribute key="runeSpellName" value="exevo paralyze" />
		<attribute key="type" value="rune" />
		<attribute key="weight" value="20" />
	</item>

</mod>
 
Back
Top