bWolfie 138 Posted July 24, 2016 Is it possible to disable certain item ids or item slots per map? Example: On the map prt_fild08, I want to disable the weapon Main Gauche [4] (item id 1208) from being equipped. And on the map ama_fild01, I want to disable armor (EQP_ARMOR) from being equipped. Is any of this possible? Thanks. Quote Share this post Link to post Share on other sites
0 Samuel 83 Posted July 24, 2016 (edited) Is it possible to disable certain item ids or item slots per map? Example: On the map prt_fild08, I want to disable the weapon Main Gauche [4] (item id 1208) from being equipped. And on the map ama_fild01, I want to disable armor (EQP_ARMOR) from being equipped. Is any of this possible? Thanks. Your first request can be done via map zone conf, create a new zone where the items u want to be disabled is listed and apply that zone to your desired maps the second one is i think through a mapflag, hmm or use loadevents wherein upon entering that map and they have equipped armor, remove them Edited July 24, 2016 by Samuel Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted July 24, 2016 I tried this, think I did something wrong. - script Armor Remover FAKE_NPC,{ OnPCLoadMapEvent: if(strcharinfo(3) == "ama_fild01" && getequipisequiped(EQI_ARMOR) { unequip EQI_ARMOR; } end; OnInit: setmapflag "ama_fild01",mf_loadevent,1; end; } Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted July 24, 2016 (edited) I tried this, think I did something wrong. - script Armor Remover FAKE_NPC,{ OnPCLoadMapEvent: if(strcharinfo(3) == "ama_fild01" && getequipisequiped(EQI_ARMOR) { unequip EQI_ARMOR; } end; OnInit: setmapflag "ama_fild01",mf_loadevent,1; end; } putting some mapflag? like this.. maybe try it, put it after the npc script mapname<tab>mapflag<tab>loadevent Edited July 24, 2016 by Zhao Chow Quote Share this post Link to post Share on other sites
0 bWolfie 138 Posted July 24, 2016 (edited) I tried this, think I did something wrong. - script Armor Remover FAKE_NPC,{ OnPCLoadMapEvent: if(strcharinfo(3) == "ama_fild01" && getequipisequiped(EQI_ARMOR) { unequip EQI_ARMOR; } end; OnInit: setmapflag "ama_fild01",mf_loadevent,1; end; } putting some mapflag? like this.. maybe try it, put it after the npc script mapname<tab>mapflag<tab>loadevent Thanks it worked for removing the eqip. Actually there was an error I forgot to put ==1) at the end of my check. Still, I'm not sure how to stop them from being reequipped. Since it takes them off once they enter the map, but they can simply put it back on. Edited July 24, 2016 by True Zeal Quote Share this post Link to post Share on other sites
0 Legend 43 Posted July 24, 2016 (edited) I tried this, think I did something wrong. - script Armor Remover FAKE_NPC,{ OnPCLoadMapEvent: if(strcharinfo(3) == "ama_fild01" && getequipisequiped(EQI_ARMOR) { unequip EQI_ARMOR; } end; OnInit: setmapflag "ama_fild01",mf_loadevent,1; end; } You forgot to add 1 more closing parenthesis after EQI_ARMOR Edited July 24, 2016 by Legend Quote Share this post Link to post Share on other sites
Is it possible to disable certain item ids or item slots per map?
Example:
On the map prt_fild08, I want to disable the weapon Main Gauche [4] (item id 1208) from being equipped.
And on the map ama_fild01, I want to disable armor (EQP_ARMOR) from being equipped.
Is any of this possible?
Thanks.
Share this post
Link to post
Share on other sites