Jaden
not so active
- Thread starter
- #41
what are reps?Yes, it's ok @Moonshine
Could you also fix that you can't give reps from the same IP?
@Moonshine pls could you make it?
what are reps?Yes, it's ok @Moonshine
Could you also fix that you can't give reps from the same IP?
@Moonshine pls could you make it?
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;
A loop is what you want?could you fix this @Moonshine :
Its spin command but from what i can see it don't use any method for a rotation loopCode: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;
By the looks of it it has no rotation functionA loop is what you want?