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:  

skill.c

add a new function.

void DOTASWAPfu (struct block_list *src, struct block_list *bl)
{
int x=0, y=0;
x=src->x;
y=src->y;
unit_movepos(src, bl->x, bl->y, 1, 1);
clif_slide(src,bl->x,bl->y);
unit_movepos(bl, x, y, 1, 1);
clif_slide(bl,x,y);
clif_specialeffect(bl,34,AREA);
clif_specialeffect(src,34,AREA);
return;
}

add

int skill_castend_nodamage_id (struct block_list *src, struct bl...

{
...
case MER_BLESSING:
 if (dstsd != NULL && tsc->data[sC_CHANGEUNDEAD]) {
  skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag);
  break;
 }
case DOTASWAP: //add
 DOTASWAPfu(src,bl); //add
 clif_skill_nodamage(src,bl,skillid,skilllv,0); //add
 break; //add
case PR_SLOWPOISON:
case PR_IMPOSITIO:
case PR_LEXAETERNA:
case PR_SUFFRAGIUM:
...

skill.h

add

enum e_skill {
DOTASWAP = 996, //add
NV_BASIC = 1,

Client

http://goo.gl/BJ0uB

db\skill_db,txt

996,9,6,1,0,0x1,0,1,0,yes,0,0,0,magic,0,  DOTASWAP,DOTASWAP

db\skill_require_db.txt

996,0,0,10,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //DOTASWAP

data\lua files\skillinfoz\skillid.lua

DOTASWAP = 996,

data\lua files\skillinfoz\skillinfolist.lua

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

Edited by goddameit
  • Upvote 8
  • Like 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  78
  • Reputation:   3
  • Joined:  12/06/11
  • Last Seen:  

-___- i added mine before you did lol .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Maybe you can add in the future 'Blink Strike'

Like Magina or Akasha.

Regards,

Mindless

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:  

Maybe you can add in the future 'Blink Strike'

Like Magina or Akasha.

Regards,

Mindless

so maybe I can give more damage in once hit?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

it works on players as well

?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Maybe you can add in the future 'Blink Strike' Like Magina or Akasha. Regards, Mindless
so maybe I can give more damage in once hit?

No, only the 'Blink' no damage will be taken from opponents.

Just like Body Relocation. But there should be distances and ranges.for the 'Blink'

Regards,

Mindless

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

skill.c: In function âskill_castend_damage_idâ:
skill.c:3712: error: duplicate case value
skill.c:3287: error: previously used here
skill.c:3722: error: duplicate case value
skill.c:3529: error: previously used here
skill.c: In function âskill_castend_nodamage_idâ:
skill.c:4997: warning: implicit declaration of function âDOTASWAPfuâ
skill.c:5090: error: duplicate case value
skill.c:4902: error: previously used here
skill.c:5550: error: duplicate case value
skill.c:4975: error: previously used here
skill.c:5700: error: duplicate case value
skill.c:5659: error: previously used here
skill.c:6366: error: duplicate case value
skill.c:5092: error: previously used here
skill.c: At top level:
skill.c:13515: warning: conflicting types for âDOTASWAPfuâ
skill.c:4997: warning: previous implicit declaration of âDOTASWAPfuâ was here
skill.c: In function âskill_stasis_checkâ:
skill.c:16713: error: duplicate case value
skill.c:16703: error: previously used here
make[1]: *** [obj_sql/skill.o] Error 1
make[1]: Leaving directory `/eathena/src/map'
make: *** [map_sql] Error 2

How to solve that?

and now the server wont start :)

Also this: skill.c: In function âskill_castend_nodamage_idâ:

skill.c:4995: error: âDOTASWAPâ undeclared (first use in this function)
skill.c:4995: error: (Each undeclared identifier is reported only once
skill.c:4995: error: for each function it appears in.)
skill.c:4996: warning: implicit declaration of function âDOTASWAPfuâ
skill.c: At top level:
skill.c:17193: warning: conflicting types for âDOTASWAPfuâ
skill.c:4996: warning: previous implicit declaration of âDOTASWAPfuâ was here
make[1]: *** [obj_sql/skill.o] Error 1
make[1]: Leaving directory `/eathena/src/map'
make: *** [map_sql] Error 2

Edited by Emistry
Wrapped Content with Code / Codebox
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   6
  • Joined:  01/06/12
  • Last Seen:  

You're only supposed to add the parts with //add commented, it looks like you copied the entire codebox.

case DOTASWAP: //add
 DOTASWAPfu(src,bl); //add
 clif_skill_nodamage(src,bl,skillid,skilllv,0); //add
 break;

^That's the only part necessary, the rest of it is there just to tell you where to put it. If you want to get rid of the implicit declaration warnings, you could always just add a function prototype in skill.h, but it's not a huge deal...

@Cephaler: From how it looks, it seems it'll work on players. You could even give mobs the skill.

@Goddameit:

This is pretty awesome, I love it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   2
  • Joined:  02/02/12
  • Last Seen:  

I didn't add the entire codebox.. all I had to do was remove it from skill.h and it works fine now, including players o_o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   1
  • Joined:  12/31/11
  • Last Seen:  

It doesnt work on players

Edit, it does while holding shift

Edited by dexter
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.02
  • Content Count:  328
  • Reputation:   13
  • Joined:  11/27/11
  • Last Seen:  

Posted · Hidden by Emistry, February 25, 2012 - Useless Post with just a single word "Rampage" on it.
Hidden by Emistry, February 25, 2012 - Useless Post with just a single word "Rampage" on it.

Rampage!

Link to comment
  • 3 weeks later...

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

make it 100% works then i can't put any description on skill i dont kno wwhy

Edited by vBrenth
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

edit skill_db.txt

//id,range,hit,inf,element,nk,splash,max,list_num,castcancel,cast_defence_rate,inf2,maxcount,skill_type,blow_count,name,description

as you can see the second column is RANGE

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

Thanks everything works fine now except the sprites hahaahaah he use siopao..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

i got error how can i 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

  • 2 weeks later...

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

where i need to add this code???

void DOTASWAPfu (struct block_list *src, struct block_list *bl)
{
int x=0, y=0;
x=src->x;
y=src->y;
unit_movepos(src, bl->x, bl->y, 1, 1);
clif_slide(src,bl->x,bl->y);
unit_movepos(bl, x, y, 1, 1);
clif_slide(bl,x,y);
clif_specialeffect(bl,34,AREA);
clif_specialeffect(src,34,AREA);
return;
}

i mean where in skill.c

Edited by oyamu
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

skill.c

already mentioned in the 1st post...

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   5
  • Joined:  12/25/11
  • Last Seen:  

i got error how can i 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

have same errors.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  28
  • Reputation:   1
  • Joined:  05/09/12
  • Last Seen:  

This swap skill has an official version in the Kagero/Oboro skill tree. The name of the skill is Illusion - Attraction. The LimitRO version has 1 second cast time (that can be reduced)... but I'm not sure if it's official (the coder claims he has source data or maybe a kRO player).

Just mentioning it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

Well i have a little problem :) Emperium can be swap too how can i prevent this ?

And also my server is currently having no cast delay how can i put some delay on this Swap skills using source code?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   5
  • Joined:  12/25/11
  • Last Seen:  

Well i have a little problem :) Emperium can be swap too how can i prevent this ?

And also my server is currently having no cast delay how can i put some delay on this Swap skills using source code?

you can disable the skill on GVG maps

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

I want to enable this on GVG map and add 10 seconds delay to use it again (source)

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 want to enable this on GVG map and add 10 seconds delay to use it again (source)

add in 'void DOTASWAPfu'

if(status_get_class(bl)==MOBID_EMPERIUM)

return;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  311
  • Reputation:   46
  • Joined:  11/06/11
  • Last Seen:  

How to add delay ? and saying....

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

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