Any Emulator - Coding addons for your Emulator

Status
Not open for further replies.

Rogify

Member
Dec 15, 2013
80
16
Could you code oneway ports and normal bank commands and system like withdraw deposit and atms and all that on Zodiak's BflyRP EMU?
Would really appreciate that
 

Jaden

not so active
Aug 24, 2014
886
263
Could you code oneway ports and normal bank commands and system like withdraw deposit and atms and all that on Zodiak's BflyRP EMU?
Would really appreciate that
Download Link?
 

nathan22

New Member
Dec 10, 2012
28
2
Allaround me Phoenix (Tested on Habtown.co.uk)
Code:
case number:
                    {
                        if (Session.GetHabbo().Rank > 5)
                        {
                            class2 = Phoenix.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                            for (int i = 0; i < class2.RoomUser_0.Length; i++)
                            {
                                RoomUser class7 = class2.RoomUser_0[i];
                                RoomUser class6 = class2.method_53(Session.GetHabbo().Id);
                                class7.MoveTo(class6.int_3, class6.int_4 - 1);
                            }
                            return true;
                        }
                    }
[/QUOTE]






case 9909:
{
if (Session.GetHabbo().Rank > 5)
{
class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
for (int i = 0; i < class2.RoomUsers.Length; i++)
{
RoomUser class7 = class2.RoomUsers;
RoomUser UserXXXX = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
class7.MoveTo(UserXXXX.Y, UserXXXX.X - 1);
}
return true;
}
}

Coded for GoldTree emulator but get a error cannot fall from one case label to another care to release GTE code Please @Ecko1223 or @Moonshine Would be a big help for community :D
 

Jaden

not so active
Aug 24, 2014
886
263
Allaround me Phoenix (Tested on Habtown.co.uk)
Code:
case number:
                    {
                        if (Session.GetHabbo().Rank > 5)
                        {
                            class2 = Phoenix.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                            for (int i = 0; i < class2.RoomUser_0.Length; i++)
                            {
                                RoomUser class7 = class2.RoomUser_0[i];
                                RoomUser class6 = class2.method_53(Session.GetHabbo().Id);
                                class7.MoveTo(class6.int_3, class6.int_4 - 1);
                            }
                            return true;
                        }
                    }

Code:
case 9909:
{
if (Session.GetHabbo().Rank > 5)
{
class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
for (int i = 0; i < class2.RoomUsers.Length; i++)
{
RoomUser class7 = class2.RoomUsers;
RoomUser UserXXXX = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
class7.MoveTo(UserXXXX.Y, UserXXXX.X - 1);
}
return true;
}
return false;
}






case 9909:
{
if (Session.GetHabbo().Rank > 5)
{
class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
for (int i = 0; i < class2.RoomUsers.Length; i++)
{
RoomUser class7 = class2.RoomUsers;
RoomUser UserXXXX = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
class7.MoveTo(UserXXXX.Y, UserXXXX.X - 1);
}
return true;
}
}

Coded for GoldTree emulator but get a error cannot fall from one case label to another care to release GTE code Please @Ecko1223 or @Moonshine Would be a big help for community :D
[/QUOTE]
 

nathan22

New Member
Dec 10, 2012
28
2
ok so the return false didnt work i played around and got it working :p code below :


Code:
case 9909:
                                                    {
                                                        if (!Session.GetHabbo().HasFuse("cmd_allaroundme"))
                                                        {
                                                            Session.GetHabbo().Whisper("You have to be a high enough rank to use this command.");
                                                            return true;
                                                        }
                                                            class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                                            for (int i = 0; i < class2.RoomUsers.Length; i++)
                                                            {
                                                                RoomUser class7 = class2.RoomUsers[i];
                                                                RoomUser UserXXXX = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                                                class7.MoveTo(UserXXXX.Y, UserXXXX.X - 1);
                                                            }
                                                            return true;
                                                        }



 
Last edited:

sara555

New Member
Aug 19, 2013
13
1
Emulator: Gold tre emulator
:rape (user) makes the user say *Is now raping (user)*
:kiss (user) makes the two people kiss
:tillsammans ( user) makes the two people becoma A couple the person say * (user) wants to be in A relationship with you say :tillsammans (user) yes or :tillsammans (user) no
If yes THIS should be showed * (user) and ( other user) is now in A relationship* IF no IT sais
* (User) didnt har youre question and decides to ignore you right now *
Tillsammans: together
 

Jaden

not so active
Aug 24, 2014
886
263
Emulator: Gold tre emulator
:rape (user) makes the user say *Is now raping (user)*
:kiss (user) makes the two people kiss
:tillsammans ( user) makes the two people becoma A couple the person say * (user) wants to be in A relationship with you say :tillsammans (user) yes or :tillsammans (user) no
If yes THIS should be showed * (user) and ( other user) is now in A relationship* IF no IT sais
* (User) didnt har youre question and decides to ignore you right now *
Tillsammans: together

