Jump to content
  • 0

Guild PK Points


Question

Posted

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.

4 answers to this question

Recommended Posts

Posted

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

Posted

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

Posted (edited)

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

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