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

HELP . Spell for Rebirth MSQL Gesior System

Kambo9

Member
Joined
Jan 15, 2013
Messages
50
Reaction score
7
Hello everyone.
I have problem with spell for this reborn system : http://otland.net/threads/best-rebirth-system-mysql-by-mlody-1039-with-gesior-script.186274/
This is spell script :
Code:
local atk1 = createCombatObject()
local atk2 = createCombatObject()

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -120.7, -140.7, -300.0,-560.0)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -120.7, -140.7, -300.0,-560.0)


arr1 = {
{0, 0, 1, 0, 0},
{0, 0, 1, 0, 0},
{1, 1, 2, 1, 1},
{0, 0, 1, 0, 0},
{0, 0, 1, 0, 0},
}
arr2 = {
{0, 1, 0, 1, 0},
{1, 1, 0, 1, 1},
{0, 0, 2, 0, 0},
{1, 1, 0, 1, 1},
{0, 1, 0, 1, 0},
}

local area1 = createCombatArea(arr1)
local area2 = createCombatArea(arr2)


setCombatArea(atk1, area1)
setCombatArea(atk2, area2)


function onTargetTile(cid, pos)
    doCombat(cid,combat1,positionToVariant(pos))
end

function onTargetTile2(cid, pos)
    doCombat(cid,combat2,positionToVariant(pos))
end




setCombatCallback(atk1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
setCombatCallback(atk2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")



local function onCastSpell1(parameters)
    doCombat(parameters.cid, atk1, parameters.var)
end
local function onCastSpell2(parameters)
    doCombat(parameters.cid, atk2, parameters.var)
end

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var , combat1 = combat1, combat2= combat2}
    addEvent(onCastSpell1, 100, parameters)
    addEvent(onCastSpell2, 250, parameters)
end

I need change this script that to use this spell you need ex.: 5 reborn from this system...
PLEASE HELP!
 
add custom function
function getPlayerRebirth(cid) >= 5 then
here you can combat XX
else
doSendCancel(cid, "you need 5 rebirth to use this spell")

i'm busy to put it in code so i'm sorry
need to study for my exams xD
 
Back
Top