Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PLUS] Diamond Exchange

Junior Spellweaver
Joined
Jun 16, 2016
Messages
119
Reaction score
41
Hi RageZone,
Since the structure is changed in PlusEMU Release3 (Dev) won't work the code for diamond exchange

My CreditFurniRedeemEvent.cs:
PHP:
using System;using System.Linq;using System.Text;using System.Collections.Generic;using Plus.HabboHotel.Rooms;using Plus.HabboHotel.Items;using Plus.Communication.Packets.Outgoing.Inventory.Purse;using Plus.Communication.Packets.Outgoing.Inventory.Furni;using Plus.Database.Interfaces;namespace Plus.Communication.Packets.Incoming.Rooms.Furni{    class CreditFurniRedeemEvent : IPacketEvent    {        public void Parse(HabboHotel.GameClients.GameClient Session, ClientPacket Packet)        {            if (!Session.GetHabbo().InRoom)                return;            Room Room = null;            if (!PlusEnvironment.GetGame().GetRoomManager().TryGetRoom(Session.GetHabbo().CurrentRoomId, out Room))                return;            if (!Room.CheckRights(Session, true))                return;                        if (PlusEnvironment.GetSettingsManager().TryGetValue("room.item.exchangeables.enabled") != "1")            {                Session.SendNotification("The hotel managers have temporarilly disabled exchanging!");                return;            }            Item Exchange = Room.GetRoomItemHandler().GetItem(Packet.PopInt());            if (Exchange == null)                return;            if (Exchange.Data.InteractionType != InteractionType.EXCHANGE)                return;            int Value = Exchange.Data.BehaviourData;            if (Value > 0)            {                Session.GetHabbo().Credits += Value;                Session.SendPacket(new CreditBalanceComposer(Session.GetHabbo().Credits));            }            using (IQueryAdapter dbClient = PlusEnvironment.GetDatabaseManager().GetQueryReactor())            {                dbClient.SetQuery("DELETE FROM `items` WHERE `id` = @exchangeId LIMIT 1");                dbClient.AddParameter("exchangeId", Exchange.Id);                dbClient.RunQuery();            }            Session.SendPacket(new FurniListUpdateComposer());            Room.GetRoomItemHandler().RemoveFurniture(null, Exchange.Id, false);            Session.GetHabbo().GetInventoryComponent().RemoveItem(Exchange.Id);        }    }}


The emulator does works with ''Seasonal Currency'' thats the reason why this weard poop.
Anyone that can help?
Dont say: go to arcturus emulator, go to plus r2 ect ect cause this emu has more functions and its better coded.
 
Back
Top