Exemplo n.º 1
0
        public static void updateFarmingSpot(FarmingSpot thefarmingspot, GameClient Session, Room room)
        {
            if (thefarmingspot != null && Session != null)
            {
                try
                {
                    var item = thefarmingspot.FarmingSpotItem;

                    #region Plant Type
                    uint   thefarmingspottype   = 0;
                    double thefarmingspotheight = 0;

                    if (thefarmingspot.type == "weed")
                    {
                        thefarmingspottype   = 6699;
                        thefarmingspotheight = 0;
                    }
                    else if (thefarmingspot.type == "carrot")
                    {
                        thefarmingspottype   = 2946;
                        thefarmingspotheight = 0.01;
                    }
                    else
                    {
                        thefarmingspottype   = 6699;
                        thefarmingspotheight = 0;
                    }
                    #endregion

                    RoleplayManager.PlaceItemToCord(Session, thefarmingspottype, thefarmingspot.x, thefarmingspot.y, thefarmingspotheight, 0, false);
                }
                catch
                {
                }
            }
        }