Disable Certain Items on Certain Map

bWolfie

I'm the man
Messages
850
Points
0
Location
Alberta, Midgard
Github
bWolfie
Emulator
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.

 
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

 
Last edited by a moderator:
I tried this, think I did something wrong.
 
Code:
-    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;
}
 
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

 
Last edited by a moderator:
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.

 
Last edited by a moderator:
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

 
Last edited by a moderator:
Back
Top