• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore 3.3.5 Error with Player Gossip Item.

kusanagy

Respected Member
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.
 

Tommy

Founder
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.
 

kusanagy

Respected Member
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.
 

Rochet2

Moderator / Eluna Dev
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.
 

Rochet2

Moderator / Eluna Dev
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?
 

Rochet2

Moderator / Eluna Dev
That sounds like an issue with your script attached to the item.
The menu is the most important thing.

All item gossip does is give you the possibility to execute code on a specific event.
After that anything related to showing a menu or adding items to a menu is made by your script.
 
Top