Kiss:
Code:
case RandomInteger:
                            if (Session.GetHabbo().HasFuse("cmd_kiss"))
                            {
                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                RoomUser class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                class6.method_1(Session, "*Kisses " + Params[1], false);
                                Session.GetHabbo().method_24().method_2(9, true);
                            }
                            else { return false; }
                            return false;

Rape:
Code:
                            case RandomInteger:
                            if (Session.GetHabbo().HasFuse("cmd_rape"))
                            {
                                class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                                RoomUser class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
                                class6.method_1(Session, "*Pulls down " + Params[1] + "'s Pants and gently starts to F**** them", false);
                                Session.GetHabbo().method_24().method_2(3, true);
                            }
                            else { return false; }
                            return false;
I'll code whatever else in a second
 

Ecko1223

Member
Feb 28, 2013
344
43
Emulator: Gold tre emulator
:rape (user) makes the user say *Is now raping (user)*
:kiss (user) makes the two people kiss
:tillsammans ( user) makes the two people becoma A couple the person say * (user) wants to be in A relationship with you say :tillsammans (user) yes or :tillsammans (user) no
If yes THIS should be showed * (user) and ( other user) is now in A relationship* IF no IT sais
* (User) didnt har youre question and decides to ignore you right now *
Tillsammans: together

If he was more advanced. He could include a table, and you could show the relationships on your cms if you coded it in
 

sara555

New Member
Aug 19, 2013
13
1
Sorry but where do i put these?

case RandomInteger:
if (Session.GetHabbo().HasFuse("cmd_rape"))
{
class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
RoomUser class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
class6.method_1(Session, "*Pulls down " + Params[1] + "'s Pants and gently starts to F**** them", false);
Session.GetHabbo().method_24().method_2(3, true);
}
else { return false; }
return false;
 

netrohotell

New Member
Apr 23, 2014
5
0
Sorry if its to much and My emulator is Mercury
:noface
:kiss (user) makes two people blow A kiss at eachother
:rape
:afk (time) then this appears * (user) is now AFK for (time)*
Oh i want the :together thing
And again its for mercury
 

Jaden

not so active
Aug 24, 2014
886
263
Sorry if its to much and My emulator is Mercury
:noface
:kiss (user) makes two people blow A kiss at eachother
:rape
:afk (time) then this appears * (user) is now AFK for (time)*
Oh i want the :together thing
And again its for mercury
BEFORE YOU ADD THESE CODES
Add this to the top of your page.
Code:
using System.Threading;
Coding.. (I will do together later)

Code:
                    case "brb":
                    case "afk":
                    case "idle":
                        {
                            Room room = Session.GetHabbo().CurrentRoom;
                            RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                            if (roomuser.IsAsleep == true) {
                                roomuser.IsAsleep = false;
                                roomuser.Chat(Session, "*" + Session.GetHabbo().Username + " is now back*", true, 1);
                                roomuser.UpdateNeeded = true;
                                return true;
                            } else if (roomuser.IsAsleep == false) {
                                roomuser.Chat(Session, "*Sleeping [AFK]*", true, 1);
                                roomuser.IsAsleep = true;
                                roomuser.UpdateNeeded = true;
                                return true;
                            }
                        }
                        return true;
