Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[CLOSED] [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Status
Not open for further replies.
Experienced Elementalist
Joined
Aug 15, 2008
Messages
298
Reaction score
15
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Code:
case "massbadge": // Mass a badge to all users :) Syntax// :massbadge <badgeid>
                        {
                            if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                return false;
                            else
                            {
                                string badgeId = "";
                                try { badgeId = args[1]; }
                                catch { sendData("BKYou did not set a badge code!"); return; }
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    DataColumn dColumn = dbClient.getColumn("SELECT id FROM users");
                                    foreach (DataRow dRow in dColumn.Table.Rows)
                                    {
                                        if (dbClient.findsResult("SELECT badgeid FROM users_badges WHERE userid = '" + Convert.ToString(dRow["id"]) + "' AND badgeid = '" + badgeId + "'") == false)
                                        {
                                            dbClient.runQuery("INSERT INTO users_badges (userid,badgeid,iscurrent,slotid) VALUES('" + Convert.ToString(dRow["id"]) + "','" + badgeId + "','0','0')");
                                            dbClient.runQuery("UPDATE users_badges SET iscurrent = '0' WHERE userid= '" + Convert.ToString(dRow["id"]) + "'");
                                        }
                                    }
                                    Hashtable users = (Hashtable)userManager._Users.Clone();
                                    foreach (virtualUser user in users.Values)
                                    {
                                        user.refreshBadges();
                                    }
                                    sendData("BKYou have successfully sent a badge to all users!");
                                    userManager.sendData("BKYou have received a badge, please check your badge list.");

                                }
                            }
                            break;
                        }


Tested and working 100%. May take several moments, depending on how many users you have in your database.

Great Ö.ö

It works Perfectly...

One Question i Have too...
Do U have :masscredits, too?

That would be great thanks :D
 
Newbie Spellweaver
Joined
Aug 19, 2008
Messages
98
Reaction score
11
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

This was not made by me it was made by: SinFul (old member of RZ)

PHP:
#region :taxi
case "taxi":
{

string taxidata;
string taxidata2;
string taxidata3;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
taxidata = dbClient.getString("SELECT taxi FROM rooms WHERE id = '" + _roomID + "'");
taxidata2 = dbClient.getString("SELECT taxi FROM rooms WHERE id = '" + args[1] + "'");
taxidata3 = dbClient.getString("SELECT name FROM rooms WHERE id = '" + _roomID + "'");
}
if (taxidata == "1" || taxidata2 == "1")
sendData("BK" + "There was an issue with your taxi:\r1. You cannot taxi outside your region.\r2. You cannot be in jail.\r3. The room does not exist!" + Convert.ToChar(2));
else
{
int roomid = int.Parse(args[1]);
Room.sendSaying(roomUser, "*calls a taxi to " + taxidata3 + " [" + args[1] + "]*");
sendData("D^" + "H" + Encoding.encodeVL64(roomid));
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET credits = credits + '-10'");
}
refreshValueables(true, false);
sendData("BK" + "Do not leave the room, the taxi is on its way!" + Convert.ToChar(2));;
if(taxiSummon = null)
{
ThreadStart taxiBoot = new ThreadStart(revealTaxi);
taxiSummon = new Thread(taxiBoot);
taxiSummon.Priority = ThreadPriority.Lowest;
taxiSummon.Start();
}
sendData("BK" + "You have arrived at your destination, the fare was 10 credits!" + Convert.ToChar(2));
}
break;
} 
#endregion


// Add this void towards the end of the virtualUser.cs so it'll correspond correctly.


private void taxiSummon()
{
Thread.Sleep(6000);
}

He said it's not tested he just coded it from his head.

As said above it should freeze the client, but also this does not work correctly.
 
Custom Title Activated
Loyal Member
Joined
Dec 10, 2007
Messages
2,179
Reaction score
263
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

I've coded a majority of :buyproperty/:sellproperty, although I still need to clean a few things up, etc.

Teaser:
This was not made by me it was made by: SinFul (old member of RZ)

