BcStorm adding command help.
Hi, i'm coding the command :rape for a friend, and i'm almost there, i just can get the user to say "blah blah blah".
The way i've done it is you type :rape [username]
I've got that all sorted i just need the user to say: *Help! I'm getting raped by [my username]*
And i also want the user whos doing the command to say: *[my username] starts raping [there username]*
Here's my code:
Code:
internal void rape()
{
GameClient clientByUsername = null;
clientByUsername = ButterflyEnvironment.GetGame().GetClientManager().GetClientByUsername(this.Params[1]);
if (clientByUsername != null)
{
if (clientByUsername.GetHabbo().Username != this.Session.GetHabbo().Username)
{
// You say *[my username] starts raping [there username]*
// They say *Help! I'm getting raped by [my username]*
}
else
{
this.Session.SendNotif("You cannot rape yourself!");
}
}
else
{
this.Session.SendNotif(LanguageLocale.GetValue("input.usernotfound"));
}
}
Thanks.
Re: BcStorm adding command help.
You must add at ChatCommandRegister.cs and command files in the /Debug/System
Re: BcStorm adding command help.
Quote:
Originally Posted by
neto737
You must add at ChatCommandRegister.cs and command files in the /Debug/System
its been fixed,
moderators please close.
:D
Re: BcStorm adding command help.
Quote:
Originally Posted by
neto737
You must add at ChatCommandRegister.cs and command files in the /Debug/System
I've already done that, i just need to send chat lines, still having trouble working it out.
Quote:
Originally Posted by
Disguised
its been fixed,
moderators please close.
:D
It's not fixed.
BcStorm adding command help.
When you say "for a friend" you're obviously covering your own ass.
Just look at some examples in the code, obviously. The :say command is pretty close. Same handler, just set the specific message. *rapes*..
Re: BcStorm adding command help.
Quote:
Originally Posted by
FullmetalPride
When you say "for a friend" you're obviously covering your own ass.
Just look at some examples in the code, obviously. The :say command is pretty close. Same handler, just set the specific message. *rapes*..
No, it's for a friend, me & her own the hotel, but she wanted to command, only admins will have it, i'll never use it, but she wanted it so, she can have it, when it's done lol.
Also if it's similar to :say command then i'll mess around with that then, i added :say anyway.
Thanks.
Re: BcStorm adding command help.
Quote:
Originally Posted by
FullmetalPride
When you say "for a friend" you're obviously covering your own ass.
Why do you give a shit, if it's for him? My friend, it doesn't concern you. :)
---
I think I have a solution for your problem, Clawed.
Code:
internal void rape() {
GameClient clientByUsername = null;
TargetRoom = this.Session.GetHabbo().CurrentRoom;
RoomUser Target = TargetRoom.GetRoomUserByHabbo(this.Params[1]);
Me = TargetRoom.GetRoomUserByHabbo(this.Session.GetHabbo().Username);
clientByUsername = ButterflyEnvironment.GetGame().GetClientManager().GetClientByUsername(this.Params[1]);
if (clientByUsername != null)
{
if (clientByUsername.GetHabbo().Username != this.Session.GetHabbo().Username)
{
Me.Chat(this.Session, this.Session.GetHabbo().Username + " starts raping " + Target.GetClient().GetHabbo().Username, false); // false if you aren't shouting it, true if you are.
Target.Chat(Target.GetClient(), "Help! I'm getting raped by " + this.Session.GetHabbo().Username, false); // false if you aren't shouting it, true if you are.
}
else
{
this.Session.SendNotif("You cannot rape yourself!");
}
}
else
{
this.Session.SendNotif(LanguageLocale.GetValue("input.usernotfound"));
}
}
I'm pretty sure that this should work. If it doesn't tell me, I'm not that familiar with BCStorm.
Re: BcStorm adding command help.
Nope, didn't work, getting these errors: http://i.clawed.info/g9h3.png
Re: BcStorm adding command help.
Quote:
Originally Posted by
Clawed
Not to worry. I'll try setting up BcStorm on localhost and figure it out. :P
Re: BcStorm adding command help.
Quote:
Originally Posted by
Weytin
Not to worry. I'll try setting up BcStorm on localhost and figure it out. :P
I don't know if the command works in client because i got a login error, so i cant login to test it, but i don't think it will work anyway with visual studios telling me that.
Here's the login error: http://forum.ragezone.com/f333/bcsto...ticket-915269/