-------------------------------------------------------Skill Teleportation---------
function SkillSp_tele ( sklv )
local sp_reduce = 20
return sp_reduce
end
function SkillCooldown_tele( sklv )
local Cooldown = 10000
return Cooldown
end
function Skill_tele_Begin ( role , sklv )
local sp = Sp(role)
local sp_reduce = SkillSp_tele ( sklv )
if sp - sp_reduce < 0 then
SkillUnable(role)
return
end
Sp_Red (role , sp_reduce )
end
function Skill_tele_End ( ATKER , DEFER , role, sklv )
local x, y = GetChaPos(DEFER)
local map_name = GetChaMapName (DEFER)
local mapcant = GetChaMapName (DEFER)
local x = math.floor (x/100)
local y = math.floor (y/100)
if mapcant == "guildhouse" or mapcant == "teampk" then
SystemNotice(ATKER,"You cant use this skill in this map!")
SkillUnable(ATKER)
elseif
mapcant ~= "guildhouse" or mapcant ~= "teampk" then
GoTo(ATKER, x,y, map_name)
AddState( ATKER , DEFER , STATE_XY, 1 , 3 )
end
thats the skilleff.lua
then
0476 Master Teleportation 1 -1,10 1,-1 1,-1 1,-1 -1 2 1 0 -1 -1 1 1 1 2000 4 1 0 0 4 0 0 SkillSp_tele 0 0 0 0 Skill_tele_End 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SkillCooldown_tele 2 1 14 0 40 2 157 0 0 0,0 0,0 0 9 -1 1067 1800 41 2 0 -1 0 0 x1060.tga 0 0 Moves you with lightspeed to the selected target. Range increased for each skill level. Cooldown is 15 seconds. Fix consumption of 20 SP 0
Skillinfo.bin