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

Sudden Death unlimited rune HELP

wikutag

SoulBound 8.6 100% custom
Joined
Dec 27, 2012
Messages
305
Reaction score
0
Location
United states Kentucky
I get this error
Code:
[09/03/2014 23:47:12] [Error - LuaScriptInterface::loadFile] cannot open data/spells/scripts/attack/ultimate death.lua: No such file or directory
[09/03/2014 23:47:12] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/attack/ultimate death.lua)
[09/03/2014 23:47:12] cannot open data/spells/scripts/attack/ultimate death.lua: No such file or directory

How would i do this i got this
In spells
Code:
<rune name="Unlimited Death" id="2264" allowfaruse="1" lvl="45" maglv="15" exhaustion="2000" needtarget="1" blocktype="solid" event="script" value="attack/Unlimited death.lua"/>
and this in spells script
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -50, -1, -50, 7, 7, 6, 10)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
 
Last edited:
I don't really know how can you make this infinite as spell, but you can do it as an action...

Actions.xml
Code:
<action itemid="2268" allowfaruse="1" event="script" value="sd.lua"/>

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -50, -1, -50, 7, 7, 6, 10)

function onUse(cid, item, fromPosition, itemEx, toPosition)
    doCombat(cid, combat, numberToVariant(itemEx.uid))
end

You just need to edit the itemid.
 
Code:
[10/03/2014 00:18:28] (luaSetConditionParam) This function can only be used while loading the script.
[10/03/2014 00:18:28] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/sd.lua: No such file or directory
[10/03/2014 00:18:28] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/sd.lua)
[10/03/2014 00:18:28] cannot open data/actions/scripts/sd.lua: No such file or directory
wtf -.- changed the item and added what u had into mine even changed name to sd
 
Code:
[10/03/2014 00:18:28] (luaSetConditionParam) This function can only be used while loading the script.
[10/03/2014 00:18:28] [Error - LuaScriptInterface::loadFile] cannot open data/actions/scripts/sd.lua: No such file or directory
[10/03/2014 00:18:28] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/sd.lua)
[10/03/2014 00:18:28] cannot open data/actions/scripts/sd.lua: No such file or directory
wtf -.- changed the item and added what u had into mine even changed name to sd

Did you add your script to the actions folder?
 
Back
Top