Jump to content
  • 0

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


Nero

Question


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  

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!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   2
  • Joined:  05/15/12
  • Last Seen:  

-	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
Link to comment
Share on other sites

  • 1

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

-	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
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   2
  • Joined:  12/18/11
  • Last Seen:  

Thanks to all of you! Thumbs up!!

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

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