Command needed $$ involved.

LeComet

Retaliation 3
Jun 26, 2016
31
9
Anybody around here have both :Setsh and :stopsh commands for stacking? there will be £££ involved if you can help me.
Thanks Again!
 

JayC

Always Learning
Aug 8, 2013
5,494
1,398
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:
Code:
Session.GetHabbo().Boolean = false;
Session.GetHabbo().Double = 0;
Then under your RoomItemHandling I believe it is the method internal bool SetFloorItem

Between:
item.Rot = newRot;
//Here
item.SetState(newX, newY, height, affectedTiles);

Code:
Code:
if (Session.GetHabbo().Boolean)
            {
                height = Session.GetHabbo().Double;
            }
 

LeComet

Retaliation 3
Jun 26, 2016
31
9
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:
Code:
Session.GetHabbo().Boolean = false;
Session.GetHabbo().Double = 0;
Then under your RoomItemHandling I believe it is the method internal bool SetFloorItem

Between:
item.Rot = newRot;
//Here
item.SetState(newX, newY, height, affectedTiles);

Code:
Code:
if (session.GetRoleplay().DebugStacking)
            {
                height = Session.GetHabbo().Double;
            }
Thankyou so much, you narrowed it down so simply. This is hugely appreciated man!
 

JayC

Always Learning
Aug 8, 2013
5,494
1,398
Thankyou so much, you narrowed it down so simply. This is hugely appreciated man!
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.
 

LeComet

Retaliation 3
Jun 26, 2016
31
9
Oh haha, what a coincidence! and yeah you seemed too have narrow it down pretty simply so don't think there will be much hassle. If i do come across aproblem that it is out of my depth (I'm only learning the basics) I'll inform you again if that is alright!
 

Users who are viewing this thread

Top