Code:
                    case "noface":
                    case "faceless":
                        {
                            string[] figureParts;
                            string[] headParts;

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

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

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

                                    Session.GetHabbo().Look = Session.GetHabbo().Look.Replace(Part, NewHead);
                                    break;
                                }
                            }

                            using(IQueryAdapter dbClient = MercuryEnvironment.GetDatabaseManager().getQueryreactor()) {
                                dbClient.setQuery("UPDATE users SET look =  @Look WHERE username =  @username");
                                dbClient.addParameter("look", Session.GetHabbo().Look);
                                dbClient.addParameter("username", Session.GetHabbo().Username);
                                dbClient.runQuery();
                            }

                            Room Room = Session.GetHabbo().CurrentRoom;

                            if (Room == null) break;

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

                            if (User == null) break;

                            #region Messages#region Update FigurePacket
                            Room room = Session.GetHabbo().CurrentRoom;
                            Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateUserDataMessageComposer);
                            Session.GetMessageHandler().GetResponse().AppendInt32(-1);
                            Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Look);
                            Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Gender.ToLower());
                            Session.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Motto);
                            Session.GetMessageHandler().GetResponse().AppendInt32(Session.GetHabbo().AchievementPoints);
                            Session.GetMessageHandler().SendResponse();
                            ServerMessage message3 = new ServerMessage(Outgoing.UpdateUserDataMessageComposer);
                            message3.AppendInt32(User.VirtualId);
                            message3.AppendString(Session.GetHabbo().Look);
                            message3.AppendString(Session.GetHabbo().Gender.ToLower());
                            message3.AppendString(Session.GetHabbo().Motto);
                            message3.AppendInt32(Session.GetHabbo().AchievementPoints);
                            room.SendMessage(message3);#endregion#endregion
                            break;
                        }

                    case "rape":
                        {
                            Room room = Session.GetHabbo().CurrentRoom;
                            if (room == null) return true;

                            RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                            RoomUser user = room.GetRoomUserManager().GetRoomUserByHabbo(Params[1]);
                            if (roomuser == null) return true;
                            if (Gamemap.TileDistance(roomuser.X, roomuser.Y, user.X, user.Y) < 3) {
                                roomuser.Chat(Session, "*Pulls down " + Params[1] + "'s pants and gently starts to F*** Them*", true, 1);
                                roomuser.ApplyEffect(4);
                                user.ApplyEffect(4);
                                Thread.Sleep(1500);
                                roomuser.ApplyEffect(0);
                                user.ApplyEffect(0);
                            } else {
                                Session.SendWhisper("Oops... Looks like the user is too far away, try getting closer.")
                                return true;
                            }
                        }
                        return true;

                    case "kiss":
                        {
                            Room room = Session.GetHabbo().CurrentRoom;
                            if (room == null) return true;

                            RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
                            RoomUser user = room.GetRoomUserManager().GetRoomUserByHabbo(Params[1]);
                            if (roomuser == null) return true;
                            if (Gamemap.TileDistance(roomuser.X, roomuser.Y, user.X, user.Y) < 3) {
                                roomuser.Chat(Session, "*Locks my lips around " + Params[1] + "*", true, 1);
                                roomuser.ApplyEffect(9);
                                user.ApplyEffect(9);
                                Thread.Sleep(1500);
                                roomuser.ApplyEffect(0);
                                user.ApplyEffect(0);
                            } else {
                                Session.SendWhisper("Oops... Looks like the user is too far away, try getting closer.")
                                return true;
                            }
                        }
                        return true;
 
Please read through this carefully while adding your command...
Need any further help? PM Me. Feel free.
First person to hit me up with Mercury emulator i'll finish this system for you + Display it on your CMS
 

nathan22

New Member
Dec 10, 2012
28
2
Sorry but where do i put these?

case RandomInteger:
if (Session.GetHabbo().HasFuse("cmd_rape"))
{
class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
RoomUser class6 = class2.GetRoomUserByHabbo(Session.GetHabbo().Id);
class6.method_1(Session, "*Pulls down " + Params[1] + "'s Pants and gently starts to F**** them", false);
Session.GetHabbo().method_24().method_2(3, true);
}
else { return false; }
return false;
you add them in chatcommandhandler.cs with microsoft visual studio
 
fastwalk GTE thanks in advance :D
 

Ecko1223

Member
Feb 28, 2013
344
43
you add them in chatcommandhandler.cs with microsoft visual studio
 
fastwalk GTE thanks in advance :D

It'll be a hard job to make fastwalk work. The one i have the diagonal is a little weird, but it works good. I hope he can make it for you
 

Li3s

New Member
Nov 30, 2014
4
0
Emu: Mercury
Command: rep
(Es. :rep [Username])
With this command you can give reputation points, i have already added column 'rep' in users table. If user get 50 reputation points then he gets rank 2 and badge 'REP1', if user get 100 reputation points gets badge 'REP2'; 150: 'REP3' 200: 'REP4'
 
Emulator: GTE
Command: :buy
To buy many things from catalogue
 
Could you make them? @Moonshine
 

Jaden

not so active
Aug 24, 2014
886
263
Emu: Mercury
Command: rep
(Es. :rep [Username])
With this command you can give reputation points, i have already added column 'rep' in users table. If user get 50 reputation points then he gets rank 2 and badge 'REP1', if user get 100 reputation points gets badge 'REP2'; 150: 'REP3' 200: 'REP4'
 
Emulator: GTE
Command: :buy
To buy many things from catalogue
 
Could you make them? @Moonshine
The Respect points require MySQL are you willing to alter your database?
 

Ecko1223

Member
Feb 28, 2013
344
43
Emu: Mercury
Command: rep
(Es. :rep [Username])
With this command you can give reputation points, i have already added column 'rep' in users table. If user get 50 reputation points then he gets rank 2 and badge 'REP1', if user get 100 reputation points gets badge 'REP2'; 150: 'REP3' 200: 'REP4'
 
Emulator: GTE
Command: :buy
To buy many things from catalogue
 
Could you make them? @Moonshine

GTE already has :buy lol
 
Status
Not open for further replies.

Users who are viewing this thread

Top