Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

How to automatically disable mercenary on woe and pvp maps?


fireicesurfer

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.02
  • Content Count:  101
  • Reputation:   3
  • Joined:  04/15/20
  • Last Seen:  

please i need help. master scripters

to disable mercenary homunculus on pvp warper and woe please 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2373
  • Joined:  10/28/11
  • Last Seen:  

-	script	Sample	-1,{
	OnInit:
		setarray .@map_list$,
			"prtg_cas01", "gefg_cas01", "payg_cas01", "aldeg_cas01",
			"prtg_cas02", "gefg_cas02", "payg_cas02", "aldeg_cas02",
			"prtg_cas03", "gefg_cas03", "payg_cas03", "aldeg_cas03",
			"prtg_cas04", "gefg_cas04", "payg_cas04", "aldeg_cas04",
			"prtg_cas05", "gefg_cas05", "payg_cas05", "aldeg_cas05";
		for (.@i = 0; .@i < .@size; .@i++)
			setmapflag .@map_list$[.@i], mf_loadevent;
		end;
		
	OnPCLoadMapEvent:
		if (getmercinfo(0) > 0 && getmapflag(strcharinfo(3), mf_gvg_castle)) {
			mes "Mercenary aren't allowed in woe.";
			sleep 3000;
			warp "SavePoint", 0, 0;
		}
		end;
}

for your warpers and other NPC, add these line.

		if (getmercinfo(0)) {
			mes "Mercenary aren't allowed in woe.";
			close;
		}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.02
  • Content Count:  101
  • Reputation:   3
  • Joined:  04/15/20
  • Last Seen:  

On 4/26/2020 at 2:43 AM, Emistry said:

-	script	Sample	-1,{
	OnInit:
		setarray .@map_list$,
			"prtg_cas01", "gefg_cas01", "payg_cas01", "aldeg_cas01",
			"prtg_cas02", "gefg_cas02", "payg_cas02", "aldeg_cas02",
			"prtg_cas03", "gefg_cas03", "payg_cas03", "aldeg_cas03",
			"prtg_cas04", "gefg_cas04", "payg_cas04", "aldeg_cas04",
			"prtg_cas05", "gefg_cas05", "payg_cas05", "aldeg_cas05";
		for (.@i = 0; .@i < .@size; .@i++)
			setmapflag .@map_list$[.@i], mf_loadevent;
		end;
		
	OnPCLoadMapEvent:
		if (getmercinfo(0) > 0 && getmapflag(strcharinfo(3), mf_gvg_castle)) {
			mes "Mercenary aren't allowed in woe.";
			sleep 3000;
			warp "SavePoint", 0, 0;
		}
		end;
}

for your warpers and other NPC, add these line.


		if (getmercinfo(0)) {
			mes "Mercenary aren't allowed in woe.";
			close;
		}

 

Hello. Its not warping out character

 

image.png

image.png

Edited by fireicesurfer
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...