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

Lua I want to conjure runes with the blank rune in the left or right slot

jigsaw

Member
Joined
Dec 21, 2008
Messages
137
Solutions
4
Reaction score
16
I searched all the forum and didn't find a solution, all I found was the opposite, people wanting the runes to be conjured with the blank inside their backpacks.

I would like the original form, blank rune in the left and right slot (weapon/shield slot).

I use OTX 7.4. and just for it quickly, a line of my spells.xml. (the config.lua doesn't show anything about conjuring or spells)

<conjure name="Ultimate Healing Rune" words="adura vita" mana="100" maglv="11" soul="3" reagentId="2260" conjureId="2273" conjureCount="1" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
<vocation id="2;6"/>

Now, there is a reagentid of the blank rune. But where could I change it in order to be on the said slot?

Thanks all in advance.
 
Thank you Emil, I tried to copy and paste into my lib.. and it didn't work, do you have any other suggestion?

This is my sudden death (just an example) lua.

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.25, -30, -1.7, 0)


function onCastSpell(cid, var)
    if exhaustion.check(cid, 30030) then
     doPlayerSendCancel(cid, "You are exhausted.")
     else
    exhaustion.set(cid, 30030, 1)
    return doCombat(cid, combat, var)
    end
end
I don't see anything regarding to ReagentID, can someone help me on this?
 
Last edited:
Thank you Emil, I tried to copy and paste into my lib.. and it didn't work, do you have any other suggestion?

This is my sudden death (just an example) lua.

Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.25, -30, -1.7, 0)


function onCastSpell(cid, var)
    if exhaustion.check(cid, 30030) then
     doPlayerSendCancel(cid, "You are exhausted.")
     else
    exhaustion.set(cid, 30030, 1)
    return doCombat(cid, combat, var)
    end
end
I don't see anything regarding to ReagentID, can someone help me on this?
data/spells/lib/spells.lua
 
data/spells/lib/spells.lua
My spells lib only contains the AREAS of the Spells.. not a single code whatsoever. I cant post it right now bc Im not at the Pc. Thanks for the answer xikini

Here what it look like:


Lua:
--Formulas based on formula page at http://tibia.wikia.com/wiki/Formula written at 4.06.2009
--All these spells were written/modified by Pietia with the right formulas

DESINTEGRATE_UNREMOVABLE = {3058, 3059, 3060, 3061, 3062, 3063, 3064, 3065, 3066}

-- This array contains all destroyable field items
FIELDS = {1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1500,1501,1502,1503,1504}

--Pre-made areas

--Waves
AREA_WAVE4 = {
{1, 1, 1, 1, 1},
{0, 1, 1, 1, 0},
{0, 1, 1, 1, 0},
{0, 0, 3, 0, 0}
}

AREA_SQUAREWAVE5 = {
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{0, 1, 0},
{0, 3, 0}
}

--Diagonal waves
AREADIAGONAL_WAVE4 = {
{0, 0, 0, 0, 1, 0},
{0, 0, 0, 1, 1, 0},
{0, 0, 1, 1, 1, 0},
{0, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 0},
{0, 0, 0, 0, 0, 3}
}

AREADIAGONAL_SQUAREWAVE5 = {
{1, 1, 1, 0, 0},
{1, 1, 1, 0, 0},
{1, 1, 1, 0, 0},
{0, 0, 0, 1, 0},
{0, 0, 0, 0, 3}
}

--Beams
AREA_BEAM1 = {
{3}
}

AREA_BEAM5 = {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0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}
}

AREA_CROSS6X6 = {
{0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}
}

--Squares
AREA_SQUARE1X1 = {
{1, 1, 1},
{1, 3, 1},
{1, 1, 1}
}

-- Walls
AREA_WALLFIELD = {
{1, 1, 3, 1, 1}
}

AREADIAGONAL_WALLFIELD = {
{0, 0, 0, 0, 1},
{0, 0, 0, 1, 1},
{0, 1, 3, 1, 0},
{1, 1, 0, 0, 0},
{1, 0, 0, 0, 0},
}

And yes, I've tried to copy and paste the code above.
 
