Is it possible to stop diamonds/bars being used on rollers?

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Account Upgraded | Title Enabled! TardisHotel is offline
    MemberRank
    Mar 2013 Join Date
    404Posts

    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.


  2. #2
    Mr VPS - Cheap VPS Server NOC is offline
    MemberRank
    Sep 2011 Join Date
    Liverpool, UKLocation
    844Posts

    Re: Is it possible to stop diamonds/bars being used on rollers?

    Do you mean for stacking purposes ?

  3. #3
    Apprentice baailey is offline
    MemberRank
    Jan 2015 Join Date
    19Posts

    Re: Is it possible to stop diamonds/bars being used on rollers?

    Quote Originally Posted by Johno View Post
    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

  4. #4
    Hakuna Matata Matata is offline
    MemberRank
    Sep 2012 Join Date
    DenmarkLocation
    807Posts

    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?

  5. #5
    Account Upgraded | Title Enabled! TardisHotel is offline
    MemberRank
    Mar 2013 Join Date
    404Posts

    Re: Is it possible to stop diamonds/bars being used on rollers?

    Quote Originally Posted by Matata View Post
    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.

  6. #6
    Hakuna Matata Matata is offline
    MemberRank
    Sep 2012 Join Date
    DenmarkLocation
    807Posts

    Re: Is it possible to stop diamonds/bars being used on rollers?

    Quote Originally Posted by TardisHotel View Post
    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. :)

  7. #7
    Account Upgraded | Title Enabled! TardisHotel is offline
    MemberRank
    Mar 2013 Join Date
    404Posts
    Quote Originally Posted by Matata View Post
    I don't want you to give me your emulator, I just want the base. :)
    It's the one that was released fresh emu but it's had a bit of work on it since that release..
    ----------- merged -----------
    Bailey will pm you xo
    Last edited by Droppy; 17-07-15 at 08:23 PM. Reason: merged due to dual post

  8. #8
    Account Upgraded | Title Enabled! TardisHotel is offline
    MemberRank
    Mar 2013 Join Date
    404Posts

    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.

  9. #9
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: Is it possible to stop diamonds/bars being used on rollers?

    Quote Originally Posted by TardisHotel View Post
    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

  10. #10
    Account Upgraded | Title Enabled! TardisHotel is offline
    MemberRank
    Mar 2013 Join Date
    404Posts

    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.

  11. #11
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: Is it possible to stop diamonds/bars being used on rollers?

    Quote Originally Posted by TardisHotel View Post
    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

  12. #12
    Account Upgraded | Title Enabled! TardisHotel is offline
    MemberRank
    Mar 2013 Join Date
    404Posts

    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

  13. #13
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: Is it possible to stop diamonds/bars being used on rollers?

    Quote Originally Posted by TardisHotel View Post
    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

  14. #14
    Apprentice baailey is offline
    MemberRank
    Jan 2015 Join Date
    19Posts

    Re: Is it possible to stop diamonds/bars being used on rollers?

    Quote Originally Posted by Cathrine View Post
    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?

  15. #15
    Apprentice Cathrine is offline
    MemberRank
    Jul 2015 Join Date
    The ZooLocation
    21Posts

    Re: Is it possible to stop diamonds/bars being used on rollers?

    Quote Originally Posted by baailey View Post
    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?



Page 1 of 2 12 LastLast

Advertisement