Is there a way not to edit src files? cause its hard to update hercules when there's modificationFor usable items you can use a map zone restriction: just disable it on the "All" zone and enable it on the Battleground zone.
For items used by skills, that's a bit more complicated and maybe you need a source mod.
Why you don't check out this source mod? May be useful for what you want: http://herc.ws/board/topic/425-bg-consume-mapflag-battlegrounds-items-that-can-only-be-used-in-bg/
Have you tried these?Is there a way not to edit src files? cause its hard to update hercules when there's modificationFor usable items you can use a map zone restriction: just disable it on the "All" zone and enable it on the Battleground zone.
For items used by skills, that's a bit more complicated and maybe you need a source mod.
Why you don't check out this source mod? May be useful for what you want: http://herc.ws/board/topic/425-bg-consume-mapflag-battlegrounds-items-that-can-only-be-used-in-bg/![]()
You can try this.
getmapflag("<map name>",mf_battleground)
- script bg_noequip -1,{OnPCLoadMapEvent: if(getmapflag(strcharinfo(3),mf_battleground) { if(isequipped(2220) unequip 2220; // Hat if(isequipped(2222) unequip 2222; // Turban } end; }
Give this a try; just make sure your battlegrounds maps have the loadevent mapflag set.
if(!getmapflag(strcharinfo(3),mf_battleground) { getitem 501; message strcharinfo(0), "This item can only be used in Battlegrounds."; } else itemheal rand(45,65),0;
disabled_items: {
Assumptio_5_Scroll: true
Pty_Assumptio_Scroll: true
Red_Potion: false
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.