Mercenay block

Disconected

New member
Messages
1
Points
0
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.

 
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

default_smile.png


 
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!

 
Back
Top