Jump to content

Inivisible Costumes


Recommended Posts

  • Replies 11
  • Created
  • Last Reply

Top Posters In This Topic

1 hour ago, WeedHex said:

It depends from VNUM that you chose.

I suggest to use progressive vnums or keep them from official packs.

 

 

In the binary c++ there are checks about npc.txt vnum reading.

I did not understand, how can the vnum affect the costume visibility?

 

Edit:

if possible, do you know where in the source is a function that says "show this costume instead of the armor" ?

It's all lies

Link to comment
Share on other sites

  • Premium

I understood that you can't see costumes. (they're invisible)

Reading again i understand that you want to let costume disapper. 

In this case i suggest to do:

 

                    CItem* itemBody = GetWear(WEAR_BODY);


                    SetPart(PART_MAIN, itemBody->GetVnum());  //COSTUM

                    SetPart(PART_MAIN, GetOriginalPart(PART_MAIN)); //NO COSTUM

Link to comment
Share on other sites

32 minutes ago, WeedHex said:

I understood that you can't see costumes. (they're invisible)

Reading again i understand that you want to let costume disapper. 

In this case i suggest to do:

 

                    CItem* itemBody = GetWear(WEAR_BODY); 


                    SetPart(PART_MAIN, itemBody->GetVnum());  //COSTUM

                    SetPart(PART_MAIN, GetOriginalPart(PART_MAIN)); //NO COSTUM

In which file can i do that change/add to the code?

I'm searching, if i find i'll edit this comment hehe

It's all lies

Link to comment
Share on other sites

On 10/23/2018 at 6:53 PM, WeedHex said:

I understood that you can't see costumes. (they're invisible)

Reading again i understand that you want to let costume disapper. 

In this case i suggest to do:

 

                    CItem* itemBody = GetWear(WEAR_BODY);


                    SetPart(PART_MAIN, itemBody->GetVnum());  //COSTUM

                    SetPart(PART_MAIN, GetOriginalPart(PART_MAIN)); //NO COSTUM

Can't find where to change that D:

It's all lies

Link to comment
Share on other sites

5 hours ago, WeedHex said:

Dude depends where you want to active it...

 

You can realize a comand to do it from a button.

The code that i show you is from char use. If you want to work in other files you must use ch-> pointer....

If you may, do you know exactly in which file is "writen" "Use costum instead of armor"? :\ i could use some variable from player to control that, or even a vnum for a costum invisible, would be easier that way i guess?

It's all lies

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.