PHP:
#region :taxi
case "taxi":
{

string taxidata;
string taxidata2;
string taxidata3;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
taxidata = dbClient.getString("SELECT taxi FROM rooms WHERE id = '" + _roomID + "'");
taxidata2 = dbClient.getString("SELECT taxi FROM rooms WHERE id = '" + args[1] + "'");
taxidata3 = dbClient.getString("SELECT name FROM rooms WHERE id = '" + _roomID + "'");
}
if (taxidata == "1" || taxidata2 == "1")
sendData("BK" + "There was an issue with your taxi:\r1. You cannot taxi outside your region.\r2. You cannot be in jail.\r3. The room does not exist!" + Convert.ToChar(2));
else
{
int roomid = int.Parse(args[1]);
Room.sendSaying(roomUser, "*calls a taxi to " + taxidata3 + " [" + args[1] + "]*");
sendData("D^" + "H" + Encoding.encodeVL64(roomid));
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET credits = credits + '-10'");
}
refreshValueables(true, false);
sendData("BK" + "Do not leave the room, the taxi is on its way!" + Convert.ToChar(2));;
if(taxiSummon = null)
{
ThreadStart taxiBoot = new ThreadStart(revealTaxi);
taxiSummon = new Thread(taxiBoot);
taxiSummon.Priority = ThreadPriority.Lowest;
taxiSummon.Start();
}
sendData("BK" + "You have arrived at your destination, the fare was 10 credits!" + Convert.ToChar(2));
}
break;
} 
#endregion


// Add this void towards the end of the virtualUser.cs so it'll correspond correctly.


private void taxiSummon()
{
Thread.Sleep(6000);
}
He said it's not tested he just coded it from his head.
I hope that he's not taking credit for coding a majority of it, as I released it only a page back (here). Also, I don't get why he added the code that he did. :?:
 
Old Habbo Developer
Loyal Member
Joined
Jan 12, 2009
Messages
484
Reaction score
142
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

I've coded a majority of :buyproperty/:sellproperty, although I still need to clean a few things up, etc.

Teaser:

I hope that he's not taking credit for coding a majority of it, as I released it only a page back (here). Also, I don't get why he added the code that he did. :?:

Nice Rasta! We need to keep in touch on MSN Messenger, and also I might just make it myself only because he made the thread and etc... and he said it won't freeze the hotel nor user. I will NOT test it, I'll develop my own and release it.
 
Newbie Spellweaver
Joined
Jan 1, 2010
Messages
28
Reaction score
1
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

RastaLulz Nice Command Release it!!! please
 
Junior Spellweaver
Joined
Mar 4, 2009
Messages
165
Reaction score
5
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Ok i need help with 2 things. I have been coding the moonwalk command which bobbalite.sytes.net if ur vip you type in :moonwalk and you will go backwards like your moonwalking. I have found out that in rotation if i change moon == 1 to moon == 0 and it worked so its just the command or something that doesnt change it to 1.

The 2nd is recoding the poll command to work with DB. I have done about 99% of it done except 1 error:
PHP:
A local variable named 'dRow' cannot be declared in this scope because it would give a different meaning to 'dRow', which is already used in a 'child' scope to denote something else

If anyone can help ove team viewer tha would be good.
 
Experienced Elementalist
Joined
Aug 15, 2008
Messages
298
Reaction score
15
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Hey, I got now :massbadge working, do somebody knows a :masscredits
command?

That would be amazing.


Greetz,

JabboHotel :D
 
Junior Spellweaver
Joined
Aug 15, 2009
Messages
129
Reaction score
16
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

jabbo remember to decompile
 
Newbie Spellweaver
Joined
Dec 24, 2009
Messages
5
Reaction score
0
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Hi I am using v26 Holograph Emulator and I am requesting a command, I want the command named :coins and it gives the user 100credits but the command only works in roomid = 7. Also i want the command to only work once every 24 hours. Thank in advance!
 
Last edited:

adK

Initiate Mage
Joined
Jan 12, 2010
Messages
2
Reaction score
0
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Hey, I got now :massbadge working, do somebody knows a :masscredits
command?

That would be amazing.


Greetz,

JabboHotel :D

