Jump to content

Question

Hi,
I'm looking for a script or a modification that does not allow the use of Mercenary in BG and WoE, but results so far, would appreciate help on this.

Also looking that it can not come with mercenary and pulled them out to maps or being in them, something similar as Pets in WoE.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

maybe you can use map_zone_db.conf

 

add this on disabled_items

Bow_Mercenary_Scroll1: true

Bow_Mercenary_Scroll2: true

Bow_Mercenary_Scroll3: true

 

etc any item for Mercenary

 

:)

Share this post


Link to post
Share on other sites
  • 0

You can block them using it on these restricted places as nostafuz said. If you do also want them not to enter in a place, use a script like this one:

 

-	script	nomercenaries	-1,{OnPCLoadMapEvent:	if (getmercinfo(0)) { // Don't check anything else if user has no mercenary		.@map$ = strcharinfo(PC_MAP); // This saves some time on next check		if (getmapflag(.@map$,mf_gvg_castle) || getmapflag(.@map$,mf_battleground)) {			warp "SavePoint",0,0; // kick him			announce "You may NOT have a Mercenary on WoE or Battleground maps.",bc_self;		}	}	end;}

This should kick them from these maps when entering with a mercenary. On current scripting, there's no way to terminate a mercenary's contract via a script command to the best of my knowledge.

 

Note: You should also add mapflag loadevent on all the maps you want to restrict it beforehand!

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.