User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 7 of 9

Thread: Error with Player Gossip Item.

  1. #1
    Respected Member kusanagy's Avatar
    Join Date
    Mar 2014
    Posts
    79
    XP
    2,910
    Level
    15
    Thanks
    22
    Thanked 5 Times in 4 Posts

    Unhappy Error with Player Gossip Item.

    Hi guys,


    I have a Problem., in my Source is TrinityCore 3.3.5 Rev.61 ELUNA.

    in the MiscHandler.cpp

    #ifdef ELUNA
    Item* item = NULL;
    #endif
    Item* item = NULL;
    Creature* unit = NULL;
    GameObject* go = NULL;
    if (guid.IsCreatureOrVehicle())
    Error of multiple "Item" in the Compile.

  2. #2
    Mad Scientist <span style='color: #008000'><span class='glow_006400'>slp13at420</span></span>'s Avatar



    Join Date
    Dec 2013
    Location
    Idaho
    Posts
    2,497
    XP
    20,134,837
    Level
    500
    Thanks
    1,092
    Thanked 333 Times in 213 Posts
    any customizations?
    can you post the whole error message?
    Achievements:
    Shopper Got a Sticky! Member 1 year registered Level XL Level D
    Awards:
    Pot Head LOL Raffle Winner Top Tagger Donator Hangman Scripter Repacker Drunk Support Member of Staff Da Bomb!
    "Cuz PvP's better with a bag 'o' weed"
    !! King Spade !!

    -Guild Plot System-
    Grumbo'z Guild Warz


    -VIP System-
    Grumbo'z VIP System

  3. #3
    Founder <span style='color: #FF4500'>Tommy</span>'s Avatar
    Join Date
    Apr 2013
    Posts
    7,391
    XP
    3,449,104
    Level
    378
    Thanks
    889
    Thanked 1,858 Times in 1,120 Posts
    Remove the extra item variable!

    If you're using Eluna it will use Eluna's item variable so the one below "#endif" becomes pointless and thus, will through an error because there's two same named variables.

  4. The Following 2 Users Say Thank You to Tommy For This Useful Post:


  5. #4
    Original Poster
    Respected Member kusanagy's Avatar
    Join Date
    Mar 2014
    Posts
    79
    XP
    2,910
    Level
    15
    Thanks
    22
    Thanked 5 Times in 4 Posts
    I am trying to install Gossip Menu Rochet2 player.

    If I take this option. Item* item = NULL;
    compiles without errors, but the script, which are gossip, does nothing in stone home menu.

  6. #5
    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
    Quote Originally Posted by kusanagy View Post
    I am trying to install Gossip Menu Rochet2 player.

    If I take this option. Item* item = NULL;
    compiles without errors, but the script, which are gossip, does nothing in stone home menu.
    Did you try using hearthstone for your script?
    Make sure your script works with hearthstone item and then go try it with your custom items.
    This way we can be sure it is either the script/non core conditions or the core being the issue.

    Possibly the stone item is invalid in some way and core works fine.
    Awards:
    Support LOL Scripter Facepalm! Raffle Winner
    rochet2.github.io - Home of great codes

  7. The Following User Says Thank You to Rochet2 For This Useful Post:


  8. #6
    Original Poster
    Respected Member kusanagy's Avatar
    Join Date
    Mar 2014
    Posts
    79
    XP
    2,910
    Level
    15
    Thanks
    22
    Thanked 5 Times in 4 Posts
    can you check my Scripts? please.
    MiscHandler.cpp ----> http://pastebin.com/GzKawR6h
    ScriptMgr.cpp ------> http://pastebin.com/RLFYNpXW
    ScriptMgr.h --------> http://pastebin.com/S7Ax6x3G

    all right, I do not understand what is wrong.
    I think the mistake is because Eluna contains Item * item
    your what you applied in TrinityCore (No eLuna)

    thanks.!

  9. #7
    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
    FYI. recently I made an update to Eluna so that it has both the C++ API as well as the Lua capability to do gossip menus.
    What this means is that you no longer need the separate patch for C++ player gossip.
    If you have any problems, try reverting back to what Eluna has currently instead of your own created code. It has been tested and working.

    Did you try what I said before? What was the result?
    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
  •