Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
How about a Time System, like so arrest users have a Disable Nav and stuff.
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
iBobbaX.
How about a Time System, like so arrest users have a Disable Nav and stuff.
If u mean there arrested for a certain amount of time so like they get 10 mins in a room and they cant leave till the 10 mins is up.
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
321olos
If u mean there arrested for a certain amount of time so like they get 10 mins in a room and they cant leave till the 10 mins is up.
Yeah, thats what i mean :P
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
iBobbaX.
Yeah, thats what i mean :P
I'll try and see if i can make it so they can't leave the room, but its very very hard to do.
Offtopic: HabboRP Copy pretty much?
lulz
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Here's my modified taxi command from the original one posted here. It includes a personal message (BK), the user states where they have taxied to (@X), and the user is charged 10 credits. The code may not be the best as I just started learning Holo and C# two days ago, but it does work. Only thingd that could really be added is something to check if the room exists, and a 10-20 second delay before the user is sent but I don't know how to do that, lol. Anyways, enjoy.
Also, I added a coloum onto the rooms table called taxi defineing if you have permission to taxi to that room or not. If you don't want to add that, then simply comment out taxidata and taxidata1.
PHP Code:
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 must be outside to use a taxi.\r2. You can only taxi to outide areas.\r3. The room does not exist!");
else
{
int roomid = int.Parse(args[1]);
Room.sendSaying(roomUser, "*calls a taxi for " + 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" + "You have been charged 10 credits for your taxi fare.");
}
break;
}
EDIT:
Just found out that you could use room.SendSaying, instead of doing it manually, lol.
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
where and how i add the commands?!
:ehh:
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
RastaLulz
Here's my modified taxi command from the original one posted here. It includes a personal message (BK), the user states where they have taxied to (@X), and the user is charged 10 credits. The code may not be the best as I just started learning Holo and C# two days ago, but it does work. Only thingd that could really be added is something to check if the room exists, and a 10-20 second delay before the user is sent but I don't know how to do that, lol. Anyways, enjoy.
Also, I added a coloum onto the rooms table called taxi defineing if you have permission to taxi to that room or not. If you don't want to add that, then simply comment out taxidata and taxidata1.
PHP Code:
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 must be outside to use a taxi.\r2. You can only taxi to outide areas.\r3. The room does not exist!");
else
{
int roomid = int.Parse(args[1]);
Room.sendSaying(roomUser, "*calls a taxi for " + 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" + "You have been charged 10 credits for your taxi fare.");
}
break;
}
EDIT:
Just found out that you could use room.SendSaying, instead of doing it manually, lol.
Hey rasta, Great sutff, could you upload your addon to the db? Thanks!
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
RastaLulz
Here's my modified taxi command from the original one posted here. It includes a personal message (BK), the user states where they have taxied to (@X), and the user is charged 10 credits. The code may not be the best as I just started learning Holo and C# two days ago, but it does work. Only thingd that could really be added is something to check if the room exists, and a 10-20 second delay before the user is sent but I don't know how to do that, lol. Anyways, enjoy.
Also, I added a coloum onto the rooms table called taxi defineing if you have permission to taxi to that room or not. If you don't want to add that, then simply comment out taxidata and taxidata1.
PHP Code:
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 must be outside to use a taxi.\r2. You can only taxi to outide areas.\r3. The room does not exist!");
else
{
int roomid = int.Parse(args[1]);
Room.sendSaying(roomUser, "*calls a taxi for " + 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" + "You have been charged 10 credits for your taxi fare.");
}
break;
}
EDIT:
Just found out that you could use room.SendSaying, instead of doing it manually, lol.
Omg Great work.
Well done rasta, and thanks!
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
awa500
Here's a fix for the commands:
PHP Code:
case "globalcredits":
{
if (rankManager.containsRight(_Rank, "fuse_moderator_access", userID) == false)
{
return false;
}
else
{
Int64 credittoupdate = int.Parse(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET credits = credits + '" + credittoupdate + "'");
}
foreach (virtualUser User in userManager._Users.Values)
User.refreshValueables(true, false);
}
break;
}
I've add this 1 but i get this error:
http://i49.tinypic.com/289y6ux.jpg
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Works fine for me?
---------- Post added at 07:34 AM ---------- Previous post was at 07:29 AM ----------
I need:
-v35
:guide (Sends a guide invite to EVERYONE)
:invisible (Turns you invisible {ADMIN ONLY})
:habbovision [user] (Sends the specified user, into habbovision mode)
:buyproperty (Buys a room for the price set by owner
:sellproperty (Sets a price for the room, and sets the room up for sale)
:}
Thnx.
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
I have quite a few commands needed
All for Dissi v26
:givecredits <USER> <AMMOUNT> [GiveCredits to the user that you put in]
:teleport <USER> [teleports certain user]
:invisible <USER> [Makes user invisible]
:pet <TYPE OF PET> <COLOUR> [Changes an admin into a pet, the pet that they request like cat, dog, croc etc and the colour of the pet like blue/red[I requested this earlier but no one answered]]
:givebadge <USER> <BADGEID> [Gives a certain User a Certain badge]
If you could make all those that would Be AWESOME
Also, they are all for admins only
EDIT:
also can you make a :poof command so it updates there clothes, that would be for everyone
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Ok so ive made an effort of converting the poll command to DB. Ive gotten everything right its just that i get this error:
PHP Code:
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
Ive got team viewer for anyone who can help.
And i have got the infobus from awas server working with DB
Quote:
Originally Posted by
swimoTheBig
Works fine for me?
---------- Post added at 07:34 AM ---------- Previous post was at 07:29 AM ----------
I need:
-v35
:guide (Sends a guide invite to EVERYONE)
:invisible (Turns you invisible {ADMIN ONLY})
:habbovision [user] (Sends the specified user, into habbovision mode)
:buyproperty (Buys a room for the price set by owner
:sellproperty (Sets a price for the room, and sets the room up for sale)
:}
Thnx.
I was talking to awa500 and if you mean the guide tool its coded but if you want the box that comes up saying if you want a guide it cant be coded cause awa doesnt have the packets for it.
Habbovisions easy ive coded it but you need more packets for the X button to exit you but theres no point since you cant put habbovision on a room.
Invisible is on the internet.
Buy and sell propety would require databases and a system to buy and sell. Il start coding it now and if it works il release.
Quote:
I have quite a few commands needed
All for Dissi v26
:givecredits <USER> <AMMOUNT> [GiveCredits to the user that you put in]
:teleport <USER> [teleports certain user]
:invisible <USER> [Makes user invisible]
:pet <TYPE OF PET> <COLOUR> [Changes an admin into a pet, the pet that they request like cat, dog, croc etc and the colour of the pet like blue/red[I requested this earlier but no one answered]]
:givebadge <USER> <BADGEID> [Gives a certain User a Certain badge]
If you could make all those that would Be AWESOME
Also, they are all for admins only
EDIT:
also can you make a :poof command so it updates there clothes, that would be for everyone
Ive coded the pet command but im not releasing.
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
321olos
Ive coded the pet command but im not releasing.
Can you PM it to me and i swear i will be the only person to use it
Please
Edit:
The Buyroom/Sellroom is on OpenHotel
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Can Someone Make Like A Staff Meeting Command. It Auto Teleports all staff online To staff the room your in & the staff the missed the meeting like it sends them a msg when they get online but only admins can use command?
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
tweeney
I have quite a few commands needed
All for Dissi v26
:givecredits <USER> <AMMOUNT> [GiveCredits to the user that you put in]
:teleport <USER> [teleports certain user]
:invisible <USER> [Makes user invisible]
:pet <TYPE OF PET> <COLOUR> [Changes an admin into a pet, the pet that they request like cat, dog, croc etc and the colour of the pet like blue/red[I requested this earlier but no one answered]]
:givebadge <USER> <BADGEID> [Gives a certain User a Certain badge]
If you could make all those that would Be AWESOME
Also, they are all for admins only
EDIT:
also can you make a :poof command so it updates there clothes, that would be for everyone
:credits <name> <amount>
Code:
#region :credits
case "credits":
{
if (rankManager.containsRight(_Rank, "fuse_administrator_access", userID) == false)
{
sendData("BK" + "You do not have the required rank to use this command. ");
return false;
}
else
{
virtualUser User = userManager.getUser(args[1]);
virtualUser Target = userManager.getUser(args[1]);
Int64 credittoupdate = int.Parse(args[2]);
Int64 oldcredits = new int();
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
oldcredits = dbClient.getInt("SELECT credits FROM users WHERE name = '" + args[1] + "'");
}
Int64 newcredits = oldcredits + credittoupdate;
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
dbClient.runQuery("UPDATE users SET credits = " + newcredits + " WHERE name = '" + args[1] + "'");
}
User.refreshValueables(true, false);
Target.sendData("BK" + "You have recieved " + credittoupdate + " credits from Hotel Staff");
sendData("BK" + "The user " + (args[1]) + " has received " + credittoupdate + " credits");
}
break;
}
#endregion
:poof
Code:
#region :poof
case "poof": // Refreshes users look
refreshAppearance(true, true, true);
break;
#endregion