Jump to content

[Skill] Swap


goddameit

Recommended Posts


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

How to add delay ? and saying....

> You can use this special skills in 10 to 1 seconds < (source)

rQmM0.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  01/17/12
  • Last Seen:  

Hello goddameit,

first thank u for sharing this. I really like it.

Second, I successfully added this skill in the source and can use it via "@useskill 996 1 target". But I am failing to implement it in a skill tree by this guide http://eathena.ws/wi...ding_new_skills .

My client crashes by reading the lub files.

-> After double click exe

error.png

--> after char select -> trying to log on map server:

error1.png

my lua, respectively, my lubs:

skillinfolist

[sKID.ST_CHASEWALK] = {
 "ST_CHASEWALK";
 SkillName = "Chase Walk",
 MaxLv = 5,
 _NeedSkillList = {
  { SKID.TF_HIDING,5 },
  { SKID.RG_TUNNELDRIVE,3 }
 }
},
[sKID.DOTASWAP] = {
 "DOTASWAP";
 SkillName = "Huch?",
 MaxLv = 1,
 SpAmount = { 100 },
 _NeedSkillList = {
  { SKID.RG_BACKSTAP,4 },
  { SKID.RG_RAID,5 }
 }
},
[sKID.ST_REJECTSWORD] = {
 "ST_REJECTSWORD";
 SkillName = "Reject Sword",
 MaxLv = 5,
 SpAmount = { 10, 15, 20, 25, 30 }
},

skilltreeview

},
[JOBID.JT_MONK_H] = {
 [11] = SKID.CH_PALMSTRIKE,
 [21] = SKID.CH_SOULCOLLECT,
 [25] = SKID.CH_TIGERFIST,
 [32] = SKID.CH_CHAINCRUSH
},
[JOBID.JT_ROGUE_H] = {
 [8] = SKID.ST_CHASEWALK,
 [30] = SKID.ST_FULLSTRIP,
 [38] = SKID.ST_PRESERVE,
 [28] = SKID.DOTASWAP,
 [31] = SKID.ST_REJECTSWORD
},
[JOBID.JT_BARD_H] = {
 [29] = SKID.CG_ARROWVULCAN,
 [30] = SKID.CG_MOONLIT,
 [31] = SKID.CG_MARIONETTE,
 [32] = SKID.CG_HERMODE,
 [38] = SKID.CG_LONGINGFREEDOM,
 [39] = SKID.CG_TAROTCARD
},

Sir, can u help me to add your skill in a skill tree?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  76
  • Reputation:   3
  • Joined:  02/24/12
  • Last Seen:  

how to let it work on player only?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

how to let it work on player only?

if

bl->type != BL_PC

use 'return;' to end the function before swap it.

Edited by goddameit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  91
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   6
  • Joined:  04/24/12
  • Last Seen:  

how to fix this

src\map\skill.c(4984): warning C4013: 'DOTASWAPfu' undefined; assuming extern returning int

src\map\skill.c(13330): error C2371: 'DOTASWAPfu' : redefinition; different basic types

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

how to fix this

src\map\skill.c(4984): warning C4013: 'DOTASWAPfu' undefined; assuming extern returning int

src\map\skill.c(13330): error C2371: 'DOTASWAPfu' : redefinition; different basic types

add correctly.

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  01/18/12
  • Last Seen:  

i have a problem. i can see the skill but i can't add/use it.

so, i made added it to the platinum npc. and it works fine BUT the problem is when i reconnect the skill is gone.

so i need to talk to the npc all over again. how to fix it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

i have a problem. i can see the skill but i can't add/use it.

so, i made added it to the platinum npc. and it works fine BUT the problem is when i reconnect the skill is gone.

so i need to talk to the npc all over again. how to fix it?

I use well, read the #1 again.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  148
  • Topics Per Day:  0.03
  • Content Count:  299
  • Reputation:   6
  • Joined:  06/14/12
  • Last Seen:  

@goddameit nice

Description:

Skill SWAP, enabling you to swap location on your targeted (monster,....)

Edited by zmref
  • Upvote 1
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  04/18/12
  • Last Seen:  

Dear sir,

Your client link already down, i cannot download it. please re-upload it, thank you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

@goddameit

can you add a line on the process of swapping

a line of devotion skill if possible

xD

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  411
  • Reputation:   261
  • Joined:  04/25/12
  • Last Seen:  

I am with the nil error when adding this step just:

[sKID.DOTASWAP] = {
"DOTASWAP";
SkillName = "DOTASWAP",
},

Whow to fix it?

Link to comment
Share on other sites

  • 5 years later...

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

The skill dosent show on my skill tree , then when i use it on @useskill it shows


[Error]: Skill '82' is undefined! skill.cpp:220::skill_chk
[Error]: Skill '82' is undefined! skill.cpp:220::skill_chk
[Error]: Skill '82' is undefined! skill.cpp:220::skill_chk
[Error]: Skill '82' is undefined! skill.cpp:220::skill_chk
[Error]: Skill '82' is undefined! skill.cpp:220::skill_chk
[Error]: Skill '82' is undefined! skill.cpp:220::skill_chk
[Error]: Skill '82' is undefined! skill.cpp:655::skill_isNotOk



Rebuild error

skill.cpp: In function âint skill_castend_nodamage_id(block_list*, block_list*, uint16, uint16, unsigned int, int)â:
skill.cpp:6604:4: error: âFIREIVYfunctionâ was not declared in this scope
    FIREIVYfunction(src,bl); //add
    ^~~~~~~~~~~~~~~
skill.cpp:6605:31: error: âskillidâ was not declared in this scope
    clif_skill_nodamage(src,bl,skillid,skilllv,0); //add
                               ^~~~~~~
skill.cpp:6605:31: note: suggested alternative: âskill_idâ
    clif_skill_nodamage(src,bl,skillid,skilllv,0); //add
                               ^~~~~~~
                               skill_id
skill.cpp:6605:39: error: âskilllvâ was not declared in this scope
    clif_skill_nodamage(src,bl,skillid,skilllv,0); //add
                                       ^~~~~~~
skill.cpp:6605:39: note: suggested alternative: âskill_lvâ
    clif_skill_nodamage(src,bl,skillid,skilllv,0); //add
                                       ^~~~~~~
                                       skill_lv
make[1]: *** [obj/skill.o] Error 1

 

Edited by Poring King
Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.05
  • Content Count:  478
  • Reputation:   14
  • Joined:  11/30/17
  • Last Seen:  

anyone reupload?

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...