Jump to content
  • 0

Guild PK Points


Aya

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  125
  • Reputation:   2
  • Joined:  08/27/12
  • Last Seen:  

Is it possible to make a script (like a ranker NPC or something) that tally the total accumulated PK points of a certain Guild during WoE? For example, Guild 1: Total PK points = 1000; Guild 2: Total PK points = 2000 something like that.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Is it possible to make a script (like a ranker NPC or something) that tally the total accumulated PK points of a certain Guild during WoE? For example, Guild 1: Total PK points = 1000; Guild 2: Total PK points = 2000 something like that.

// alter table guild add column pk_woe_points int(11) default 0 after emblem_data, add index (pk_woe_points);
prontera,155,181,5	script	PK Woe Points	100,{
	.@nb = query_sql( "SELECT name, pk_woe_points from guild order by pk_woe_points desc limit 3", .@guild_name$, .@points ); // top 3
	for ( .@i = 0; .@i < .@nb; .@i++ ) {
		if ( !.@points[.@i] ) break;
		mes ( .@i +1 )+". "+ .@guild_name$[.@i] +" -> "+ .@points[.@i];
	}
	close;

OnPCKillEvent:
	if( agitcheck() && getcharid(2) && compare( .castle$, strcharinfo(3) ) )
		query_sql "update guild set pk_woe_points = pk_woe_points +1 where guild_id = "+ getcharid(2);
	end;
OnInit:
	setarray .@castle_name$, "prtg_cas01", "prtg_cas02"; // etc.. add yours castles
	.castle$ = implode( .@castle_name$, "|" );
	end;
}

One kill in prtg_cas01 = +1 point to the guild killer

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  125
  • Reputation:   2
  • Joined:  08/27/12
  • Last Seen:  

Okay, now testing it. Thanks btw. :)



Uhh I think your script gives a certain guild a Points. Hmm what I want is that, it's like a pvp ladder but instead of recording a player's Kills, I want it to be the guild's kills. :))

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  592
  • Reputation:   31
  • Joined:  11/14/11
  • Last Seen:  

i see like a pvp ladder with reset function :)

Edited by GM Takumirai
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Okay, now testing it. Thanks btw. :)

Uhh I think your script gives a certain guild a Points. Hmm what I want is that, it's like a pvp ladder but instead of recording a player's Kills, I want it to be the guild's kills. :))

It records guild's kills

Each time a player of a guild kill a player on a map in woe

setarray .@castle_name$, "prtg_cas01", "prtg_cas02"; // etc.. add yours castles

the guild gains 1 point

i see like a pvp ladder with reset function :)

There isn't reset function for this script

But you can reset with sql

Edited by Capuche
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...