Jump to content
  • 0

How will I add announce on death/kill?


Question

Posted
prontera,147,170,5	script	PVP Arena	655,{
if ( agitcheck() || agitcheck2() ) {
mes "Sorry, PVP Rooms are Locked During WOE.";
close;
}
mes "[ ^0065DFPVP Warper^000000 ]";
mes "Welcome To PVP Warper";
mes "I Can Help You Warp To PVP Room";
mes "You Ready?";
switch(select("PvP FFA ["+getmapusers("guild_vs2")+"/100]:PvP Room ["+getmapusers("guild_vs3")+"/100]:No")) {
case 1:
set zz_point,zz_point+1;
set my_point,zz_point;
if (getmapusers("guild_vs2") > 255) callsub S_full;
announce ""+ strcharinfo(0) +" Has Entered The PvP FFA",bc_all; //announce and end
warp "guild_vs2" ,0,0;
close;
end;
case 2:
set zz_point,zz_point+1;
set my_point,zz_point;
if (getmapusers("guild_vs3") > 255) callsub S_full;
announce ""+ strcharinfo(0) +" Has Entered The PvP Room",bc_all; //announce and end
warp "guild_vs3" ,0,0;
close;
end;
case 3:
close;

S_full:
mes " ";
mes "I'm sorry, this arena is full.  Please try again later...";
close;

}
OnInit:
while (1) {
delwaitingroom;
set .@count, getmapusers("guild_vs3") + getmapusers("guild_vs2");
waitingroom "PvP Room ["+ .@count + ((.@count==1) ? " User" : " Users") +"]",0;
sleep 1000;
}
}

guild_vs2 mapflag nosave
guild_vs2 mapflag nowarp
guild_vs2 mapflag nowarpto
guild_vs2 mapflag noteleport
guild_vs2 mapflag noreturn

guild_vs3 mapflag nosave
guild_vs3 mapflag nowarp
guild_vs3 mapflag nowarpto
guild_vs3 mapflag noteleport
guild_vs3 mapflag noreturn

How will add announce when a player kills another player? Credits to whoever owns the script! I just saw it..

3 answers to this question

Recommended Posts

  • 0
Posted

use OnPCKillEvent:

OnPCKillEvent:
	if( strcharinfo(3) == "guild_vs3" || strcharinfo(3) == "guild_vs2" )
		announce strcharinfo(0)+" killed "+rid2name(killedrid)+" at "+strcharinfo(3)+".",0;
	end;

 

  • Upvote 1
  • 0
Posted
1 minute ago, Technoken said:

use OnPCKillEvent:


OnPCKillEvent:
	if( strcharinfo(3) == "guild_vs3" || strcharinfo(3) == "guild_vs2" )
		announce strcharinfo(0)+" killed "+rid2name(killedrid)+" at "+strcharinfo(3)+".",0;
	end;

 

Sir, extra question. When I'm inside, I cannot see the damages. Why? :(

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