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 Q&A
PlusEMU No Trade Quantity?
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="SOUL" data-source="post: 391659" data-attributes="member: 64122"><p>You should have trade.cs if not</p><p>[code]</p><p>using System;</p><p>using System.Linq;</p><p>using System.Text;</p><p>using System.Collections.Generic;</p><p></p><p>using Plus.HabboHotel.GameClients;</p><p></p><p>namespace Plus.HabboHotel.Rooms.Chat.Commands.User</p><p>{</p><p> class TradeCommand : IChatCommand</p><p> {</p><p> public string PermissionRequired</p><p> {</p><p> get { return "command_trade"; }</p><p> }</p><p></p><p> public string Parameters</p><p> {</p><p> get { return "%integer%"; }</p><p> }</p><p></p><p> public string Description</p><p> {</p><p> get { return "Set an amount of an item to trade"; }</p><p> }</p><p></p><p> public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)</p><p> {</p><p> int Amount = 0;</p><p></p><p> if (Int32.TryParse(Params[1], out Amount))</p><p> {</p><p> if (Amount > 20000 || Amount < 1)</p><p> {</p><p> Session.SendWhisper("You must use a value above 0 and below 20000");</p><p> return;</p><p> }</p><p></p><p> Plus.HabboHotel.Rooms.Trading.Trade Trade = Session.GetHabbo().CurrentRoom.GetUserTrade(Session.GetHabbo().Id);</p><p></p><p> if (Trade != null)</p><p> {</p><p> Session.SendWhisper("TradeX set to " + Amount.ToString());</p><p> Session.GetHabbo().TradeAmount = Amount;</p><p> }</p><p> else</p><p> { </p><p> Session.SendWhisper("You are not currently in a trade!");</p><p> }</p><p> }</p><p> }</p><p> }</p><p>}</p><p></p><p>[/code]</p></blockquote><p></p>
[QUOTE="SOUL, post: 391659, member: 64122"] You should have trade.cs if not [code] using System; using System.Linq; using System.Text; using System.Collections.Generic; using Plus.HabboHotel.GameClients; namespace Plus.HabboHotel.Rooms.Chat.Commands.User { class TradeCommand : IChatCommand { public string PermissionRequired { get { return "command_trade"; } } public string Parameters { get { return "%integer%"; } } public string Description { get { return "Set an amount of an item to trade"; } } public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params) { int Amount = 0; if (Int32.TryParse(Params[1], out Amount)) { if (Amount > 20000 || Amount < 1) { Session.SendWhisper("You must use a value above 0 and below 20000"); return; } Plus.HabboHotel.Rooms.Trading.Trade Trade = Session.GetHabbo().CurrentRoom.GetUserTrade(Session.GetHabbo().Id); if (Trade != null) { Session.SendWhisper("TradeX set to " + Amount.ToString()); Session.GetHabbo().TradeAmount = Amount; } else { Session.SendWhisper("You are not currently in a trade!"); } } } } } [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PlusEMU No Trade Quantity?
Top