[Help] Vote Vendor script from Mangos to Trinity

you got it /emoticons/default_wink.png

yep /emoticons/default_smile.png

i got only error :S

I compile it without errors , enable gossip menu on npc , and set script name. But nothing happen , when i spawn npc he dont have nothing…

Anyone can help me?

lololol when i was finished with this script, my script was 1957 lines of code xD

I was trying to make it give an honor or arena points using reward of a currency. But it seems like it doesn’t work so this is what i did.

On the “if (pPlayer->AddItem(item, count))” part:


                        sprintf(str,"Your points are taken and your item is given!!!");

                        pPlayer->MonsterWhisper(str,pPlayer->GetGUID(),true);


							if (item == 43308)

							pPlayer->ModifyHonorPoints(10000);


							if (item == 43307)

							pPlayer->ModifyArenaPoints(200);

I compiled this and i got this 11>…......\TrinityCore\src\server\scripts\Custom\Voterewarder.cpp(40): warning C4018: ‘<’ : signed/unsigned mismatch

i but got it compiled without errors.

Added ScriptName to creature, and it’s not working… Gossip doesn’t open… What’s wrong? and NPCflag=1

Greetings,

Well i like this script to start my c++ experience… But i got some errors when compiling this script… Maybe some1 cn help a bit…

Error :

[FONT=Consolas]10> Voterewarder.cpp[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(10): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(10): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(10): error C2146: syntax error : missing ‘;’ before identifier ’ '[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(10): error C2143: syntax error : missing ‘;’ before ‘public’[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C2146: syntax error : missing ‘;’ before identifier ’ '[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C2146: syntax error : missing ‘;’ before identifier ’ '[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C2146: syntax error : missing ‘;’ before identifier ’ '[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C2146: syntax error : missing ‘;’ before identifier ‘voterewarder’[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(13): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(13): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(13): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(13): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(13): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(13): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(12): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(14): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(14): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(14): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(14): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(15): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(15): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(15): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(15): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C2146: syntax error : missing ‘;’ before identifier ’ '[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C2146: syntax error : missing ‘;’ before identifier ’ '[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C2146: syntax error : missing ‘;’ before identifier ’ '[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C2144: syntax error : ‘void’ should be preceded by ‘;’[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(17): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(18): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(18): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(18): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(18): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(18): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(18): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(18): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(18): error C3646: ’ ’ : unknown override specifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(19): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(19): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(19): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(19): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(19): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(19): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(20): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(20): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(20): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(20): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(20): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(20): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(21): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(21): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(21): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(21): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(21): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(21): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(22): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(22): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(22): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(22): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(22): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(22): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(23): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(23): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(23): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(23): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(23): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(23): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(24): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(24): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(24): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(24): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(24): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(24): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(24): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(24): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(25): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(25): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(25): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(25): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(25): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(25): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(25): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(25): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(26): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(26): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(26): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(26): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(26): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(26): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(26): error C3872: ‘0xa0’: this character is not allowed in an identifier[/FONT]

[FONT=Consolas]10>C:\Trinity\source\src\server\scripts\Custom\Voterewarder.cpp(26): fatal error C1003: error count exceeds 100; stopping compilation[/FONT]

[SIZE=12px][FONT=Consolas]Thx in advance…[/FONT][/SIZE]

[SIZE=12px][FONT=Consolas]MAiki[/FONT][/SIZE]