• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

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

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jan 5, 2010
Messages
26
Reaction score
2
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

I need a working pickall command
 
Junior Spellweaver
Joined
Aug 15, 2009
Messages
129
Reaction score
16
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

guyz Pick all has already been given in the tread stop spamming and being lazy --..--
 
Joined
Nov 29, 2006
Messages
559
Reaction score
530
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

using (DatabaseClient dbClient = (Eucalypt.dbManager.getClient()))
dbClient.runQuery("INSERT INTO users_badges (userid, badgeid, iscurrent) VALUES ('" + Target.userID + "', '" + badge + "', '0')");

So ive put in, now it cant find .getClient ?

Try this;
Code:
                    case "givebadge":
                        {
                            string badge = Text.Split(' ')[2];
                            if (_Rank > 6)
                            {
                                virtualUser Target = userManager.getUser(Text.Split(' ')[1]);
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    dbClient.runQuery("INSERT INTO users_badges (userid, badgeid, iscurrent) VALUES ('" + Target.userID + "', '" + badge + "', '0')");
                                }
                                Target.refreshBadges();
                            }
                            break;
                        }
 
Experienced Elementalist
Joined
Aug 15, 2008
Messages
298
Reaction score
15
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Try this;
Code:
                    case "givebadge":
                        {
                            string badge = Text.Split(' ')[2];
                            if (_Rank > 6)
                            {
                                virtualUser Target = userManager.getUser(Text.Split(' ')[1]);
                                using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                {
                                    dbClient.runQuery("INSERT INTO users_badges (userid, badgeid, iscurrent) VALUES ('" + Target.userID + "', '" + badge + "', '0')");
                                }
                                Target.refreshBadges();
                            }
                            break;
                        }

Great! Now it works!

Sojobo are you so good, that you can create a :massfurni?

So it runs a query, to send all the id (Furni)

That would be great!
 
Banned
Banned
Joined
Aug 8, 2008
Messages
214
Reaction score
64
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

I would like to have a Shotgun Command. Like :stun, such as HabboRP. So you will be able to stun users.
 
Newbie Spellweaver
Joined
Jan 19, 2010
Messages
14
Reaction score
0
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Very Nice But I Dont Need Commands Lol :)
 
Junior Spellweaver
Joined
Oct 21, 2008
Messages
134
Reaction score
5
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Very Nice But I Dont Need Commands Lol :)

Then why post if you dont need commands.
I need a like event command where it Ha but it shows game being played prize & room its beeing hosted it & like you can pre right the events in like housekeeping or something. in like a Ha Box but itsays Events
 
Last edited:
Newbie Spellweaver
Joined
Dec 6, 2008
Messages
13
Reaction score
5
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

How can we add a range sort of function to commands like grab? Cause its a bit stupid when a user can grab another user in a different room. Can we make it so they have to be next to them? Or at least in the same room?
 
Newbie Spellweaver
Joined
Jan 5, 2010
Messages
26
Reaction score
2
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

No that pickall command there has been posted dose not work?
 
Experienced Elementalist
Joined
Aug 15, 2008
Messages
298
Reaction score
15
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

To everyone in the database or everyone online at the time the command is used?

Great, when u can do a command for everyone & Online:D

Like :globalfurni for online

and :massfurni for everyone!

Thanks btw ;)
 
Newbie Spellweaver
Joined
Jan 5, 2010
Messages
26
Reaction score
2
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Try this:
Code:
                    case "naked":
                        {
                            if (_Rank < 3)
                                break;
                            _Figure = "hd-207-3.sh-0-.lg-0-.ch-0-.hr-115-31";
                            refreshAppearance(false, true, true);
                            break;
                        }

Code:
                    case "unnaked":
                        {
                            if (_Rank < 3)
                                break;
                            refreshAppearance(true, true, true);
                            break;
                        }
 
