User Tag List

Results 1 to 2 of 2

Thread: Help with SendListInventory [Rochet2]

  1. #1
    Enthusiast kusanagy's Avatar
    Join Date
    Mar 2014
    Posts
    78
    XP
    2,745
    Level
    14
    Thanks
    21
    Thanked 5 Times in 4 Posts

    Red face Help with SendListInventory [Rochet2]

    hi rochet2. and guys


    could you teach, how to modify the Core, to use.

    SendListInventory (in item Gossip)?

    I like your video.


  2. #2
    Moderator / Eluna Dev <span style='color: #FF0000'><span class='glow_8B0000'>Rochet2</span></span>'s Avatar
    Join Date
    Apr 2013
    Location
    Finland
    Posts
    1,808
    XP
    13,031
    Level
    34
    Thanks
    95
    Thanked 568 Times in 396 Posts
    You can make a new SendListInventory function (copy the existing one) and remove all Creature* usage from it and if needed, replace with Item*.
    In some situations as a Creature may be required you must pass NULL or make a workaround or comment out the code.

    After doing that you can just use the existing item gossip patch to send the list inventory packet.

    Then you will try to buy an item it doesnt work.
    For buying to work you need to edit the item buy handler to work with item too. (basically to work without the creature again)
    Search opcodes.cpp for "buy" and you will find the handler that handles buying.

    Then you also need to make buyback work in the same way.
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •