Any Emulator - Coding addons for your Emulator

Status
Not open for further replies.

nathan22

New Member
Dec 10, 2012
28
2
could you fix this @Moonshine :


Code:
                        case 157:
                          if (!Session.GetHabbo().HasFuse("cmd_spin"))
                          {
                            if (Params[1] == "stop")
                              ChatCommandHandler.isSpinning.Remove((int) Session.GetHabbo().Id);
                            Room currieRoom = Session.GetHabbo().CurrentRoom;
                            RoomUser roomUserByHabbo = (RoomUser) null;
                            currieRoom = Phoenix.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                            if (currieRoom != null)
                            {
                              roomUserByHabbo = currieRoom.GetRoomUserByHabbo(Session.GetHabbo().Id);
                              if (roomUserByHabbo != null)
                              {
                                int f = 0;
                                System.Timers.Timer st = new System.Timers.Timer();
                                st.Interval = 200.0;
                                st.Elapsed += (ElapsedEventHandler) ((ss, ee) =>
                                {
                                  if (!ChatCommandHandler.isSpinning.ContainsKey((int) Session.GetHabbo().Id))
                                  {
                                    st.Stop();
                                    st.Dispose();
                                  }
                                  if (Enumerable.Contains<RoomUser>((IEnumerable<RoomUser>) currieRoom.RoomUsers, roomUserByHabbo))
                                  {
                                    if (f == 8)
                                    {
                                      roomUserByHabbo.method_9(f);
                                      f = 0;
                                    }
                                    else
                                    {
                                      roomUserByHabbo.method_9(f);
                                      ++f;
                                    }
                                  }
                                  else
                                    ChatCommandHandler.isBrb.Remove((int) Session.GetHabbo().Id);
                                });
                                st.Enabled = true;
                                st.AutoReset = true;
                                st.Start();
                              }
                            }
                          }
                          else
                            Session.SendNotification("You don't have permission to use this command!");
                          return true;
Its spin command but from what i can see it don't use any method for a rotation loop :(
 

Jaden

not so active
Aug 24, 2014
886
263
could you fix this @Moonshine :


Code:
                        case 157:
                          if (!Session.GetHabbo().HasFuse("cmd_spin"))
                          {
                            if (Params[1] == "stop")
                              ChatCommandHandler.isSpinning.Remove((int) Session.GetHabbo().Id);
                            Room currieRoom = Session.GetHabbo().CurrentRoom;
                            RoomUser roomUserByHabbo = (RoomUser) null;
                            currieRoom = Phoenix.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                            if (currieRoom != null)
                            {
                              roomUserByHabbo = currieRoom.GetRoomUserByHabbo(Session.GetHabbo().Id);
                              if (roomUserByHabbo != null)
                              {
                                int f = 0;
                                System.Timers.Timer st = new System.Timers.Timer();
                                st.Interval = 200.0;
                                st.Elapsed += (ElapsedEventHandler) ((ss, ee) =>
                                {
                                  if (!ChatCommandHandler.isSpinning.ContainsKey((int) Session.GetHabbo().Id))
                                  {
                                    st.Stop();
                                    st.Dispose();
                                  }
                                  if (Enumerable.Contains<RoomUser>((IEnumerable<RoomUser>) currieRoom.RoomUsers, roomUserByHabbo))
                                  {
                                    if (f == 8)
                                    {
                                      roomUserByHabbo.method_9(f);
                                      f = 0;
                                    }
                                    else
                                    {
                                      roomUserByHabbo.method_9(f);
                                      ++f;
                                    }
                                  }
                                  else
                                    ChatCommandHandler.isBrb.Remove((int) Session.GetHabbo().Id);
                                });
                                st.Enabled = true;
                                st.AutoReset = true;
                                st.Start();
                              }
                            }
                          }
                          else
                            Session.SendNotification("You don't have permission to use this command!");
                          return true;
Its spin command but from what i can see it don't use any method for a rotation loop :(
A loop is what you want?
 
Status
Not open for further replies.

Users who are viewing this thread

Top