try{
double height = Convert.ToDouble(Params[1]);
}catch{
Session.SendWhisper("Invalid Stack Height");
return;
}
if(height < 0 || height > 40){
Session.SendWhisper("Invalid Stack Height Must Be Between 0-40");
return;
}
Session.GetHabbo().Boolean = true;
Session.GetHabbo().Double = height;
Session.SendWhisper("Debugging Mode Enabled for height " + height);
Session.GetHabbo().Boolean = false;
Session.GetHabbo().Double = 0;
if (Session.GetHabbo().Boolean)
{
height = Session.GetHabbo().Double;
}
Thankyou so much, you narrowed it down so simply. This is hugely appreciated man!Well, Create 2 variables under the habbo class:
1) Boolean to control the stack height
2) Double for the stack height
Under the command you want to put this code:
Code:
Code:try{ double height = Convert.ToDouble(Params[1]); }catch{ Session.SendWhisper("Invalid Stack Height"); return; } if(height < 0 || height > 40){ Session.SendWhisper("Invalid Stack Height Must Be Between 0-40"); return; }
Session.GetHabbo().Boolean = true;
Session.GetHabbo().Double = height;
Session.SendWhisper("Debugging Mode Enabled for height " + height);
Then Under stopsh just put this:
Code:
Then under your RoomItemHandling I believe it is the method internal bool SetFloorItemCode:Session.GetHabbo().Boolean = false; Session.GetHabbo().Double = 0;
Between:
item.Rot = newRot;
//Here
item.SetState(newX, newY, height, affectedTiles);
Code:
Code:if (session.GetRoleplay().DebugStacking) { height = Session.GetHabbo().Double; }
No problem, Just helped someone in a private message with this so it was fairly easy to tell you lol. Um, this was all roughly coded in DevBest so there might be a few bugs but this is the generic idea and should work pretty well.Thankyou so much, you narrowed it down so simply. This is hugely appreciated man!