GOLD-TREE-EMULATOR

EliteKey

Member
Aug 22, 2011
41
1
How to fix this?
x3yc12.png

It just sits on that screen for a while then disconnects, it does not connect to the emu.
 

Ecko1223

Member
Feb 28, 2013
344
43
Gotta love GTE.

I have working buy and sell room, Faceless and brb commands. Lots more. Easy with the real name classes. I advise anyone to have a go and edit ;)
 

Sarbaz

Sailing the seas of moldy cheese! :)
Nov 8, 2013
384
217
How to fix this?
x3yc12.png

It just sits on that screen for a while then disconnects, it does not connect to the emu.

Accept Gold Tree Emulator in your Firewall.

Gotta love GTE.

I have working buy and sell room, Faceless and brb commands. Lots more. Easy with the real name classes. I advise anyone to have a go and edit ;)

Nice! Are you willing to share the code for the commands? I'd love it!
 

Ecko1223

Member
Feb 28, 2013
344
43
Accept Gold Tree Emulator in your Firewall.



Nice! Are you willing to share the code for the commands? I'd love it!

Well, i released a few bits and bobs, but i have really unique stuff so im just trying to improve my hotel. Once my hotel goes bust, i'll glady release everything. I dont mind trading commands with anyone who wants to either
 

Sarbaz

Sailing the seas of moldy cheese! :)
Nov 8, 2013
384
217
Well, i released a few bits and bobs, but i have really unique stuff so im just trying to improve my hotel. Once my hotel goes bust, i'll glady release everything. I dont mind trading commands with anyone who wants to either

I'd only like the :facesless command and :sellroom, :buyroom
 

Ecko1223

Member
Feb 28, 2013
344
43
Okay, also I'd like the :faceless
Here,
Facelsss -
case 132:
{
string[] figureParts;
string[] headParts;


figureParts = Session.GetHabbo().Figure.Split('.');
foreach (string Part in figureParts)
{
if (Part.StartsWith("hd"))
{
headParts = Part.Split('-');


if (!headParts[1].Equals("99999"))
headParts[1] = "99999";
else
return true;


string NewHead = "hd-" + headParts[1] + "-" + headParts[2];


Session.GetHabbo().Figure = Session.GetHabbo().Figure.Replace(Part, NewHead);
return true;
Session.SendNotification("Please reload your room to see the effect.");
}
}


using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
{
dbClient.ExecuteQuery("UPDATE users SET look = @Look WHERE username = @Username");
dbClient.AddParamWithValue("look", Session.GetHabbo().Figure);
dbClient.AddParamWithValue("username", Session.GetHabbo().Username);
}


Room Room = Session.GetHabbo().CurrentRoom;


if (Room == null)
return true;


RoomUser User = Room.GetRoomUserByHabbo(Session.GetHabbo().Id);


if (User == null)
return true;
Session.SendNotification("Please reload your room to see the effect.");
}
return false;
 

Sarbaz

Sailing the seas of moldy cheese! :)
Nov 8, 2013
384
217
Here,
Facelsss -
case 132:
{
string[] figureParts;
string[] headParts;


figureParts = Session.GetHabbo().Figure.Split('.');
foreach (string Part in figureParts)
{
if (Part.StartsWith("hd"))
{
headParts = Part.Split('-');


if (!headParts[1].Equals("99999"))
headParts[1] = "99999";
else
return true;


string NewHead = "hd-" + headParts[1] + "-" + headParts[2];


Session.GetHabbo().Figure = Session.GetHabbo().Figure.Replace(Part, NewHead);
return true;
Session.SendNotification("Please reload your room to see the effect.");
}
}


using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
{
dbClient.ExecuteQuery("UPDATE users SET look = @Look WHERE username = @Username");
dbClient.AddParamWithValue("look", Session.GetHabbo().Figure);
dbClient.AddParamWithValue("username", Session.GetHabbo().Username);
}


Room Room = Session.GetHabbo().CurrentRoom;


if (Room == null)
return true;


RoomUser User = Room.GetRoomUserByHabbo(Session.GetHabbo().Id);


if (User == null)
return true;
Session.SendNotification("Please reload your room to see the effect.");
}
return false;

Where do I go to add that in the emulator files?
 

Ecko1223

Member
Feb 28, 2013
344
43
Where do I go to add that in the emulator files?

You should really do research first before editing a emulator. Add it to the chatcommandhandler.cs

Then go to RoleManager.cs, and find this area, and add this.
this.dictionary_4.Add("faceless", 114);
 

Sarbaz

Sailing the seas of moldy cheese! :)
Nov 8, 2013
384
217
Do I need a .swf?
 
I added the source in the files and nothing happened..
 

Users who are viewing this thread

Top