Last edited:
Initiate Mage
Joined
Aug 27, 2009
Messages
4
Reaction score
1
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

1) R26
2) :nameflag
3) R:punch requests a user to change there name
 
Newbie Spellweaver
Joined
Sep 13, 2006
Messages
22
Reaction score
1
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Can someone make a :Startwork command, so it puts the user in a sertion uniform.

---------- Post added at 09:43 PM ---------- Previous post was at 09:37 PM ----------

I'm 50% Done, can someone tell me what eles i need to do.

PHP:
#region 
case "startwork":
{
if (_Rank > 3)
this._Figure = "hd-207-3.sh-290-110.lg-285-110.wa-2005-.ch-809-110.ca-1811-.ha-1013-110.ea-1404-110.fa-1201-.hr-115-31";
                    this._Mission = "Police Officer";
                    this.refreshAppearance(false, true, true);
                }
#endregion


Here you got the command

PHP:
                    #region :startwork
                    case "startwork":
                    {
                        using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                        if (_Rank > 3)
                            return false;
                        else
                        {
                            virtualUser Target = userManager.getUser(args[1]);
                            {
                                dbClient.runQuery("UPDATE users SET figure = 'hd-207-3.sh-290-110.lg-285-110.wa-2005-.ch-809-110.ca-1811-.ha-1013-110.ea-1404-110.fa-1201-.hr-115-31' WHERE name = '" + args[1] + "'");
                                dbClient.runQuery("UPDATE users SET mission = 'Police Officer' WHERE name = '" + args[1] + "'");
                            }
                            Room.Refresh(roomUser);
                            refreshAppearance(true, true, true);
                            Target.sendData("BK" + "Move Your butt" + Convert.ToChar(2));
                        }
                        break;
                    }
                    #endregion

Here i share other commands:

PHP:
                    #region :naked & :nakked NAME
                    case "naked":
                        using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                        {
                            if (_Rank > 3)
                                return false;
                            else
                            {
                                dbClient.runQuery("UPDATE users SET figure = 'hd-180-4.hr-831-61' WHERE id = '" + userID + "'");
                                refreshAppearance(true, true, true);
                                sendData("BK" + "¡Ahora estas desnudo!" + Convert.ToChar(2));
                            }
                        }
                        break;

                    case "nakked": // :nakked NAME  nake some user >:)
                        using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                        {
                            if (_Rank > 5)
                                return false;
                            else
                            {
                                virtualUser Target = userManager.getUser(args[1]);
                                {
                                    dbClient.runQuery("UPDATE users SET figure = 'hd-180-4.hr-831-61' WHERE name = '" + args[1] + "'");
                                }
                                Room.Refresh(roomUser);
                                Target.refreshAppearance(true, true, true);
                                Target.sendData("BK" + "Te ha desnudado :S un miembro del staff" + Convert.ToChar(2));
                            }
                        }
                        break;
                    #endregion
 
Last edited:
Experienced Elementalist
Joined
Aug 15, 2008
Messages
298
Reaction score
15
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

can somebody make a massfurni command for all users or online users?

THANKS;D
 
Newbie Spellweaver
Joined
Apr 17, 2007
Messages
89
Reaction score
2
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

I'm looking for a code snippet, not an actual command..
What I'd want is trades being logged, like you make a new sql table and a code that would log people's trades. Maybe something you could work on Awa :'DD 'cause I'm having a hard time figuring out all this as I'm still a pretty big noob at it. Probably shouldn't post it here, but cbb to post it elsewhere
 
Newbie Spellweaver
Joined
Nov 11, 2009
Messages
15
Reaction score
1
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:

Any more progress with the buy/sell rooms rasta?
havent heard of any updates?


can somebody make a massfurni command for all users or online users?

THANKS;D

I think there was a global furni, somewhere near the begining
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Dec 10, 2007
Messages
2,194
Reaction score
263
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Any more progress with the buy/sell rooms rasta?
havent heard of any updates?
Sorry, I totally forgot about it.

