Jump to content
  • 0

WoE points who killed a player


Question

4 answers to this question

Recommended Posts

  • 0
Posted

ok i fix it my self

-    script    woe_point    -1,{
    OnPCKilLEvent:
        if ( getcharid(3) != killedrid && strcharinfo(3) == "aldeg_cas03" ) {
            set #WOE_POINTS,#WOE_POINTS+1;
            dispbottom "Gained 1 WoE Points. Total : "+ #WOE_POINTS +" WoE Points.";
        }
        end;
}

  • Like 1
  • 1
Posted (edited)
15 hours ago, Emonizer08 said:

sir no need for that no points will gain outside the said map "aldeg_cas03" proven and tested thank you

True but if there is no active woe, it will still count... I don't see the point of making this script if you don't add the agitcheck()

 

-	script	asdfg	-1,{
OnPCKillEvent:
	setarray .@map$, "aldeg_cas01",	"aldeg_cas02"; // maps
	if ( getcharid(3) == killerrid || !agitcheck() ) end; // auto end if player kills himself and also if woe is not active
	for ( .@i = 0; .@i < getarraysize(.@map$); .@i++) {
		if ( strcharinfo(3) == .@map$[.@i] ) {
			#WOE_POINTS++;
			dispbottom "Gained 1 WoE Points. Total : "+ #WOE_POINTS +" WoE Points.";
		}
	}	
	end;
}

 

Edited by pajodex
  • Like 1

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