PDA

View Full Version : TrinityCore 3.3.5 Error with Player Gossip Item.



kusanagy
09-24-2016, 10:27 AM
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.

slp13at420
09-24-2016, 03:10 PM
any customizations?
can you post the whole error message?

Tommy
09-24-2016, 05:51 PM
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
09-24-2016, 08:57 PM
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
09-24-2016, 09:33 PM
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.

kusanagy
09-25-2016, 03:05 AM
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.!

Rochet2
09-25-2016, 08:10 AM
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?

kusanagy
09-25-2016, 06:06 PM
If clear, try a Custom item and only shows me the menu but does not give option.

Rochet2
09-25-2016, 06:34 PM
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.