PHP:
case "masscredits":
                        {
                            if (Eucalypt.rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                return false;
                            else
                            {
                                int Credits = 0;
                                try { Credits = int.Parse(args[1]); }
                                catch { sendData("BKYou did not set a credit amount!"); return; }

                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    dbClient.runQuery("UPDATE users SET credits = credits + " + Credits + "");
                                }

                                Hashtable Users = (Hashtable)Eucalypt.userManager._Users.Clone();
                                foreach (virtualUser user in Users.Values)
                                {
                                    user.refreshValueables(true, false);
                                }

                                sendData("BKSuccessfully sent " + Credits + " to all users!");
                                Eucalypt.userManager.sendData("BKYou've received '" + Credits + "' from a staff member!");
                            }
                            break;
                        }

Hi I am using v26 Holograph Emulator and I am requesting a command, I want the command named :coins and it gives the user 100credits but the command only works in roomid = 7. Also i want the command to only work once every 24 hours. Thank in advance!

Who did you want to be able to use this command? Room owners, people with rights, mods, admins?
 
Experienced Elementalist
Joined
Aug 15, 2008
Messages
298
Reaction score
15
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

PHP:
case "masscredits":
                        {
                            if (Eucalypt.rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
                                return false;
                            else
                            {
                                int Credits = 0;
                                try { Credits = int.Parse(args[1]); }
                                catch { sendData("BKYou did not set a credit amount!"); return; }

                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    dbClient.runQuery("UPDATE users SET credits = credits + " + Credits + "");
                                }

                                Hashtable Users = (Hashtable)Eucalypt.userManager._Users.Clone();
                                foreach (virtualUser user in Users.Values)
                                {
                                    user.refreshValueables(true, false);
                                }

                                sendData("BKSuccessfully sent " + Credits + " to all users!");
                                Eucalypt.userManager.sendData("BKYou've received '" + Credits + "' from a staff member!");
                            }
                            break;
                        }



Who did you want to be able to use this command? Room owners, people with rights, mods, admins?

Wow thx again, you are great ;)

Good Work!

Greetz!

---------- Post added at 09:04 PM ---------- Previous post was at 09:03 PM ----------

jabbo remember to decompile

Haha, no i dont decompile -.-

Of Course, so it wouldnt work?
 
Newbie Spellweaver
Joined
Nov 11, 2009
Messages
15
Reaction score
1
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

I got this pet command from O****-Studios, isnt 100% working, it just spins your user round in a circle, but doesnt actually transform you, so anybody that can finish it off, that would be great.

PHP:
case "pet_transform": // cat transform command
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
return false;
else
{
if (Room != null)
{
if (args[1] == "cat")
{
_petType = "1";
}
else if (args[1] == "dog")
{
_petType = "0";
}
else if (args[1] == "croc")
{
_petType = "2";
}
else
{
_petType = "0";
}
Room.sendData(@"@\" + roomUser.detailsString);
}
}
break;
}

Command is :pet_transform (cat/dog/croc)
 
Newbie Spellweaver
Joined
Jan 1, 2010
Messages
28
Reaction score
1
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Niceone Very nice
 
Junior Spellweaver
Joined
Mar 4, 2009
Messages
165
Reaction score
5
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

I got this pet command from O****-Studios, isnt 100% working, it just spins your user round in a circle, but doesnt actually transform you, so anybody that can finish it off, that would be great.

PHP:
case "pet_transform": // cat transform command
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access") == false)
return false;
else
{
if (Room != null)
{
if (args[1] == "cat")
{
_petType = "1";
}
else if (args[1] == "dog")
{
_petType = "0";
}
else if (args[1] == "croc")
{
_petType = "2";
}
else
{
_petType = "0";
}
Room.sendData(@"@\" + roomUser.detailsString);
}
}
break;
}

Command is :pet_transform (cat/dog/croc)

I have the pet command where you type :pet <cat/dog/croc> <colour> and its 100% working.
 

AWA

Master Summoner
Loyal Member
Joined
Feb 24, 2008
Messages
595
Reaction score
389
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

A pet command is easy to make, haha. =)
 
Status
Not open for further replies.
Back
Top