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

I need your help in M1,M2,M3,M4,M5.

Michy

Member
Joined
May 20, 2010
Messages
105
Reaction score
6
Hi dear.
Mi name is michael i need your help in my script.

M1-SPELL.LUA
function isSummon(uid)
return uid ~= getCreatureMaster(uid) or false
end

----------------------------- Bulbasaur
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 79)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 5)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.5, 0, -3.0, 0)

local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, }
addEvent(onCastSpell1, 0, parameters)
end

-------------------------------------Pikachu

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 48)


arr2 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

local area2 = createCombatArea(arr2)
setCombatArea(combat2, area2)



local function onCastSpell1(parameters)
return doCombat(parameters.cid, parameters.combat, parameters.var) and doCreatureSay(parameters.cid2, "" .. parameters.name .. ", " .. parameters.spell .. ".")
end


local c = {
["Venusaur"] = {x = {
m1 = combat1,
spell = "Razor Leaf",
minLv = 5
}
}
}

local d = {
["Mew"] = {x = {
m1 = combat2,
spell = "Relampago",
minLv = 10
}
}
}



function onCastSpell(cid, var)
if #getCreatureSummons(cid) ~= 0 then
for i = 1, #getCreatureSummons(cid) do
if c[getCreatureName(getCreatureSummons(cid))] then
if getPlayerLevel(cid) >= c[getCreatureName(getCreatureSummons(cid))].x.minLv then
parameters = {cid = getCreatureSummons(cid), cid2 = cid, combat = c[getCreatureName(getCreatureSummons(cid))].x.m1, var = var, name = getCreatureName(getCreatureSummons(cid)), spell = c[getCreatureName(getCreatureSummons(cid))].x.spell}
return onCastSpell1(parameters)
else
return doPlayerSendCancel(cid, "Sorry. You must be level " .. c[getCreatureName(getCreatureSummons(cid))].x.minLv .. " or higher to cast.")
end
end
end

if #getCreatureSummons(cid) ~= 0 then
for i = 1, #getCreatureSummons(cid) do
if d[getCreatureName(getCreatureSummons(cid))] then
if getPlayerLevel(cid) >= d[getCreatureName(getCreatureSummons(cid))].x.minLv then
parameters = {cid = getCreatureSummons(cid), cid2 = cid, combat = d[getCreatureName(getCreatureSummons(cid))].x.m1, var = var, name = getCreatureName(getCreatureSummons(cid)), spell = d[getCreatureName(getCreatureSummons(cid))].x.spell}
return onCastSpell1(parameters)
else
return doPlayerSendCancel(cid, "Sorry. You must be level " .. d[getCreatureName(getCreatureSummons(cid))].x.minLv .. " or higher to cast.")
end
end
end
else
return doPlayerSendCancel(cid, "Sosrry. You must have an pokemon to cast.")
end
return true
end
end

I wish that instead of putting the spell put nothing but the name of the spell and ready.
and not use the COMBAT1, 2,3,4,5,6.7 understand?
sorry for my bad English

Att: I need your hel plix:thumbup:
 
Last edited:
Back
Top