Different Incense Use Source Code menu

User Tag List

Results 1 to 1 of 1
  1. #1
    TechXPlays's Avatar Contributor
    Reputation
    112
    Join Date
    Jul 2016
    Posts
    154
    Thanks G/R
    3/93
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Different Incense Use Source Code

    This is something I felt was missing from all the bots (well most of them) and I added it to mine before release and most people loved it

    Incense use by Button
    The reason I have this "by button" rather than some sort of automatic timing system is because this is an easier way to teach people the code rather than some over the top timing system. This is in C# on a Windows Form. This is meant to be an add-on. This is for Ordinary Incense. In later updates, there will be more options for other types of incense to attract certain kinds of Pokemon. You can easily modify this code to attract or use the other incense.

    What's Needed
    RocketAPI
    Basic Windows Form setup with 1 button

    Client.CS of RocketAPI

    Code:
    public async Task<UseItemCaptureRequest> UseItemIncense(ItemId itemId)
            {
                var customRequest = new UseItemCaptureRequest
                {
                    ItemId = itemId,
                };
    
                var useItemRequest = RequestBuilder.GetRequest(_unknownAuth, CurrentLat, CurrentLng, CurrentAltitude,
                    new Request.Types.Requests
                    {
                        Type = (int)RequestType.USE_INCENSE,
                        Message = customRequest.ToByteString()
                    });
                return
                    await
                        _httpClient.PostProtoPayload<Request, UseItemCaptureRequest>($"https://{_apiUrl}/rpc",
                            useItemRequest);
            }
    Your Form Code

    -- Set Button Text with Advanced Info--
    Code:
    private void SetIncenseBtnText(int nrOfIncense)
            {
                btn_Incense.Text = $"Use Incense ({nrOfIncense.ToString()})";
    
                if (nrOfIncense == 0)
                {
                    btn_Incense.Enabled = false;
                }
                else
                {
                    btn_Incense.Enabled = true;
                }
            }
    --Button Activation--
    Code:
    private async void btn_Incense_Click(object sender, EventArgs e)
            {
                await UseIncense();
            }
    --Use Incense Function--

    Code:
    public async Task UseIncense()
            {
                var inventoryItems = await inventory.GetItems();
                var IncenseItems = inventoryItems.Where(p => (ItemId)p.Item_ == ItemId.ItemIncenseOrdinary); //To use different incense, type ItemIncenseCool for example
                var IncenseItem = IncenseItems.FirstOrDefault();
    
                if (IncenseItem == null)
                    return;
    
                var useIncenseItem = await client.UseItemIncense(ItemId.ItemIncenseOrdinary); //To use different incense, type ItemIncenseCool for example
                Logger.Write($"Used Incense. Remaining: {IncenseItem.Count - 1}", LogLevel.Info);
    
                await GetCurrentPlayerInformation();
            }

    Check out my YouTube Channel for more updates and Pokemon Go related leaks, news, and bot testings
    TechX YouTube Channel Link

    Different Incense Use Source Code

Similar Threads

  1. [Request] who have the Sanguo source code i have a way to update to use it
    By cf1010992647 in forum Overwatch Chat
    Replies: 2
    Last Post: 11-28-2016, 11:19 PM
  2. [Source] BWH Bubba's Hack Source Code
    By TehAvatar in forum World of Warcraft Bots and Programs
    Replies: 25
    Last Post: 09-30-2014, 11:08 AM
  3. full glider source code?
    By Archelf in forum World of Warcraft General
    Replies: 12
    Last Post: 03-03-2007, 12:16 AM
  4. Syndrome Source Code?
    By =sinister= in forum World of Warcraft General
    Replies: 4
    Last Post: 02-22-2007, 05:47 PM
  5. [Bot:Source] Acidic Bot Source Code
    By =sinister= in forum World of Warcraft Bots and Programs
    Replies: 10
    Last Post: 07-03-2006, 05:38 PM
All times are GMT -5. The time now is 12:34 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search