Here's the code for Dissi's source:
PHP:
                    #region :sellproperty / :buyproperty
                    case "sellproperty":
                        {
                            string owner;
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {  
                                owner = dbClient.getString("SELECT owner FROM rooms WHERE owner = '" + _Username + "'");
                            }
                            if (owner != _Username)
                                sendData("BK" + "Sorry, but you cannot sell someone elses property.");
                            else
                            {
                                int salepice = int.Parse(args[1]);
                                if (salepice < 0)
                                    sendData("BK" + "Sorry, but you cannot sell your property for less then 0 credits.");
                                else
                                {
                                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                    {
                                        dbClient.runQuery("UPDATE rooms SET price = '" + salepice + "', sale = '1' WHERE id = '" + _roomID + "'");
                                    }
                                    sendData("BK" + "You have successfully put your property on the market for " + salepice + " credits!");
                                }
                            }
                            break;
                        }
                    case "buyproperty":
                        {
                            string forsale;
                            string roomprice;
                            string owner;
                            string credits;
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                forsale = dbClient.getString("SELECT sale FROM rooms WHERE id = '" + _roomID + "'");
                                roomprice = dbClient.getString("SELECT price FROM rooms WHERE id = '" + _roomID + "'");
                                owner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
                                credits = dbClient.getString("SELECT credits FROM users WHERE name = '" + _Username + "'");
                            }
                            if(forsale != "1")
                                sendData("BK" + "Sorry, but this room is not for sale.");
                            else
                            {
                                int roomprice_mod = int.Parse(roomprice);
                                int credits_mod = int.Parse(credits);
                                if (roomprice_mod > credits_mod && owner != _Username)
                                    sendData("BK" + "Sorry, but you do not have enough credits to purchase this property.");
                                else
                                {
                                    virtualUser User = userManager.getUser(owner); 
                                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                    {
                                        dbClient.runQuery("UPDATE rooms SET owner = '" + _Username + "', sale = '0' WHERE id = '" + _roomID + "'");
                                        dbClient.runQuery("UPDATE users SET credits = credits + '" + roomprice + "' WHERE name = '" + owner + "'");
                                        dbClient.runQuery("UPDATE users SET credits = credits - '" + roomprice + "' WHERE name = '" + _Username + "'");
                                    }
                                    refreshValueables(true, false);
                                    User.refreshValueables(true, false);
                                    sendData("D^" + "H" + Encoding.encodeVL64(_roomID));
                                    sendData("BK" + "You have successfully bought this property for " + roomprice + " credits.");
                                    User.sendData("BK" + _Username + " has bought your room for " + roomprice + " credits!");
                                }
                            }
                            break;
                        }
                    #endregion
Here's the site code (just edit a page on your CMS, and add this code):
PHP:
<table cellspacing="3" align="center" width="100%">
<td align="center" width="25%"><strong>Size</strong></td>
<td align="center" width="25%"><strong>Owner</strong></td>
<td align="center" width="25%"><strong>Price</strong></td>
<td align="center" width="25%"><strong>Room ID</strong></td>
<?php
$getinfo = mysql_query("SELECT * FROM rooms WHERE sale = '1'");
while($r = mysql_fetch_array($getinfo)) {
?>
<tr>
<td align="center"><img src="web-gallery/properties/model_<?php echo $r['model']; ?>.png"></td>
<td align="center"><?php echo $r['owner']; ?></td>
<td align="center"><?php echo $r['price']; ?></td>
<td align="center"><?php echo $r['id']; ?></td>
<?php
}
?>
</table>
Also, you'll have to add two columns on to the rooms table: price, and sale.

EDIT:
Also, put in web-gallery/properties/ on your site.
 
Last edited:
Newbie Spellweaver
Joined
Aug 19, 2008
Messages
98
Reaction score
11
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]

Sorry, I totally forgot about it.