Last edited:
@emil92b , this is my spells.xml... it does contain conjure function.. any thoughts?
XML:
<!-- Conjure Spells -->
    <conjure name="Conjure Arrow" words="exevo con" mana="40" maglv="2" soul="1" conjureId="2544" conjureCount="10" exhaustion="2000" needlearn="1" event="function" value="conjureItem">
        <vocation id="3;7"/>
    </conjure>
    <instant name="Food" words="exevo pan" mana="30" soul="1" aggressive="0" selftarget="1" exhaustion="2000" needlearn="1" event="script" value="support/conjure food.lua">
        <vocation id="2;6"/>
        <vocation id="3;7"/>
    </instant>
    <conjure name="Poisoned Arrow" words="exevo con pox" mana="70" maglv="5" soul="2" conjureId="2545" conjureCount="5" exhaustion="2000" needlearn="1" event="function" value="conjureItem">
        <vocation id="3;7"/>
    </conjure>
    <conjure name="Conjure Bolt" words="exevo con mort" mana="70" maglv="6" soul="2" conjureId="2543" conjureCount="5" exhaustion="2000" needlearn="1" event="function" value="conjureItem">
        <vocation id="3;7"/>
    </conjure>
    <conjure name="Explosive Arrow" words="exevo con flam" mana="120" maglv="10" soul="3" conjureId="2546" conjureCount="5" needlearn="1" exhaustion="2000" event="function" value="conjureItem">
        <vocation id="3;7"/>
    </conjure>
    <conjure name="Enchant Staff" words="exeta vis" mana="80" maglv="22" conjureId="2433" reagentId="2401" needlearn="1" event="function" exhaustion="2000" value="conjureItem">
        <vocation id="1;5"/>
    </conjure>
    <conjure name="Power Bolt" words="exevo con vis" mana="200" maglv="14" soul="4" conjureId="2547" conjureCount="5" needlearn="1" event="function" exhaustion="2000" value="conjureItem">
        <vocation id="3;7"/>
    </conjure>
    <conjure name="Poison Field" words="adevo grav pox" mana="50" maglv="1" soul="1" reagentId="2260" conjureId="2285" conjureCount="3" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Light Magic Missile" words="adori" mana="40" maglv="1" soul="1" reagentId="2260" conjureId="2287" conjureCount="5" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
        <vocation id="3;7"/>
    </conjure>
    <conjure name="Fire Field" words="adevo grav flam" mana="60" maglv="3" soul="1" reagentId="2260" conjureId="2301" conjureCount="3" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Fireball" words="adori flam" mana="60" maglv="5" soul="3" reagentId="2260" conjureId="2302" conjureCount="3" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
        <vocation id="3;7"/>
    </conjure>
    <conjure name="Energy Field" words="adevo grav vis" mana="80" maglv="5" soul="2" reagentId="2260" conjureId="2277" conjureCount="3" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Great Fireball" words="adori gran flam" mana="120" maglv="9" soul="3" reagentId="2260" conjureId="2304" conjureCount="2" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Heavy Magic Missile" words="adori gran" mana="70" maglv="3" soul="2" reagentId="2260" conjureId="2311" conjureCount="5" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
        <vocation id="3;7"/>
    </conjure>
    <conjure name="Poison Bomb" words="adevo mas pox" mana="130" maglv="8" soul="2" reagentId="2260" conjureId="2286" conjureCount="2" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Firebomb" words="adevo mas flam" mana="150" maglv="9" soul="4" reagentId="2260" conjureId="2305" conjureCount="2" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Soulfire" words="adevo res flam" mana="150" maglv="13" soul="3" reagentId="2260" conjureId="2308" conjureCount="2" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Poison Wall" words="adevo mas grav pox" mana="160" maglv="11" soul="3" reagentId="2260" conjureId="2289" conjureCount="4" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Explosion" words="adevo mas hur" mana="180" maglv="12" soul="4" reagentId="2260" conjureId="2313" conjureCount="3" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Fire Wall" words="adevo mas grav flam" mana="200" maglv="13" soul="4" reagentId="2260" conjureId="2303" conjureCount="4" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Energybomb" words="adevo mas vis" mana="220" maglv="18" soul="5" reagentId="2260" conjureId="2262" conjureCount="2" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="1;5"/>
    </conjure>
    <conjure name="Energy Wall" words="adevo mas grav vis" mana="250" maglv="25" soul="5" reagentId="2260" conjureId="2279" conjureCount="4" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Sudden Death" words="adori vita vis" mana="220" maglv="25" soul="5" reagentId="2260" conjureId="2268" conjureCount="1" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="1;5"/>
    </conjure>
    <conjure name="Antidote Rune" words="adura pox" mana="50" maglv="0" soul="1" reagentId="2260" conjureId="2266" conjureCount="1" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Intense Healing Rune" words="adura gran" mana="60" maglv="1" soul="2" reagentId="2260" conjureId="2265" conjureCount="1" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Ultimate Healing Rune" words="adura vita" mana="100" maglv="11" soul="3" reagentId="2260" conjureId="2273" conjureCount="1" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Convince Creature" words="adeta sio" mana="100" maglv="10" soul="3" reagentId="2260" conjureId="2290" conjureCount="1" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Animate Dead" words="adana mort" mana="300" maglv="7" soul="5" reagentId="2260" conjureId="2316" conjureCount="2" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Chameleon" words="adevo ina" mana="150" maglv="11" soul="2" reagentId="2260" conjureId="2291" conjureCount="1" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="2;6"/>
    </conjure>
    <conjure name="Destroy Field" words="adito grav" mana="60" maglv="6" soul="2" reagentId="2260" conjureId="2261" conjureCount="3" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
        <vocation id="3;7"/>
    </conjure>
    <conjure name="Desintegrate" words="adito tera" mana="100" maglv="8" soul="3" reagentId="2260" conjureId="2310" conjureCount="3" needlearn="1" exhaustion="2000" event="function" value="conjureRune">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
        <vocation id="3;7"/>
    </conjure>
    <conjure name="Magic Wall" words="adevo grav tera" mana="250" maglv="14" soul="5" reagentId="2260" conjureId="2293" conjureCount="4" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="1;5"/>
    </conjure>
    <conjure name="Paralyze" words="adana ani" mana="900" maglv="18" soul="3" reagentId="2260" conjureId="2278" conjureCount="1" exhaustion="2000" needlearn="1" event="function" value="conjureRune">
        <vocation id="2;6"/>
    </conjure>
 
So I should edit it in spells.cpp and then recompile the server? or just rebooting will do? Thanks in advance
 
Back
Top