Is it possible to stop diamonds/bars being used on rollers?
I am using Butterfly Emu and wondered if any clever people out there would happen to know if I can stop CF items being rolled into each other.
I was wondering if anyone could write me up the code to be able to add this to my Emulator, huge ask I know but maybe someone out there might be able to help me.
Re: Is it possible to stop diamonds/bars being used on rollers?
Do you mean for stacking purposes ?
Re: Is it possible to stop diamonds/bars being used on rollers?
Quote:
Originally Posted by
Johno
Do you mean for stacking purposes ?
To stop exchange items such as the diamonds and bars being used on rollers. Eg. if (baseitem.name.contains("cf"))
Then it wont be able to roll
Re: Is it possible to stop diamonds/bars being used on rollers?
Shouldn't be hard to do, even though I can't see the purpose of this.
You said that you're using butterfly emulator but since there's multiple versions, could you link me to the one you're using?
Re: Is it possible to stop diamonds/bars being used on rollers?
Quote:
Originally Posted by
Matata
Shouldn't be hard to do, even though I can't see the purpose of this.
You said that you're using butterfly emulator but since there's multiple versions, could you link me to the one you're using?
I am using an upgrade to the fresh butterfly emu, obviously I don't want to say to much on the thread but i would really appreciate if you do know the code to do this if you could show me what I would have to put.
Re: Is it possible to stop diamonds/bars being used on rollers?
Quote:
Originally Posted by
TardisHotel
I am using an upgrade to the fresh butterfly emu, obviously I don't want to say to much on the thread but i would really appreciate if you do know the code to do this if you could show me what I would have to put.
I don't want you to give me your emulator, I just want the base. :)
Re: Is it possible to stop diamonds/bars being used on rollers?
So no one can write a bit of code to stop something being rolled onto a roller? How interesting.
Re: Is it possible to stop diamonds/bars being used on rollers?
Quote:
Originally Posted by
TardisHotel
So no one can write a bit of code to stop something being rolled onto a roller? How interesting.
It's not as easy as you'd might think. Looking at how the rollers work in RoomItemHandling.cs (Azure Source) it gets all the furniture by the ID and not the name, you could obviously try to create a new "dictionary" there containing the names but I can't test that as I have no hotel to work with so it's a bit hard to test if what I try to do actually works
Re: Is it possible to stop diamonds/bars being used on rollers?
Trust me I know it's not easy, we were having a go ourselves but couldn't get it to work. That's why I am posting here as I have seen many people claim they know how to code Emulators.
If it wasn't kind of urgent I wouldn't have posted it but it is and I really need help with this one.
Re: Is it possible to stop diamonds/bars being used on rollers?
Quote:
Originally Posted by
TardisHotel
Trust me I know it's not easy, we were having a go ourselves but couldn't get it to work. That's why I am posting here as I have seen many people claim they know how to code Emulators.
If it wasn't kind of urgent I wouldn't have posted it but it is and I really need help with this one.
Try to add
Code:
|| current4.BaseItem.Name.Contains("cf")
or
Code:
|| current4.Name.Contains("cf")
after
Code:
if (_rollerItemsMoved.Contains(current4.Id)
if your emulator doesn't use "current4" replace it with whatever it uses. I think Azure is based on something that's based on (something that's based on ..) butterfly so it's a chance the code is somewhat similar
Re: Is it possible to stop diamonds/bars being used on rollers?
Yeah still throwing errors, It would be so much easier if it was in the swf :-P Or even a table you could add ..or something
Re: Is it possible to stop diamonds/bars being used on rollers?
Quote:
Originally Posted by
TardisHotel
Yeah still throwing errors, It would be so much easier if it was in the swf :-P Or even a table you could add ..or something
Try to search for
".baseitem.name" or just ".name" in the file or other project files and check capitalization, if you're not using current4 there replace that with whatever you're using and search. But it's important all the capitalization is the same as elsewhere
Re: Is it possible to stop diamonds/bars being used on rollers?
Quote:
Originally Posted by
Cathrine
Try to search for
".baseitem.name" or just ".name" in the file or other project files and check capitalization, if you're not using current4 there replace that with whatever you're using and search. But it's important all the capitalization is the same as elsewhere
Error: an object reference is required to access non-static field, method, or property
How would we go about fixing this?
Re: Is it possible to stop diamonds/bars being used on rollers?
Quote:
Originally Posted by
baailey
Error: an object reference is required to access non-static field, method, or property
How would we go about fixing this?
The object reference is the current4 or whatever variable your emulator uses?