Tentsss!! :w00t: Hope you understand my instructions, L0L
Open Item.cs and find (I have it on line 80, constructor):
Code:
this.Height_Adjustable.Add(double.Parse(height, NumberStyles.Number, CultureInfo.InvariantCulture));
}
Add under it:
Code:
if (this.InteractionType == "tent")
{
this.Tent = true;
}
else if (this.InteractionType == "tent_bed")
{
this.Tent = true;
this.InteractionType = "bed";
}
else
{
this.Tent = false;
}
Create new file InteractorTent.cs to HabboHotel/Items/Interactors
Code:
using GoldTree.HabboHotel.GameClients;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GoldTree.HabboHotel.Items.Interactors
{
class InteractorTent : FurniInteractor
{
public override void OnPlace(GameClient Session, RoomItem RoomItem_0)
{
RoomItem_0.ExtraData = "0";
}
public override void OnRemove(GameClient Session, RoomItem RoomItem_0)
{
RoomItem_0.ExtraData = "0";
}
public override void OnTrigger(GameClient Session, RoomItem Item, int int_0, bool bool_0)
{
}
}
}
Open RoomItem.cs and find (I have it on line 208, FurniInteractor Class69_0):
Code:
internal FurniInteractor Class69_0
{
get
{
And add under it:
Code:
if (this.GetBaseItem().Tent)
{
return new InteractorTent();
}
Open room.cs and find (I have it on 6632, void method_87):
Code:
User.double_0 = Item.Double_0;
User.int_7 = Item.int_3;
User.BodyRotation = Item.int_3;
if (User.IsBot && User.RoomBot.RoomUser_0 != null)
{
User.RoomBot.RoomUser_0.double_0 = User.double_0 + 1.0;
User.RoomBot.RoomUser_0.int_7 = User.int_7;
User.RoomBot.RoomUser_0.BodyRotation = User.BodyRotation;
}
User.UpdateNeeded = true;
}
And add under it:
Code:
if (current.GetBaseItem().Tent)
{
ServerMessage Message = new ServerMessage(88u);
Message.AppendStringWithBreak(current.uint_0.ToString());
Message.AppendStringWithBreak("1");
User.GetClient().SendMessage(Message);
User.TentID = current.uint_0;
}
find (I have it on line 6345, void method_85):
Code:
if (current.GetBaseItem().InteractionType.ToLower() == "pressure_pad")
{
current.ExtraData = "0";
current.UpdateState(false, true);
}
and add under it:
Code:
if (current.GetBaseItem().Tent)
{
ServerMessage Message = new ServerMessage(88u);
Message.AppendStringWithBreak(current.uint_0.ToString());
Message.AppendStringWithBreak("0");
RoomUser_1.GetClient().SendMessage(Message);
RoomUser_1.TentID = 0;
}
Open RoomUser.cs and find (I have it on line 85, under fields):
Code:
public ThreeDCoord Position
{
get
{
return new ThreeDCoord(this.X, this.Y);
}
}
and add before it:
Code:
internal uint TentID = 0;
Open Room.cs and find (I have it on line 4602, void method_58):
Code:
RoomUser @class = this.RoomUsers[i];if @class != null && @class.IsBot)
{
GameClient class2 = @class.GetClient();
if (class2 != null && class2.GetHabbo().Id != uint_2 && class2.GetHabbo().list_2.Contains(uint_2))
{
list.Add(class2.GetHabbo().Id);
}
}
and add under it:
Code:
RoomUser sender = this.GetRoomUserByHabbo(uint_2);
if (sender != null && sender.TentID != 0 && @class != null && sender.TentID != @class.TentID)
{
GameClient receiver = @class.GetClient();
if (receiver != null)
{
if (receiver.GetHabbo() != null)
{
list.Add(receiver.GetHabbo().Id);
}
}
}
SQL Query: ALTER TABLE `furniture` CHANGE `interaction_type` `interaction_type` ENUM('default','gate','postit','roomeffect','dimmer','trophy','bed','scoreboard','vendingmachine','alert','onewaygate','loveshuffler','habbowheel','dice','bottle','teleport','rentals','pet','roller','water','ball','bb_red_gate','bb_green_gate','bb_yellow_gate','bb_puck','bb_blue_gate','bb_patch','bb_teleport','blue_score','green_score','red_score','yellow_score','fbgate','tagpole','counter','red_goal','blue_goal','yellow_goal','green_goal','wired','wf_trg_onsay','wf_act_saymsg','wf_trg_enterroom','wf_act_moveuser','wf_act_togglefurni','wf_trg_furnistate','wf_trg_onfurni','pressure_pad','wf_trg_offfurni','wf_trg_gameend','wf_trg_gamestart','wf_trg_timer','wf_act_givepoints','wf_trg_attime','wf_trg_atscore','wf_act_moverotate','rollerskate','stickiepole','wf_xtra_random','wf_cnd_trggrer_on_frn','wf_cnd_furnis_hv_avtrs','wf_act_matchfurni','wf_cnd_has_furni_on','puzzlebox','switch','wf_act_give_phx','wf_cnd_phx','firework','wf_act_kick_user','hopper','jukebox','musicdisc','freeze_tile','freeze_counter','freeze_ice_block','freeze_blue_gate','freeze_red_gate','freeze_green_gate','freeze_yellow_gate','freeze_exit','freeze_blue_score','freeze_red_score','freeze_green_score','freeze_yellow_score','wf_act_reset_timers','wf_cnd_match_snapshot','wf_cnd_time_more_than','wf_cnd_time_less_than','tent','tent_bed') CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT 'default';
- - - Updated - - -
Automatic alert system? What you mean? And I do next that worldfilter thing :)