Here's the code for Dissi's source:
PHP:
                    #region :sellproperty / :buyproperty
                    case "sellproperty":
                        {
                            string owner;
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {  
                                owner = dbClient.getString("SELECT owner FROM rooms WHERE owner = '" + _Username + "'");
                            }
                            if (owner != _Username)
                                sendData("BK" + "Sorry, but you cannot sell someone elses property.");
                            else
                            {
                                int salepice = int.Parse(args[1]);
                                if (salepice < 0)
                                    sendData("BK" + "Sorry, but you cannot sell your property for less then 0 credits.");
                                else
                                {
                                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                    {
                                        dbClient.runQuery("UPDATE rooms SET price = '" + salepice + "', sale = '1' WHERE id = '" + _roomID + "'");
                                    }
                                    sendData("BK" + "You have successfully put your property on the market for " + salepice + " credits!");
                                }
                            }
                            break;
                        }
                    case "buyproperty":
                        {
                            string forsale;
                            string roomprice;
                            string owner;
                            string credits;
                            using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                            {
                                forsale = dbClient.getString("SELECT sale FROM rooms WHERE id = '" + _roomID + "'");
                                roomprice = dbClient.getString("SELECT price FROM rooms WHERE id = '" + _roomID + "'");
                                owner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'");
                                credits = dbClient.getString("SELECT credits FROM users WHERE name = '" + _Username + "'");
                            }
                            if(forsale != "1")
                                sendData("BK" + "Sorry, but this room is not for sale.");
                            else
                            {
                                int roomprice_mod = int.Parse(roomprice);
                                int credits_mod = int.Parse(credits);
                                if (roomprice_mod > credits_mod && owner != _Username)
                                    sendData("BK" + "Sorry, but you do not have enough credits to purchase this property.");
                                else
                                {
                                    virtualUser User = userManager.getUser(owner); 
                                    using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
                                    {
                                        dbClient.runQuery("UPDATE rooms SET owner = '" + _Username + "', sale = '0' WHERE id = '" + _roomID + "'");
                                        dbClient.runQuery("UPDATE users SET credits = credits + '" + roomprice + "' WHERE name = '" + owner + "'");
                                        dbClient.runQuery("UPDATE users SET credits = credits - '" + roomprice + "' WHERE name = '" + _Username + "'");
                                    }
                                    refreshValueables(true, false);
                                    User.refreshValueables(true, false);
                                    sendData("D^" + "H" + Encoding.encodeVL64(_roomID));
                                    sendData("BK" + "You have successfully bought this property for " + roomprice + " credits.");
                                    User.sendData("BK" + _Username + " has bought your room for " + roomprice + " credits!");
                                }
                            }
                            break;
                        }
                    #endregion
Here's the site code (just edit a page on your CMS, and add this code):
PHP:
<table cellspacing="3" align="center" width="100%">
<td align="center" width="25%"><strong>Size</strong></td>
<td align="center" width="25%"><strong>Owner</strong></td>
<td align="center" width="25%"><strong>Price</strong></td>
<td align="center" width="25%"><strong>Room ID</strong></td>
<?php
$getinfo = mysql_query("SELECT * FROM rooms WHERE sale = '1'");
while($r = mysql_fetch_array($getinfo)) {
?>
<tr>
<td align="center"><img src="web-gallery/properties/model_<?php echo $r['model']; ?>.png"></td>
<td align="center"><?php echo $r['owner']; ?></td>
<td align="center"><?php echo $r['price']; ?></td>
<td align="center"><?php echo $r['id']; ?></td>
<?php
}
?>
</table>
Also, you'll have to add two columns on to the rooms table: price, and owner.

EDIT:
Also, put in web-gallery/properties/ on your site.

Wow, Well done rasta! :thumbup:

Ill post the code for a delay on the taxi in a minute :)
 
Status
Not open for further replies.
Back
Top