Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[R63A] GTE - JayCustom's Edits
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MasterJiq" data-source="post: 379755" data-attributes="member: 69646"><p>Hey [USER=36373]@JayCustom[/USER],</p><p></p><p>I am gonna fix this problem which dropkick is working on diagonal.</p><p>Here the code, I am not professional on coding C# but I've tried. All I get is error:</p><p>[CODE] case 167:</p><p> if (Session.GetHabbo().HasFuse("cmd_dropkick"))</p><p> {</p><p> TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]);</p><p> if (TargetClient == null)</p><p> {</p><p> Session.SendNotification("User could not be found.");</p><p> GoldTree.GetGame().GetClientManager().AddToCmdLogs(Session, Params[0].ToLower(), Input);</p><p> return true;</p><p> }</p><p> RoomUser class6 = RoomClass.GetRoomUserByHabbo(Session.GetHabbo().Id);</p><p> RoomUser class4 = RoomClass.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);</p><p> if (class6 != class4)</p><p> {</p><p> if (Math.Abs(class6.X - class4.X) < 3 && Math.Abs(class6.Y - class4.Y) < 3)</p><p> {</p><p> class6.HandleSpeech(Session, "*Dropkick " + TargetClient.GetHabbo().Username + " and drops them on to the floor*", true);</p><p> class4.HandleSpeech(Session, "*OUCH THAT HURT!*", true);</p><p> class4.AddStatus("sit", "-0.1"); //((class4.Z + 1.0) / 2.0 - class4.Z * 0.5).ToString().Replace(",", ".")</p><p> class4.UpdateNeeded = true;</p><p> return true;</p><p> }</p><p> else</p><p> {</p><p> Session.GetHabbo().Whisper("Oops... This user is too far away! Try getting closer.");</p><p> return true;</p><p> }</p><p> /* HERE THE DIAGONAL DISABLE</p><p> if (class4.BodyRotation % 2 != 0)</p><p> {</p><p> Session.GetHabbo().Whisper(TargetClient.GetHabbo().Username + "is standing diagonally!");</p><p> return false;</p><p> }</p><p> */</p><p> }</p><p> else</p><p> {</p><p> Session.GetHabbo().Whisper("You can not dropkick yourself.");</p><p> return true;</p><p> }</p><p> }</p><p> else</p><p> {</p><p> return false;</p><p> }[/CODE]</p><p></p><p>I hope someone can help me <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="MasterJiq, post: 379755, member: 69646"] Hey [USER=36373]@JayCustom[/USER], I am gonna fix this problem which dropkick is working on diagonal. Here the code, I am not professional on coding C# but I've tried. All I get is error: [CODE] case 167: if (Session.GetHabbo().HasFuse("cmd_dropkick")) { TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Params[1]); if (TargetClient == null) { Session.SendNotification("User could not be found."); GoldTree.GetGame().GetClientManager().AddToCmdLogs(Session, Params[0].ToLower(), Input); return true; } RoomUser class6 = RoomClass.GetRoomUserByHabbo(Session.GetHabbo().Id); RoomUser class4 = RoomClass.GetRoomUserByHabbo(TargetClient.GetHabbo().Id); if (class6 != class4) { if (Math.Abs(class6.X - class4.X) < 3 && Math.Abs(class6.Y - class4.Y) < 3) { class6.HandleSpeech(Session, "*Dropkick " + TargetClient.GetHabbo().Username + " and drops them on to the floor*", true); class4.HandleSpeech(Session, "*OUCH THAT HURT!*", true); class4.AddStatus("sit", "-0.1"); //((class4.Z + 1.0) / 2.0 - class4.Z * 0.5).ToString().Replace(",", ".") class4.UpdateNeeded = true; return true; } else { Session.GetHabbo().Whisper("Oops... This user is too far away! Try getting closer."); return true; } /* HERE THE DIAGONAL DISABLE if (class4.BodyRotation % 2 != 0) { Session.GetHabbo().Whisper(TargetClient.GetHabbo().Username + "is standing diagonally!"); return false; } */ } else { Session.GetHabbo().Whisper("You can not dropkick yourself."); return true; } } else { return false; }[/CODE] I hope someone can help me :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
[R63A] GTE - JayCustom's Edits
Top