-
[HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
I will no longer be doing this service as i have decided to quit coding for people and hotel's and code my own emu and what not.
This does not mean i wont be on RaGEZONE anymore all i am doing is quiting coding for people and hotel's.
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Can you code the Moonwalk command For Holo : RP Rasta for the Rank number 2 Thank You
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Emulator: (Dissi's)
Command: (:marry x)
What it does: (Allows a user to marry another user.,Has maybe a stopping time to wait for the other person to marry also. Also should check if the user is already married.)
---------- Post added at 02:30 AM ---------- Previous post was at 02:28 AM ----------
Quote:
Originally Posted by
cooldude159
Can you code the Moonwalk command For Holo : RP Rasta for the Rank number 2 Thank You
Code:
#region :moonwalk
case "moonwalk": // Allows the user to walk backwards.
{
if (_Rank > 1)
{
if (roomUser.User._Moon == 0)
{
roomUser.User._Moon = 1;
Room.sendShout(roomUser, "*Starts to moonwalk*");
}
else
{
roomUser.User._Moon = 0;
Room.sendShout(roomUser, "*Stops moonwalking*");
}
}
else
{
sendData("BK" + "Please subscribe to VIP to use this function.");
}
break;
}
#endregion
This is more like a system, and which you will need to add something to about 5 more .cs's
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Cobe
Emulator: (Dissi's)
Command: (:marry x)
What it does: (Allows a user to marry another user.,Has maybe a stopping time to wait for the other person to marry also. Also should check if the user is already married.)
---------- Post added at 02:30 AM ---------- Previous post was at 02:28 AM ----------
Code:
#region :moonwalk
case "moonwalk": // Allows the user to walk backwards.
{
if (_Rank > 1)
{
if (roomUser.User._Moon == 0)
{
roomUser.User._Moon = 1;
Room.sendShout(roomUser, "*Starts to moonwalk*");
}
else
{
roomUser.User._Moon = 0;
Room.sendShout(roomUser, "*Stops moonwalking*");
}
}
else
{
sendData("BK" + "Please subscribe to VIP to use this function.");
}
break;
}
#endregion
This is more like a system, and which you will need to add something to about 5 more .cs's
Ok started it. Will either edit post (to avoid double posting) or make a new post.
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Emulator: Dissi's edit r26
Command: :bite
What it does: It will change the look from the target, but that's only possible if you are 1 x/y coordinate away from the target. And you can't bite if you are a "human"
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Cobe
Emulator: (Dissi's)
Command: (:marry x)
What it does: (Allows a user to marry another user.,Has maybe a stopping time to wait for the other person to marry also. Also should check if the user is already married.)
---------- Post added at 02:30 AM ---------- Previous post was at 02:28 AM ----------
Code:
#region :moonwalk
case "moonwalk": // Allows the user to walk backwards.
{
if (_Rank > 1)
{
if (roomUser.User._Moon == 0)
{
roomUser.User._Moon = 1;
Room.sendShout(roomUser, "*Starts to moonwalk*");
}
else
{
roomUser.User._Moon = 0;
Room.sendShout(roomUser, "*Stops moonwalking*");
}
}
else
{
sendData("BK" + "Please subscribe to VIP to use this function.");
}
break;
}
#endregion
This is more like a system, and which you will need to add something to about 5 more .cs's
Can you do this but for dissi's edit and only make it so rank 3 and higher can use the command?
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Eronisch
Emulator: Dissi's edit r26
Command: :bite
What it does: It will change the look from the target, but that's only possible if you are 1 x/y coordinate away from the target. And you can't bite if you are a "human"
You fucking follower..
i coded this today
Code:
#region :bite <user>
case "bite":
{
virtualUser User = userManager.getUser(args[1]);
if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
{
if (_Mission == "Zombie")
{
User._Figure = "hd-180-35.ch-93.lg-270-110.sh-290-110.hr-831-61";
User._Mission = "Zombie";
User.refreshAppearance(false, true, true);
Room.sendSaying(roomUser, "*Spreads their zombie poison to " + User._Username + " causing zombification*");
}
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
dbClient.runQuery("UPDATE users SET game_infect = game_infect + '10' WHERE name = '" + _Username + "'");
}
}
break;
}
#endregion
---------- Post added at 02:58 AM ---------- Previous post was at 02:53 AM ----------
Quote:
Originally Posted by
Hydros1
Can you do this but for dissi's edit and only make it so rank 3 and higher can use the command?
That is for dissi's and just edit it to if (_Rank > 2)
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Cobe
You fucking follower..
i coded this today
Code:
#region :bite <user>
case "bite":
{
virtualUser User = userManager.getUser(args[1]);
if (User._roomID == _roomID && (roomUser.Y == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y + 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y - 1 == User.roomUser.Y && roomUser.X == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X + 1 == User.roomUser.X) || (roomUser.Y == User.roomUser.Y && roomUser.X - 1 == User.roomUser.X))
{
if (_Mission == "Zombie")
{
User._Figure = "hd-180-35.ch-93.lg-270-110.sh-290-110.hr-831-61";
User._Mission = "Zombie";
User.refreshAppearance(false, true, true);
Room.sendSaying(roomUser, "*Spreads their zombie poison to " + User._Username + " causing zombification*");
}
{
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
dbClient.runQuery("UPDATE users SET game_infect = game_infect + '10' WHERE name = '" + _Username + "'");
}
}
break;
}
#endregion
Nana xD , Ty for sharing it ;)
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Ok i have coded the command but i need to code the sql now. But with the command i dont know how to make it so the user accepts it or not. SO i have left that bit out while i figure it out.
Heres what i got so far:
PHP Code:
#region :marry
case "marry":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
if (int.Parse(dbClient.getString("SELECT married FROM married WHERE name = '" + _Username + "'")) == 1)
{
sendData("BK" + "You cannot marry " + User + " cause you are already married");
}
else
{
DataRow dRow = dbClient.getRow("SELECT married,partner FROM married WHERE name = '" + User + "'");
{
if (int.Parse(Convert.ToString(dRow["name"])) == 1)
{
sendData("BK" + "Sorry but " + User + " is married to " + Convert.ToString(dRow["partner"]));
}
if (int.Parse(Convert.ToString(dRow["name"])) == 0)
{
}
}
}
break;
}
#endregion
I know the coding isnt that good but il probaly clean it up when im done.
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
thanks
Also as you see w/ the past 2 requests..
if you need any help just ask.
---------- Post added at 03:03 AM ---------- Previous post was at 03:02 AM ----------
Quote:
Originally Posted by
Eronisch
Nana xD , Ty for sharing it ;)
I like sharing with the community ;D
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
321olos
Ok i have coded the command but i need to code the sql now. But with the command i dont know how to make it so the user accepts it or not. SO i have left that bit out while i figure it out.
Heres what i got so far:
PHP Code:
#region :marry
case "marry":
{
virtualUser User = userManager.getUser(args[1]);
using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient())
if (int.Parse(dbClient.getString("SELECT married FROM married WHERE name = '" + _Username + "'")) == 1)
{
sendData("BK" + "You cannot marry " + User + " cause you are already married");
}
else
{
DataRow dRow = dbClient.getRow("SELECT married,partner FROM married WHERE name = '" + User + "'");
{
if (int.Parse(Convert.ToString(dRow["name"])) == 1)
{
sendData("BK" + "Sorry but " + User + " is married to " + Convert.ToString(dRow["partner"]));
}
if (int.Parse(Convert.ToString(dRow["name"])) == 0)
{
}
}
}
break;
}
#endregion
I know the coding isnt that good but il probaly clean it up when im done.
But does it work?
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Eronisch
But does it work?
Havent tested it yet as i am making sql which will be done in about 5 minutes.
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Eronisch
But does it work?
It also isn't done..
As you see it verify the user as married
nor verifies the spouse.
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Ok heres the sql:
PHP Code:
CREATE TABLE IF NOT EXISTS `rooms` (
`name` varchar(15) COLLATE latin1_general_ci DEFAULT NULL,
`partner` varchar(15) COLLATE latin1_general_ci DEFAULT NULL,
`married` enum('0','1') COLLATE latin1_general_ci NOT NULL DEFAULT '0',
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=4013 ;
I just came up with that (but used some other tables to help)
Please click the Thanks button if you like it.
BTW could you help me think of a way to ask the person being asked to be married would accept or decline it.
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Maybe accept/decline
decline would delete the request
while accept would then put all the data into the system.
and is the table really called rooms?
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
Cobe
Maybe accept/decline
decline would delete the request
while accept would then put all the data into the system.
and is the table really called rooms?
Sorry i just made that up quickly
Heres the new one:
PHP Code:
CREATE TABLE IF NOT EXISTS `marriage` (
`name` varchar(15) COLLATE latin1_general_ci DEFAULT NULL,
`partner` varchar(15) COLLATE latin1_general_ci DEFAULT NULL,
`married` enum('0','1') COLLATE latin1_general_ci NOT NULL DEFAULT '0',
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=4013 ;
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Awesome thanks..
can't wait to see the end result.
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
321olos
Ok heres the sql:
PHP Code:
CREATE TABLE IF NOT EXISTS `rooms` (
`name` varchar(15) COLLATE latin1_general_ci DEFAULT NULL,
`partner` varchar(15) COLLATE latin1_general_ci DEFAULT NULL,
`married` enum('0','1') COLLATE latin1_general_ci NOT NULL DEFAULT '0',
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=4013 ;
I just came up with that (but used some other tables to help)
Please click the Thanks button if you like it.
BTW could you help me think of a way to ask the person being asked to be married would accept or decline it.
PHP Code:
CREATE TABLE IF NOT EXISTS `rooms` (
Change the table name :L
Also, yeah add another collum. like friend requests :P
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Command : VA
what it does: vip alert sends a room alert
emulator: Dissi extreme TDP
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
You Had this Command in your Old EMULATOR
Command: Pet Jump And Pet Playdead
Emulator: Dissi
Or if you can pass your old server :P
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
voilet
Command : VA
what it does: vip alert sends a room alert
emulator: Dissi extreme TDP
here
Code:
#region :va
case "va": // Broadcoasts a message to all virtual users in the current room (room alert)
case "vhw":
case "roomalert": // Broadcoasts a message to all virtual users in the current room (room alert)
{
if (_Rank > 2)
{
return false;
}
else
{
string Message = Text.Substring(3);
userManager.sendData("BK" + stringManager.getString("scommand_roomalert") + "\r" + Message);
staffManager.addStaffMessage("halert", userID, 0, Message, "");
}
}
break;
#endregion
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Change Rank 2 To Rank 3 Plus it be dumb if vips can send room alerts some noob vp can flood rooms
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
really i coded it for him ..plus vip would abuse
---------- Post added at 05:56 PM ---------- Previous post was at 05:15 PM ----------
Emulator: (DiSSi's)
Command: Punch some1 with added damage
What it does: Whe Punch some it will add other damage like *swings at blue causing 7+5 damage.
Just like on chrono
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Yea thats what i ment abuse
-
Re: [HOLOGRAPH] [R26] Coding Custom Commands For Holograph Emu r26 [R26] [HOLOGRAPH]
Quote:
Originally Posted by
mango2735
really i coded it for him ..plus vip would abuse
---------- Post added at 05:56 PM ---------- Previous post was at 05:15 PM ----------
Emulator: (DiSSi's)
Command: Punch some1 with added damage
What it does: Whe Punch some it will add other damage like *swings at blue causing 7+5 damage.
Just like on chrono
That code is already coded, but i can't find it atm.