Jump to content
  • 0

Different custom aura for different top 3 pvp player


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

Request Different custom aura for different top 3 pvp player

can anyone share it to me :D

Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

Hello, have you found one? can you please share it please... :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

you can use the auraset src mod and apply the effect to that players with an NPC

for example

Top1 -> @aura 234

Top2 -> @aura 434

Top3 -> @aura 124

this could work if you don't have that feature as an open feature in your server =)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

@aisha... is there a newer version of auraset mod for latest rathena version?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

Hmm I don't know but i can try update the one that i have, if you wait today or tomorrow at night i post it =)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

Thanks ahead :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Sounds interesting :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

Sorry I'm on vacations and forgott this sorry!!

this is the patch that works for me, probably you have to change this part if your emu is newer than mine so I put here the patch and comment the possible modification

src/common/mmo.h

search:

int father;

int mother;

int child;

than add this:

//Aura System

int aura;

for an old emu use this

/src/map/atcommand.c

ACMD_FUNC(aura)

{

struct map_session_data *pl_sd = 0;

int type = 0;

if (!message || !*message || sscanf(message, "%d %[^\n]", &type, atcmd_player_name) < 2) {

if (!message || !*message || sscanf(message, "%d", &type) < 1) {

clif_displaymessage(fd, "Please, enter at least an option (usage: @auraset <aura> <char>).");

return -1;

}

atcmd_player_name[0] = 0;

pl_sd = sd;

}

if (pl_sd != sd){

if ((pl_sd = map_nick2sd(atcmd_player_name)) != NULL || ((pl_sd = map_id2sd(atoi(atcmd_player_name))) != NULL && pl_sd->state.active)) {

} else {

return -1;

}

}

pl_sd->status.aura = type;

pc_setglobalreg(pl_sd,"USERAURA",type);

pc_setpos(pl_sd, pl_sd->mapindex, pl_sd->bl.x, pl_sd->bl.y, 3);

clif_displaymessage(fd, "Aura set.");

return 0;

}

and add this in AtCommandInfo atcommand_info[]

{ "auraset", 60,60, atcommand_auraset },

for a newer emu use this

/src/map/atcommand.c

int atcommand_auraset(const int fd, struct map_session_data* sd,const char* command, const char* message)

{

struct map_session_data *pl_sd = 0;

int type = 0;

if (!message || !*message || sscanf(message, "%d %[^\n]", &type, atcmd_player_name) < 2) {

if (!message || !*message || sscanf(message, "%d", &type) < 1) {

clif_displaymessage(fd, "Please, enter at least an option (usage: @auraset <aura> <char>).");

return -1;

}

atcmd_player_name[0] = 0;

pl_sd = sd;

}

if (pl_sd != sd){

if ((pl_sd = map_nick2sd(atcmd_player_name)) != NULL || ((pl_sd = map_id2sd(atoi(atcmd_player_name))) != NULL && pl_sd->state.active)) {

} else {

return -1;

}

}

pl_sd->status.aura = type;

pc_setglobalreg(pl_sd,"USERAURA",type);

pc_setpos(pl_sd, pl_sd->mapindex, pl_sd->bl.x, pl_sd->bl.y, 3);

clif_displaymessage(fd, "Aura set.");

return 0;

}

and add this in AtCommandInfo atcommand_info[]

ACMD_DEF(aura),

go to /src/map/clif.c

@ -1284,6 +1284,7 @@

case BL_PC:

{

TBL_PC *sd = ((TBL_PC*)bl);

clif_sendauras((TBL_PC*)bl, SELF); //Aura System

if (sd->spiritball > 0)

clif_spiritball(sd);

if(sd->state.size==2) // tiny/big players [Valaris]

@ -4533,6 +4534,12 @@

if(&sd->bl == bl)

break;

clif_getareachar_unit(sd,bl);

//Aura System

if (bl->type == BL_PC) {

struct map_session_data *tsd = (struct map_session_data *)bl;

clif_sendaurastoone(sd,tsd);

clif_sendaurastoone(tsd,sd);

}

break;

}

return 0;

@ -15195,3 +15202,80 @@

add_timer_func_list(clif_delayquit, "clif_delayquit");

return 0;

}

/*==========================================

* Aura System

*------------------------------------------*/

void clif_sendauras( struct map_session_data *sd, int target )

{

int effect1;

effect1 = sd->status.aura;

if (sd->status.option & OPTION_HIDE)

return;

if (effect1 > 0)

clif_specialeffect(&sd->bl, effect1, target);

}

