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

[SOLVED] Help script then updated

Status
Not open for further replies.

nianmc

Emulation Addict
Hi, use google translator , Sorry for my bad English .

I wanted to ask for help to solve this script errors.
http://paste.emudevs.com/?paste=215

Use the latest rev of trinity core

errors

yeha.jpg

thx
 

Tommy

Founder
I don't speak the language the errors are in, however, I viewed the line numbers and as far as I can see the code is missing addition or subtraction signs (not sure which one) on the right of "guildhouseId".

Code:
 player->ADD_GOSSIP_ITEM(ICON_GOSSIP_TABARD, comment, GOSSIP_SENDER_MAIN,
 [COLOR="#00FF00"]guildhouseId[/COLOR]  OFFSET_GH_ID_TO_ACTION);

Code:
 player->ADD_GOSSIP_ITEM(ICON_GOSSIP_BALOONDOTS, MSG_GOSSIP_NEXTPAGE, GOSSIP_SENDER_MAIN,
 [COLOR="#00FF00"]guildhouseId[/COLOR]  OFFSET_SHOWBUY_FROM);
 

nianmc

Emulation Addict
And fix the bug can help me with this ?

Error 2 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : el argumento 1 no puede convertirse de 'const char [59]' a 'uint32' C:\Users\NianMc\Desktop\TrinityCore-3.3.5\src\server\scripts\Custom\guild_house.cpp 83 1 scripts
Error 3 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : el argumento 1 no puede convertirse de 'const char [48]' a 'uint32' C:\Users\NianMc\Desktop\TrinityCore-3.3.5\src\server\scripts\Custom\guild_house.cpp 103 1 scripts
 
Last edited:

Kaev

Super Moderator
Try this:
line 83:
Code:
_creature->Whisper(MSG_NOTINGUILD, player, false);
line 103:
Code:
_creature->Whisper(MSG_NOGUILDHOUSE, player, false);
 
Last edited:

nianmc

Emulation Addict
Error.

Code:
 _creature->Whisper(MSG_NOTINGUILD, player, false);

Code:
 _creature->Whisper(MSG_NOGUILDHOUSE, player, false);

Error 2 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : el argumento 2 no puede convertirse de 'Player *' a 'Language' C:\Users\NianMc\Desktop\TrinityCore-3.3.5\src\server\scripts\Custom\guild_house.cpp 83 1 scripts

Error 3 error C2664: 'void Unit::Whisper(uint32,Player *,bool)' : el argumento 2 no puede convertirse de 'Player *' a 'Language' C:\Users\NianMc\Desktop\TrinityCore-3.3.5\src\server\scripts\Custom\guild_house.cpp 103 1 scripts

http://paste.emudevs.com/?paste=215
 

Tommy

Founder
MonsterWhisper is wrong as you're using a commit past where they last changed "MonsterSay, MonsterYell, MonsterWhisper" to just "Say, Yell, Whisper". You're getting a language error as you aren't supplying the correct arguments. Parameters:

Code:
[URL="https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Entities/Unit/Unit.h#L2168"]Whisper(std::string const& text, Language language, Player* target, bool isBossWhisper = false);[/URL]

So, it should be:

Code:
_creature->Whisper(MSG_NOTINGUILD, LANG_UNIVERSAL, player);

Code:
_creature->Whisper(MSG_NOGUILDHOUSE, LANG_UNIVERSAL, player);

You can view all the Language data types [HERE].
 
Status
Not open for further replies.
Top