User Tag List

Results 1 to 3 of 3

Thread: Sunwell Core

  1. #1
    Lurking Member
    Join Date
    Jul 2016
    Posts
    2
    XP
    56
    Level
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Item gossip with Eluna.

    http://pastebin.com/raEQvTwA

    I'm trying to figure out how to build the world packet and send the vendor packet to the player.
    Credit to Rochet2 for showing me how to add "SetCurrentVendor" to Eluna.

    Basically, I'm trying to make an item that can open up a vendor window, and then send the appropriate item vendor, then enchant the item you select.
    Rochet told me I need to build and send the vendor packet to the player, which I still have no idea how to do.
    Last edited by robbie5325; 08-13-2016 at 11:17 AM.
    Achievements:
    Level I Member 7 days registered

  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,860
    XP
    13,531
    Level
    35
    Thanks
    95
    Thanked 592 Times in 419 Posts
    You must pass a creature object to it that has vendor flags (129) and npc_vendor entries that define the items it has.
    Not a number, a creature object.

    Btw. To do what you want:
    If you want to do it properly you can make C++ core modifications to allow multivendor and item vendors.
    Or a workaround is that you can make the item spawn NPCs that show the vendors to the player.

    You can only do the latter on normal core without C++ modifications even if it has Eluna.
    Last edited by Rochet2; 08-13-2016 at 08:13 AM.
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  3. #3
    Original Poster
    Lurking Member
    Join Date
    Jul 2016
    Posts
    2
    XP
    56
    Level
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://pastebin.com/raEQvTwA

    I'm trying to figure out how to build the world packet and send the vendor packet to the player.
    Credit to Rochet2 for showing me how to add "SetCurrentVendor" to Eluna.
    Last edited by robbie5325; 08-13-2016 at 11:05 AM.
    Achievements:
    Level I Member 7 days registered

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
  •