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
Plus Emulator Slot Machine Interaction
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="Kurumi" data-source="post: 463876" data-attributes="member: 61623"><p>I found, actually interactionsType = slots</p><p>the commands is bad in my opinion , I think my commands would be better to define several types of machine</p><p></p><p>I will also if I can order, to stop the machine.</p><p>I said that to you in an update of my answer</p><p></p><p>Used commands: casino machine %credits%</p><p></p><p>Sorry english, Me French</p><p></p><p>[CODE]using Butterfly.HabboHotel.GameClients;</p><p></p><p>namespace Butterfly.HabboHotel.Rooms.Chat.Commands.Cmd</p><p>{</p><p> class Casino : IChatCommand</p><p> {</p><p> public void Execute(GameClient Session, Room Room, RoomUser UserRoom, string[] Params)</p><p> {</p><p> string UpdateVal = Params[1];</p><p> switch (UpdateVal.ToLower())</p><p> {</p><p> case "machine":</p><p> {</p><p> int bet;</p><p> if (int.TryParse(Params[2], out bet))</p><p> {</p><p> if (bet < 10 || bet > 150000)</p><p> {</p><p> Session.SendWhisper("Vous pouvez parier entre 10 crédit et 150 000 crédits au maximum.");</p><p> return;</p><p> }</p><p></p><p> if (Session.GetHabbo().Credits < bet)</p><p> {</p><p> Session.SendWhisper("Vous n'avez pas assez de crédits pour procéder à ce pari.");</p><p> return;</p><p> }</p><p></p><p> Session.GetHabbo().SlotsInteractation = bet;</p><p> Session.SendWhisper("Vous avez parier votre mise sur la machine à sous avec "+ bet +" crédits, double - cliquez sur la machine à sous pour jouer.");</p><p> break;</p><p> }</p><p> else</p><p> {</p><p> Session.SendWhisper("Merci de inqiuer une valeur pour jouer.");</p><p> break;</p><p> }</p><p> }</p><p> default:</p><p> {</p><p> Session.SendWhisper(ButterflyEnvironment.GetLanguageManager().TryGetValue("cmd.notfound", Session.Langue));</p><p> return;</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Kurumi, post: 463876, member: 61623"] I found, actually interactionsType = slots the commands is bad in my opinion , I think my commands would be better to define several types of machine I will also if I can order, to stop the machine. I said that to you in an update of my answer Used commands: casino machine %credits% Sorry english, Me French [CODE]using Butterfly.HabboHotel.GameClients; namespace Butterfly.HabboHotel.Rooms.Chat.Commands.Cmd { class Casino : IChatCommand { public void Execute(GameClient Session, Room Room, RoomUser UserRoom, string[] Params) { string UpdateVal = Params[1]; switch (UpdateVal.ToLower()) { case "machine": { int bet; if (int.TryParse(Params[2], out bet)) { if (bet < 10 || bet > 150000) { Session.SendWhisper("Vous pouvez parier entre 10 crédit et 150 000 crédits au maximum."); return; } if (Session.GetHabbo().Credits < bet) { Session.SendWhisper("Vous n'avez pas assez de crédits pour procéder à ce pari."); return; } Session.GetHabbo().SlotsInteractation = bet; Session.SendWhisper("Vous avez parier votre mise sur la machine à sous avec "+ bet +" crédits, double - cliquez sur la machine à sous pour jouer."); break; } else { Session.SendWhisper("Merci de inqiuer une valeur pour jouer."); break; } } default: { Session.SendWhisper(ButterflyEnvironment.GetLanguageManager().TryGetValue("cmd.notfound", Session.Langue)); return; } } } } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Server Releases
Plus Emulator Slot Machine Interaction
Top