Jump to content
  • 0

Different custom aura for different top 3 pvp player


Question

Recommended Posts

Posted (edited)

I think so.

**I just deleted my .patch file just deleted, there are some wrong lines. I'll re-attach it **

 

Uhmm, Nana's comment based on old release from eAthena and I add some lines based on this post to avoid map crash after monster attacking.

 

I've tried, when using skill Cloaking, Hiding, Exceed cloaking, Camouflade, (I think all of) effects doesn't disappear from player that has it.

and int aura; on pc.h is useless, it's never be called. :D

Edited by Cydh
Posted

Here's how I would do it.

 

1. Apply this: http://upaste.me/raw/d4055407f84041e0 (I based the diff from rev 17088)

 

2. Then put up a npc with something like this event(depending on how your ranking works, in this case i use fame)

 

OnPCLoginEvent:
query_sql("select char_id from `char` ORDER BY fame DESC LIMIT 3", @fame);
for(set .@i,0; .@i<3; set .@i,.@i+1){
	if(getcharid(0) == @fame[.@i]){
		atcommand "@auraset "+(.@i+16);
		end;
	}
}
atcommand "@auraset 0";
end;
  • Upvote 1
Posted

I think so.

**I just deleted my .patch file just deleted, there are some wrong lines. I'll re-attach it **

 

Uhmm, Nana's comment based on old release from eAthena and I add some lines based on this post to avoid map crash after monster attacking.

 

I've tried, when using skill Cloaking, Hiding, Exceed cloaking, Camouflade, (I think all of) effects doesn't disappear from player that has it.

and int aura; on pc.h is useless, it's never be called. :D

 

can u make a source script also :D 

Posted (edited)

Here's how I would do it.

 

1. Apply this: http://upaste.me/raw/d4055407f84041e0 (I based the diff from rev 17088)

 

2. Then put up a npc with something like this event(depending on how your ranking works, in this case i use fame)

 

OnPCLoginEvent:
query_sql("select char_id from `char` ORDER BY fame DESC LIMIT 3", @fame);
for(set .@i,0; .@i<3; set .@i,.@i+1){
	if(getcharid(0) == @fame[.@i]){
		atcommand "@auraset "+(.@i+16);
		end;
	}
}
atcommand "@auraset 0";
end;

edit: problem fix. thanks for this clydelion

 

Edited by TrojanWorm
Posted

 

Here's how I would do it.

 

1. Apply this: http://upaste.me/raw/d4055407f84041e0 (I based the diff from rev 17088)

 

2. Then put up a npc with something like this event(depending on how your ranking works, in this case i use fame)

 

OnPCLoginEvent:
query_sql("select char_id from `char` ORDER BY fame DESC LIMIT 3", @fame);
for(set .@i,0; .@i<3; set .@i,.@i+1){
	if(getcharid(0) == @fame[.@i]){
		atcommand "@auraset "+(.@i+16);
		end;
	}
}
atcommand "@auraset 0";
end;

edit: problem fix. thanks for this clydelion

 

 

still doesn't fix the cloaking/hiding bug...  /oops

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...