huggies 0 Report post Posted March 10, 2019 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 Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted March 10, 2019 at least post the function o.o? Quote Share this post Link to post Share on other sites
huggies 0 Report post Posted March 10, 2019 Sure sir wait @mkhzaleh Quote Share this post Link to post Share on other sites
huggies 0 Report post Posted March 10, 2019 (edited) -------------------------------------------------------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 March 10, 2019 by huggies Quote Share this post Link to post Share on other sites
Onioni 58 Report post Posted March 10, 2019 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? Quote 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
huggies 0 Report post Posted March 10, 2019 (edited) 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 March 10, 2019 by huggies Quote Share this post Link to post Share on other sites