Jump to content
Sign in to follow this  
huggies

Bug Damage when Edited a skill

Recommended Posts

Hello, I added some skills into the database and put it at the client.

After restarting the server evrything goes well but when i attack or do some skills to the monster. It doesnt do damage or some skill effect doesn't acquire.

Any veteran that can help me ? Thanks

Share this post


Link to post
Share on other sites
-------------------------------------------------------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

Edited by huggies

Share this post


Link to post
Share on other sites
3 hours ago, huggies said:

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

It miss last end or it just missing it here? 


Download: Nightmare Demonic Helm

Dimension Pirates Online files: get now

New map Project: Flag PK

Black Skin 3.1.3 for pko 1: Get now

Share this post


Link to post
Share on other sites

They all have end.
Also i am using this function in GOAT Files.

It does work in other lua and skillinfo , but in GOAT Files it doesn't it just bug and cant do any damage unless i remove those 2.

Edited by huggies

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...