Jump to content
  • 0

If map is in pvp = every warp there will be a self announce info


Question

Posted

Hello everyone i would like to request this one.

If map is in pvp = every warp there will be a self announce info.

Example at pay_fild08 is in pvp on. if you teleport on that area, you will see a broadcast to self with the "The map is currently in PVP mode so be ready!";

Thank you everyone and Godbless!

5 answers to this question

Recommended Posts

  • 1
Posted
-	script	pvp_map	-1,{
OnPCLoadMapEvent:
getmapxy .@ma$,.@ax,.@ay,0;
	if(.@ma$ == "pay_fild08")
	{
		message strcharinfo(0),"The map is currently in PVP mode so be ready!";
	}
}
pay_fild08	mapflag	loadevent

 

  • Upvote 1
  • 1
Posted

You can try

-	script	pvp_warp_announce	-1,{
OnPCLoadMapEvent:
	 if(getmapflag(strcharinfo(3), mf_pvp)){
	 	announce "This is a PvP Area.",bc_blue|bc_self;
	 }
	 end;
}

Dont forget to add mapflag loadevent on the pvp maps.

  • Upvote 1
  • 0
Posted (edited)
-	script	check_pvp	-1,{
OnPCLoadMapEvent:
	if (getmapflag( strcharinfo(3),mf_pvp ))
	{
		message strcharinfo(0),"The map is currently in PVP mode so be ready!";
	}
	end;
}

pay_fild08	mapflag	loadevent

 

 

Edited by Skorm
Added code block and improved formatting.
  • Upvote 1
  • 0
Posted
1 hour ago, Astray said:

Where do I put the .txt of these entering a PK/PvP scripts? I would like to know, thank you!

same as you create custom script

put into new text file, and name it.

and put name of the file at script_custom.conf

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