Jump to content
  • 0
syndrome93

Disable Look Headgear

Question

Hello rathena. i know how to disable look costume in woe with this file > nocostume.txt.

is there any ways to disable main look headgears too in woe?  i need to disable main look. and costume garments too.. 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You want to disable all of them? or just some? 
If all of them you can try by script..
 

-	script	CheckWoEHat	-1,{
end;

OnPCLoadMapEvent:
if(getmapflag(strcharinfo(3),mf_gvg_castle)) //// For Castle Maps
  {
  changelook LOOK_HEAD_TOP,0;
  changelook LOOK_HEAD_MID,0;
  changelook LOOK_HEAD_BOTTOM,0;
  end;
  }
///////////////// Change to normal when transfering to regular map.
changelook LOOK_HEAD_TOP,getlook(LOOK_HEAD_TOP);
changelook LOOK_HEAD_MID,getlook(LOOK_HEAD_MID);
changelook LOOK_HEAD_BOTTOM,getlook(LOOK_HEAD_BOTTOM);
end;

}

Now if you have for only certain IDs you'll need to add an array and do a loop to check if their sprite ID match with your array.. 
You can also add for this to only work when WoE is ON with if (!agitcheck()) {end;}

Link to comment
Share on other sites

  • 0
On 5/1/2020 at 7:21 PM, BigBurrito said:

You want to disable all of them? or just some? 
If all of them you can try by script..
 

-	script	CheckWoEHat	-1,{
end;

OnPCLoadMapEvent:
if(getmapflag(strcharinfo(3),mf_gvg_castle)) //// For Castle Maps
  {
  changelook LOOK_HEAD_TOP,0;
  changelook LOOK_HEAD_MID,0;
  changelook LOOK_HEAD_BOTTOM,0;
  end;
  }
///////////////// Change to normal when transfering to regular map.
changelook LOOK_HEAD_TOP,getlook(LOOK_HEAD_TOP);
changelook LOOK_HEAD_MID,getlook(LOOK_HEAD_MID);
changelook LOOK_HEAD_BOTTOM,getlook(LOOK_HEAD_BOTTOM);
end;

}

Now if you have for only certain IDs you'll need to add an array and do a loop to check if their sprite ID match with your array.. 
You can also add for this to only work when WoE is ON with if (!agitcheck()) {end;}

Hi @BigBurrito, Your script works fine however, I'm wondering if its possible to keep this script running while still inside the woe map? Please check the video to fully understand my query.

Thank you and more power!

2021-02-15 00-49-17.mkv

Link to comment
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.   Paste as plain text instead

  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.



×
×
  • Create New...

Important Information

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