Likes: 0
Results 11 to 17 of 17
Thread: MiscNPC
-
10-09-08, 12:10 AM #11
Register to remove this ad@ alex just look in GossipScripts and find setup.h and setup.cpp. in setup.cpp find SetupGuardGossip(mgr); and the part in red you can change to the script name in this case its MiscNPC and open setup.h and find void SetupGuardGossip(ScriptMgr * mgr); and again you may change that to the name.
› See More: MiscNPC
-
10-09-08, 06:25 PM #12
i got likee 14 errors with compleing it xD
3>..\src\GossipScripts\MiscNPC.cpp(64) : error C2043: illegal break
3>..\src\GossipScripts\MiscNPC.cpp(66) : error C2046: illegal case
3>..\src\GossipScripts\MiscNPC.cpp(79) : error C2043: illegal break
3>..\src\GossipScripts\MiscNPC.cpp(81) : error C2046: illegal case
3>..\src\GossipScripts\MiscNPC.cpp(82) : error C2065: 'plr' : undeclared identifier
3>..\src\GossipScripts\MiscNPC.cpp(82) : error C2227: left of '->SaveToDB' must point to class/struct/union/generic type
3> type is ''unknown-type''
3>..\src\GossipScripts\MiscNPC.cpp(85) : error C2059: syntax error : 'break'
3>..\src\GossipScripts\MiscNPC.cpp(87) : error C2059: syntax error : 'case'
3>..\src\GossipScripts\MiscNPC.cpp(88) : error C2447: '{' : missing function header (old-style formal list?)
3>..\src\GossipScripts\MiscNPC.cpp(104) : error C2059: syntax error : 'break'
3>..\src\GossipScripts\MiscNPC.cpp(107) : error C2059: syntax error : 'case'
3>..\src\GossipScripts\MiscNPC.cpp(108) : error C2447: '{' : missing function header (old-style formal list?)
3>..\src\GossipScripts\MiscNPC.cpp(118) : error C2059: syntax error : 'break'
3>..\src\GossipScripts\MiscNPC.cpp(120) : error C2059: syntax error : 'case'
3>..\src\GossipScripts\MiscNPC.cpp(121) : error C2447: '{' : missing function header (old-style formal list?)
3>..\src\GossipScripts\MiscNPC.cpp(367) : error C2061: syntax error : identifier 'MiscNPC'
Msn: [email protected]
-
11-09-08, 12:47 AM #13
-
11-09-08, 07:08 AM #14
Msn: [email protected]
-
11-09-08, 02:14 PM #15
-
11-09-08, 03:11 PM #16
im new to c++ tryin to learn here! lol
Msn: [email protected]
-
24-01-09, 05:09 AM #17
Register to remove this adcase 8: //Explore maps
{
uint32 currentgold = Plr->GetUInt32Value(PLAYER_FIELD_COINAGE);
if(currentgold>15000){ //15 gold
int32 newgold = currentgold - 15000;
Plr->SetUInt32Value(PLAYER_FIELD_COINAGE,newgold);
for (uint8 i=0; i<64; i++)
{
Plr->SetFlag(PLAYER_EXPLORED_ZONES_1+i,0xFFFFFFFF);
}
Plr->BroadcastMessage("Sight has a new meaning");
Plr->Gossip_Complete();
}else{
Plr->BroadcastMessage("Well hurry up! %s I need that money now!");
Plr->Gossip_Complete();
}
}break;