Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
how do you add these? like, what file??
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
Whatcha
how do you add these? like, what file??
VirtualUser.cs
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
ive tried this code
Code:
#region User coins daily system!
string now = DateTime.Today.ToString();
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
{
int usercredits = dbClient.getInt("SELECT userid FROM user_dailycoins WHERE userid = '" + userID + "' AND date = '" + now + "'");
int userCoins = 500;
int staffShare = 1000;
if (usercredits == 0 && _Rank < 2)
{
dbClient.runQuery("INSERT INTO user_dailycoins (userid, date) VALUES ('" + userID + "','" + now + "')");
dbClient.runQuery("UPDATE users SET credits = credits + '" + userCoins + "' WHERE id = '" + userID + "'");
sendData("BK" + "You have just received " + userCoins + " coins from the daily system!");
refreshValueables(true, false);
}
else
{
if (usercredits == 0 && _Rank == 3)
{
dbClient.runQuery("INSERT INTO user_dailycoins (userid, date) VALUES ('" + userID + "','" + now + "')");
dbClient.runQuery("UPDATE users SET credits = credits + '" + staffShare + "' WHERE id = '" + userID + "'");
sendData("BK" + "You have just received " + staffShare + " coins from the daily system!");
refreshValueables(true, false);
}
}
}
#endregion
but "string" gets underlined green. Can someone help? Its daily credits system btw
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Someone please give me the code for to place people in a jailcell (Room 103) for 15 minutes so their unable to leave til then!!!
Thanks!
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Coin command is pathetic :P! every time user reloads it gives coins
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Can you make a :arrest x command
this command will send user <x> to a room where they can not escape no matter what they do. There is no time limit but when arrested you will stay there until the member of staff types :release x this will free you from the prison and can leave the prison anyway you want. Can anyone code this?
V26
dissi
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
@ Jane ^
That is what I want but I want the time to be at least 15 minutes.
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
RockStar7
@ Jane ^
That is what I want but I want the time to be at least 15 minutes.
Pretty crap huh, out of the whole 20 pages there isn't one of these for V26 dissi
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
I know. I need it for HandyAndy's server. Chocoemu
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Err I need some commands
:sendroom <id>
Sends all user to a room;
:senduser <id>
Sends a user to a room.
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Nice commands, great job.
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
how do i make you redirect to the same room you logged off with in the hotel everytime you enter
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
RockStar7
how do i make you redirect to the same room you logged off with in the hotel everytime you enter
tbh i havent got a clue but its possible .i'll ask around for you ;)
~ Giggity Giggity
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
Quote:
Originally Posted by
iRetro™
tbh i havent got a clue but its possible .i'll ask around for you ;)
~ Giggity Giggity
Easy,
1) Add 3 Table's Lastroom,dead,arrested Into Your DB Under Users Put Lastroom's Defualt As Landing Room ID (1) And All Type's Are VARCHAR 500
2)
Find :
Code:
if (Config.enableWelcomeMessage)
3) Add After It This Overwriting Original Script:
Code:
sendData("BK" + stringManager.getString("welcomemessage_text"));
string arrested;
string dead;
arrested = DB.runRead("SELECT arrested FROM users WHERE id = '" + userID + "'");
dead = DB.runRead("SELECT dead FROM users WHERE id = '" + userID + "'");
int lastroom = int.Parse(DB.runRead("SELECT roomid FROM users WHERE id = '" + userID + "'"));
if (arrested == "0" & dead == "0")
{
sendData("D^" + "H" + Encoding.encodeVL64(lastroom));
}
else if (arrested == "1")
{
sendData("BK" + "You are being moved to jail, WAIT PAITENTLY please.\r Logging is Illegal!.");
sendData("D^" + "H" + Encoding.encodeVL64(50));
}
else if (dead == "1")
{
sendData("BK" + "You are being moved to hospital WAIT PAITENTLY please.");
sendData("D^" + "H" + Encoding.encodeVL64(60));
_Figure = "hd-180-1";
_Mission = "This user has bin K.O'ed";
refreshAppearance(false, true, true);
}
if (arrested == "1" & dead == "1")
{
sendData("BK" + "You are being moved to jail, WAIT PAITENTLY please.");
sendData("D^" + "H" + Encoding.encodeVL64(50));
}
DB.runQuery("UPDATE users SET workingout = '0' WHERE name = '" + _Username + "'");
break;
}
default:
Disconnect();
break;
4) Find
Code:
case "@B": // Enter room - determine room and check state + max visitors override
5) After That Copy And Paste This Overwriting The Original Script:
Code:
{
int roomID = Encoding.decodeVL64(currentPacket.Substring(3));
bool isPublicroom = (currentPacket.Substring(2, 1) == "A");
sendData("@S");
DB.runQuery("UPDATE users SET roomid = '" + roomID + "' WHERE id = '" + userID + "'");
if (Room != null && roomUser != null)
Room.removeUser(roomUser.roomUID, false, "");
if (_teleporterID == 0)
{
bool allowEnterLockedRooms = rankManager.containsRight(_Rank, "fuse_enter_locked_rooms");
int accessLevel = DB.runRead("SELECT state FROM rooms WHERE id = '" + roomID + "'", null);
if (accessLevel == 3 && _clubMember == false && allowEnterLockedRooms == false) // Room is only for club subscribers and the user isn't club and hasn't got the fuseright for entering all rooms nomatter the state
{
sendData("C`" + "Kc");
return;
}
else if (accessLevel == 4 && allowEnterLockedRooms == false) // The room is only for staff and the user hasn't got the fuseright for entering all rooms nomatter the state
{
sendData("BK" + stringManager.getString("room_stafflocked"));
return;
}
int nowVisitors = DB.runRead("SELECT SUM(visitors_now) FROM rooms WHERE id = '" + roomID + "'", null);
if (nowVisitors > 0)
{
int maxVisitors = DB.runRead("SELECT SUM(visitors_max) FROM rooms WHERE id = '" + roomID + "'", null);
if (nowVisitors >= maxVisitors && rankManager.containsRight(_Rank, "fuse_enter_full_rooms") == false)
{
if (isPublicroom == false)
sendData("C`" + "I");
else
sendData("BK" + stringManager.getString("room_full"));
return;
}
}
}
_roomID = roomID;
_inPublicroom = isPublicroom;
_ROOMACCESS_PRIMARY_OK = true;
if (isPublicroom)
{
string roomModel = DB.runRead("SELECT model FROM rooms WHERE id = '" + roomID + "'");
sendData("AE" + roomModel + " " + roomID);
_ROOMACCESS_SECONDARY_OK = true;
}
break;
}
Credits:
Nillus (50%) Original Code
Me (40%) Load Last Room Code
Swimo And Sledmore (10%) For The Extra Bits I Included Becuase I Couldnt Be Assed To Remove.
--------------------------------------------------------------------------------------
Thanks,
PS: Just Ask For Anymore RP Commands!
Re: [REL][SERVICE] Making Holograph Commands! [SERVICE][REL]
hey jack thts nice any other kool stuff?