Jump to content
  • 0
Sign in to follow this  
bWolfie

Disable Certain Items on Certain Map

Question

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

5 answers to this question

Recommended Posts

  • 0

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 by Samuel

Share this post


Link to post
Share on other sites
  • 0
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;
}

Share this post


Link to post
Share on other sites
  • 0

 

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 by Zhao Chow

Share this post


Link to post
Share on other sites
  • 0

 

 

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 by True Zeal

Share this post


Link to post
Share on other sites
  • 0

 

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 by Legend

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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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