Command fix, mainly :tele

Results 1 to 7 of 7
  1. #1
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    angry Command fix, mainly :tele

    Hello I have applied a few fixes to my swift emulator, and now my :tele doesnt work could someone help please?
    Spoiler:

    Chatcommandhandler.cs
    Spoiler:

    internal void teleport()
    {
    Room currentRoom = this.Session.GetHabbo().CurrentRoom;
    RoomUser roomUserByHabbo = null;
    currentRoom = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
    roomUserByHabbo = currentRoom.GetRoomUserManager().GetRoomUserByHabbo(this.Session.GetHabbo().Id);
    if (roomUserByHabbo != null)
    {
    roomUserByHabbo.TeleportEnabled = !roomUserByHabbo.TeleportEnabled;
    currentRoom.GetGameMap().GenerateMaps(true);
    }
    }

    Commands_register.ini
    Spoiler:

    [Admin commands]
    tele=7

    Commands.ini
    Spoiler:

    [tele]
    tele.minrank=-7
    tele.description=Teleport in the room.
    tele.prefix=
    tele.input=tele,teleport
    tele.clubs=



    also does anyone have a fix for :push and :pull?
    Last edited by Chase Bergroth; 09-11-13 at 09:27 AM.


  2. #2
    Account Upgraded | Title Enabled! master99 is offline
    MemberRank
    Nov 2011 Join Date
    AustrailaLocation
    307Posts

    Re: Command fix, mainly :tele

    I wouldnt have a clue... but I might suggest to debug it

  3. #3
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Command fix, mainly :tele

    I have debugged, I will try again. and let you know..

  4. #4
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Command fix, mainly :tele

    I debugged again with no errors, :tele is still not working, someone please help XD

  5. #5
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Command fix, mainly :tele

    bump!

  6. #6
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: Command fix, mainly :tele

    You're just calling the generate maps function, I'm pretty sure there is an enter room function in the Room instance, also you're defining CurrentRoom twice.

  7. #7
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Command fix, mainly :tele

    So get rid of one defineroom and the generate maps or? xD sorry bit nooby haha but im getting there :)



Advertisement