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

Lua Needing Script's!

Oldschool'er

Tibia since 1998'
Joined
Dec 14, 2010
Messages
2,198
Reaction score
149
Location
United States
Hello and im looking for 2 simple small script's :P

(1) Super SD (Exaust 1000 and for level 300) (2)Orb of Upgrade *used to upgrade 1+ on you're euiped item 10x)
9nuFV.png
IN1dE.png


If anyone can help i will Rep++

Yes i know i can search, But that's what support is FOR! :)
 
Super sd? here we go
LUA:
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, 0, -3100, 0, -3300)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
change the formula if you want..
now spells.xml

XML:
<rune name="Super sudden death rune" id="Yourid" allowfaruse="1" charges="0" lvl="300" maglv="30" exhaustion="1000" needtarget="1" blocktype="solid" event="script" value="attack/super sd.lua">
 
Super sd? here we go
LUA:
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, 0, -3100, 0, -3300)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end
change the formula if you want..
now spells.xml

XML:
<rune name="Super sudden death rune" id="Yourid" allowfaruse="1" charges="0" lvl="300" maglv="30" exhaustion="1000" needtarget="1" blocktype="solid" event="script" value="attack/super sd.lua">

Thank you kind sir! I will Rep++ you if this works!! =)
 
Ive tried to do it and reload and i got this :>

Code:
[08/06/2012 04:14:06] [Warning - BaseEvents::loadFromXml] Cannot open spells.xml file.
[08/06/2012 04:14:06] Line: 661, Info: Premature end of data in tag spells line 2


[08/06/2012 04:14:06] [Error - Game::reloadInfo] Failed to reload spells.

do i have to restart server for it to work? =/
 
u added it wrong
when u open spells.xml
<spells>
<!-- Attack Runes -->
there under sudden death you add those line :)

its right under SD =/


Code:
<rune name="Sudden Death" id="2268" allowfaruse="1" charges="3" lvl="45" maglv="15" exhaustion="1600" needtarget="1" blocktype="solid" event="script" value="attack/sudden death.lua"/>
	<rune name="Super SD" id="12430" allowfaruse="1" charges="0" lvl="300" maglv="30" exhaustion="1000" needtarget="1" blocktype="solid" event="script" value="attack/super sd.lua">
 
XML:
<rune name="Sudden Death" id="2268" allowfaruse="1" charges="3" lvl="45" maglv="15" exhaustion="1600" needtarget="1" blocktype="solid" event="script" value="attack/sudden death.lua"/>
<rune name="Super SD" id="2263" allowfaruse="1" charges="0" lvl="300" maglv="30" exhaustion="1000" needtarget="1" blocktype="solid" event="script" value="attack/super sd.lua">
try use this 1 ="2263" is the id of the sd just test
 
XML:
<rune name="Sudden Death" id="2268" allowfaruse="1" charges="3" lvl="45" maglv="15" exhaustion="1600" needtarget="1" blocktype="solid" event="script" value="attack/sudden death.lua"/>
<rune name="Super SD" id="2263" allowfaruse="1" charges="0" lvl="300" maglv="30" exhaustion="1000" needtarget="1" blocktype="solid" event="script" value="attack/super sd.lua">
try use this 1 ="2263" is the id of the sd just test

it still give's the same error xd i will try tomorrow but thank you :) also! maybe you can help me in a new script? a script for a doll when you use it you get tutor ^^
 
You forgot to end < with />

LUA:
<rune name="Sudden Death" id="2268" allowfaruse="1" charges="3" lvl="45" maglv="15" exhaustion="1600" needtarget="1" blocktype="solid" event="script" value="attack/sudden death.lua"/>
<rune name="Super SD" id="2263" allowfaruse="1" charges="0" lvl="300" maglv="30" exhaustion="1000" needtarget="1" blocktype="solid" event="script" value="attack/super sd.lua"/>
 
my server is 8.60 does that help? xd

<rune name="Super SD" id="2263" allowfaruse="1" charges="0" maglv="30" lvl="300" exhaustion="1000" needtarget="1" blocktype="solid" event="script" value="attack/super sd.lua"/>

add under

<?xml version="1.0" encoding="UTF-8"?>
<spells>
<!-- Attack Runes -->
 
Back
Top