SilverwaveEnvironment.GetGame().GetRoomManager().LoadModels(dbClient);
SilverwaveEnvironment.GetGame().GetRoomManager().UnloadRoom(room);
return true;
}
}
private string fixDoorZ(string doorZ)
{
switch (doorZ)
{
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "0":
return doorZ;
default:
return "0";
}
}
Then go to Rooms.cs and add:
Code:
internal void FloorplanSave()
{
string body = Request.PopFixedString();
body = body.ToLower();
Room room = SilverwaveEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (room != null)
{
if ((room.OwnerId == Convert.ToInt32(Session.GetHabbo().Id)) || Session.GetHabbo().HasFuse("fuse_admin"))
{
if (!body.Contains("z"))
{
Session.SendNotif("Room model must have a door. Mark the spot of the door with a z");
}
else if (body.Count(f => f == 'z') == 1)
{
if (!room.SaveHeightmap(room, body))
{
Session.SendNotif("Incorrect Heightmap!");
}
else
{
SilverwaveEnvironment.GetGame().GetRoomManager().UnloadRoom(Session.GetHabbo().CurrentRoom);
SilverwaveEnvironment.GetGame().GetRoomManager().UnloadRoom(room);
}
}
else
{
Session.SendNotif("A room can only has one door!");
}
}
else
{
Session.SendNotif("You do not own this room!");
}
}
else
{
Session.SendNotif("You're not in a room!");
}
}
Then, Compile your emulator and enojy!
Sorry if this thread is on wrong topic :C i'm newbie :junglejane:
21-05-14
Jmandupree
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Thanks for this mate!!
21-05-14
Fishing Rod
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
It doesnt work =(
21-05-14
cabeludo007
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Quote:
Originally Posted by MedsHotelRocks
It doesnt work =(
oopss i forgot something XD
do it:
Go to: UserPeksComposer.cs and Search:
Code:
base.WriteString("HEIGHTMAP_EDITOR_BETA");
base.WriteString("requirement.unfulfilled.feature_disabled");
base.WriteBoolean(false);
and Replace that to:
Code:
base.WriteString("HEIGHTMAP_EDITOR_BETA");
base.WriteString("requirement.unfulfilled.feature_disabled");
base.WriteBoolean(true);
and tell me if it worked
21-05-14
Jmandupree
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Yea, Can u just post the Pages for it lol?
21-05-14
The General
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Good job ripping my code from my emulator release and then claiming it is yours. >.>
21-05-14
Rush Retros
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Waw why did u need to make a new thread for this ... u didnt even give credits to Tdid for ripping code from hes emulator is it hard to post on the current fix thread? and is it hard to give credits ? it seems like ur just another attention horny 1
21-05-14
cabeludo007
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Quote:
Originally Posted by tdid
Good job ripping my code from my emulator release and then claiming it is yours. >.>
Sorry, i didn't know where are from that code, i'll put ur credits :p
- - - Updated - - -
Quote:
Originally Posted by Rush Retros
Waw why did u need to make a new thread for this ... u didnt even give credits to Tdid for ripping code from hes emulator is it hard to post on the current fix thread? and is it hard to give credits ? it seems like ur just another attention horny 1
It also doesnt anything when i click on tile Up or tile Down
Try to edit with command :floor ;)
It's not 100%(i'm trying to fix some stuffs)
22-05-14
Twan
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
I already tried, doesnt work.
22-05-14
cabeludo007
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
check if you forget something...
22-05-14
maartenvn
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
This looks nice.
Thank you!
22-05-14
The General
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Quote:
Originally Posted by cabeludo007
Try to edit with command :floor ;)
It's not 100%(i'm trying to fix some stuffs)
:floor is loaded on the client itself actually, no need to create a command for it in the emulator.
22-05-14
cabeludo007
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Quote:
Originally Posted by The General
:floor is loaded on the client itself actually, no need to create a command for it in the emulator.
i know that. '-'
08-06-14
tehDrunk
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Theres a bug, If someone edit in "TEXT" something like:
xxxxxxxxxxxxxxxxx
x000000000000000x
xz00nejnefjnfj00000x
x000000000000000x
x000000000000000x
xxxxxxxxxxxxxxxxx
He glitch all the room_models and you need to delete his model. It also turn unable to other users edit the room...
Theres any fix for?
09-06-14
Giovani Gheller
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
When I click the save button, say Este comando solo esta disponible para Custom TODOPODEROSO!. What?
09-06-14
tehDrunk
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Quote:
Originally Posted by Giovani Gheller
When I click the save button, say Este comando solo esta disponible para Custom TODOPODEROSO!. What?
This is your emulator config. I suggest to dont able the command for users, there's a bug in letters and if one user type any letter except "x, j, z" it will makes room_model bug
09-06-14
Giovani Gheller
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Quote:
Originally Posted by tehDrunk
This is your emulator config. I suggest to dont able the command for users, there's a bug in letters and if one user type any letter except "x, j, z" it will makes room_model bug
Ok, thanks :)
10-06-14
Matata
Re: [PlusEmuR2]Floor Command - Fix it Yourself!
Quote:
Originally Posted by tehDrunk
Theres a bug, If someone edit in "TEXT" something like:
xxxxxxxxxxxxxxxxx
x000000000000000x
xz00nejnefjnfj00000x
x000000000000000x
x000000000000000x
xxxxxxxxxxxxxxxxx
He glitch all the room_models and you need to delete his model. It also turn unable to other users edit the room...
Theres any fix for?
If the Regex libary isn't imported then make sure to do it.
SilverwaveEnvironment.GetGame().GetRoomManager().LoadModels(dbClient);
SilverwaveEnvironment.GetGame().GetRoomManager().UnloadRoom(room);
return true;
}
}
else
{
return false;
}
}
private string fixDoorZ(string doorZ)
{
switch (doorZ)
{
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "0":
return doorZ;
default:
return "0";
}
}
Edit:
Just realized that this probably doesn't work due to linebreaks. If anyone want to update the regex to support it, then do it.
I've never used Regex before, so I don't know how to.
SilverwaveEnvironment.GetGame().GetRoomManager().LoadModels(dbClient);
SilverwaveEnvironment.GetGame().GetRoomManager().UnloadRoom(room);
return true;
}
}
else
{
return false;
}
}
private string fixDoorZ(string doorZ)
{
switch (doorZ)
{
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
case "0":
return doorZ;
default:
return "0";
}
}
Edit:
Just realized that this probably doesn't work due to linebreaks. If anyone want to update the regex to support it, then do it.
I've never used Regex before, so I don't know how to.