/*==========================================

* Aura System

*------------------------------------------*/

void clif_sendaurastoone( struct map_session_data *sd, struct map_session_data *dsd )

{

int effect1;

effect1 = sd->status.aura;

if (sd->status.option & OPTION_HIDE)

return;

if (effect1 > 0)

clif_specialeffecttoone(&sd->bl, &dsd->bl, effect1);

}

/*==========================================

* Aura System

*------------------------------------------*/

int clif_specialeffecttoone(struct block_list *bl, struct block_list *dst, int type) {

struct map_session_data *sd = (struct map_session_data *)dst;

WFIFOW(sd->fd,0) = 0x1f3;

WFIFOL(sd->fd,2) = bl->id;

WFIFOL(sd->fd,6) = type;

WFIFOSET(sd->fd, packet_len(0x1f3));

return 0;

}

/*==========================================

* Aura System

*------------------------------------------*/

void clif_getareachar_char2(struct map_session_data* sd,struct block_list *bl)

{

map_foreachinarea(clif_insight2, bl->m, bl->x-AREA_SIZE, bl->y-AREA_SIZE, bl->x+AREA_SIZE, bl->y+AREA_SIZE, BL_PC, bl);

}

/*==========================================

* Aura System

*------------------------------------------*/

int clif_insight2(struct block_list *bl,va_list ap)

{

struct block_list *tbl;

TBL_PC *sd, *tsd;

tbl=va_arg(ap,struct block_list*);

if (bl == tbl) return 0;

sd = BL_CAST(BL_PC, bl);

tsd = BL_CAST(BL_PC, tbl);

if (sd && sd->fd)

{ //Tell sd that tbl walked into his view

clif_getareachar_unit(sd,tbl);

}

return 0;

}

src/map/clif.h

search

void clif_progressbar(struct map_session_data * sd, unsigned long color, unsigned int second);

void clif_progressbar_abort(struct map_session_data * sd);

and add

// Aura System

int clif_specialeffecttoone(struct block_list *bl, struct block_list *dst, int type);

void clif_sendauras( struct map_session_data *sd, int target );

void clif_sendaurastoone(struct map_session_data *sd, struct map_session_data *dsd);

void clif_getareachar_char2(struct map_session_data* sd,struct block_list *bl);

int clif_insight2(struct block_list *bl,va_list ap);

src/map/pc.c

search

sd->change_level[0] = pc_readglobalreg(sd,"jobchange_level");

sd->change_level[1] = pc_readglobalreg(sd,"jobchange_level2");

sd->die_counter = pc_readglobalreg(sd,"PC_DIE_COUNTER");

and add

//Aura System

sd->status.aura = pc_readglobalreg(sd,"USERAURA");

src/map/pc.h

search

int matk_rate;

int critical_rate,hit_rate,flee_rate,flee2_rate,def_rate,def2_rate,mdef_rate,mdef2_rate;

int fixcastrate; //fixed casting reduction. [Jobbie]

and add

//Aura System

int aura;

/src/map/status.c

@@ -6310,6 +6310,12 @@

}

break;

case SC_HIDING:

+ //Aura System

+ if (sd && sd->status.aura > 0){

+ sd->status.aura *= -1;

+ clif_clearunit_area(&sd->bl, 4);

+ clif_getareachar_char2(sd, &sd->bl);

+ }

val2 = tick/1000;

tick = 1000;

val3 = 0; // unused, previously speed adjustment

@@ -8065,6 +8071,11 @@

break;

case SC_HIDING:

+ //Aura System

+ if (sd && sd->status.aura < 0){

+ sd->status.aura *= -1;

+ clif_sendauras(sd, AREA_WOS);

+ }

sc->option &= ~OPTION_HIDE;

opt_flag|= 2|4; //Check for warp trigger + AoE trigger

break;

I hope this can help you =)

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


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

Thanks aisha.. /kis

But when I use hiding/cloaking skills.. The aura won't wear off instead it will stuck up.. how do I fix this?

Edited by Damaso
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

It suppouse that in clif.c

/*==========================================

* Aura System

*------------------------------------------*/

void clif_sendaurastoone( struct map_session_data *sd, struct map_session_data *dsd )

{

int effect1;

effect1 = sd->status.aura;

if (sd->status.option & OPTION_HIDE)

return;

if (effect1 > 0)

clif_specialeffecttoone(&sd->bl, &dsd->bl, effect1);

}

and status.c

case SC_HIDING:

+ //Aura System

+ if (sd && sd->status.aura > 0){

+ sd->status.aura *= -1;

+ clif_clearunit_area(&sd->bl, 4);

+ clif_getareachar_char2(sd, &sd->bl);

+ }

val2 = tick/1000;

tick = 1000;

val3 = 0; // unused, previously speed adjustment

@@ -8065,6 +8071,11 @@

break;

case SC_HIDING:

+ //Aura System

+ if (sd && sd->status.aura < 0){

+ sd->status.aura *= -1;

+ clif_sendauras(sd, AREA_WOS);

+ }

sc->option &= ~OPTION_HIDE;

opt_flag|= 2|4; //Check for warp trigger + AoE trigger

break;

consider that , do you have any error when you compile? o.o?,

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  04/10/12
  • Last Seen:  

Im sorry for the late reply.. I tried figuring things out but no luck...

i got this warning message though..

src\map\clif.c(1595): warning C4133: 'function' : incompatible types - from 'TBL_PC *' to 'block_list *'

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

nice info for latest svn, I made this .patch file

**file removed**

Edited by Cydh
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

@Nana

 

Does this auraset work with any other @effect. I know that some effects if you used the src auraset from eA, that some effects won't be hidden when you attempt to use hiding skills.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

Well let me test the one here and see if i get the same results. I dont want to assume :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

Well let me test the one here and see if i get the same results. I dont want to assume :)

 

is it work?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

It doesn't work fully.

 

Try @auraset 650

 

When you hide, it works and the other player doesn't see it. But the only problem is that your own character still sees it. It can be a bit annoying and it may question the player if it's really working or not

Link to comment
Share on other sites


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

for me it's that:

 

clif.c:17138: error: stray â@â in program
clif.c:17138: error: expected identifier or â(â before â-â token
clif.c:17138: error: stray â@â in program
clif.c:17138: error: stray â@â in program
clif.c:17146: error: stray â@â in program
clif.c:17146: error: stray â@â in program
clif.c:17146: error: stray â@â in program
clif.c:17158: error: expected identifier or â(â before âreturnâ
clif.c:17159: error: stray â@â in program
clif.c:17159: error: expected identifier or â(â before â-â token
clif.c:17159: error: stray â@â in program
clif.c:17159: error: stray â@â in program
clif.c:17161: error: expected identifier or â(â before âreturnâ
clif.c:17162: error: expected identifier or â(â before â}â token
clif.c:17183: error: redefinition of âclif_sendaurastooneâ
clif.c:17167: note: previous definition of âclif_sendaurastooneâ was here
make[1]: *** [obj_sql/clif.o] Error 1
 

i hate src x_X

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

Well this mod has a lot of years n_nU and I use only as event prize, for example here, top 3pvp player, you could assign the @aura for each one, i normally test one by one to "make" the custom one n_nU

 

Maybe is a easy way or a better way now, but is useful if you don't let the players choose their aura u_u

 

I can try to fix the problems, however i don't have net in my hose now =( so maybe takes a little time u_u

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

nice info for latest svn, I made this .patch file

attachicon.gifauraset_rA17128.patch

 

what is this bro. aura set for what ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

^ in general. If you know how to use it you can use it for custom auras. If you have certain criteria you can put it in an npc as well.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

It doesn't work fully.

 

Try @auraset 650

 

When you hide, it works and the other player doesn't see it. But the only problem is that your own character still sees it. It can be a bit annoying and it may question the player if it's really working or not

'hide' refers to Cloaking, Hiding, Exceed Cloaking, Camouflage and Chasewalk.

It doesn't disappear on self even other players have. Just need player to know and try it. haha

 

if @hide, the effect won't gone onself and player.

 

NOTE:

- The case if aura player is in same area with other players

- If I @hide first then there is player come over, it doesn't matter.

 

what is this bro. aura set for what ?

here

"What does it do?"

The easiest way to think of it is as the level 99 aura, but using a different effect. It will place an effect on a character like the @effect command, but the effect will not be one time only. Unlike @effect, it will remain with the user through map changes, will show to new users entering the screen, and will return when the user logs back on.

http://www.eathena.ws/board/index.php?showtopic=144643 Edited by Cydh
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

only some @effects work correctly with this auraset patch, like if you use 880, the effect would hide for both the player and outside people xp

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

only some @effects work correctly with this auraset patch, like if you use 880, the effect would hide for both the player and outside people xp

what are the effect's that work perfectly?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

err I don't recall, only a few if any though. Auras from trans classes, those work, but looking at the @effect list I can't tell further than that

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

@judas, do you use auraset from Nana's comment?

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
Answer this question...

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