View Single Post
  #2  
Old 03-20-2005, 02:49 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

Quote:
Originally Posted by mwmdragon
can someone give me some more info on these commands.

quest::zone - does this zone the owner of the quest ?
Code:
void QuestManager::Zone(const char *zone_name) {
	if (initiator && initiator->IsClient())
	{
		ServerPacket* pack = new ServerPacket(ServerOP_ZoneToZoneRequest, sizeof(ZoneToZone_Struct));
		ZoneToZone_Struct* ztz = (ZoneToZone_Struct*) pack->pBuffer;
		ztz->response = 0;
		ztz->current_zone_id = zone->GetZoneID();
		ztz->requested_zone_id = database.GetZoneID(zone_name);
		ztz->admin = initiator->Admin();
		strcpy(ztz->name, initiator->GetName());
		ztz->guild_id = initiator->GuildDBID();
		ztz->ignorerestrictions = 3;
		worldserver.SendPacket(pack);
		safe_delete(pack);				
	}
}
Yes, all it does is send a zone packet to the client.
Quote:

quest::shout2 - how does this differ from quest::shout ?
Code:
void QuestManager::shout(const char *str) {
	npc->Shout(str);
}

void QuestManager::shout2(const char *str) {
	worldserver.SendEmoteMessage(0,0,0,13, "%s shouts, '%s'", npc->GetCleanName(), str);	
}
Shout a string, shout2 uses an identical emote. Shout2 will always appear red to the user, Shout will be whatever color the client defines.
Quote:

quest::addldonpoints - i have ldon but have never used it.. what does this do?
Gives you ldon adventure points that you would get after completing an adventure. Works with buying stuff from race 61.
Quote:

quest::traindisc - Any clue on what this does or where i get the tomeIDs ?
tomeID = Item ID of Tome
Quote:

quest::scribespells - does this scribe all level spells for the character?
Code:
QuestManager::scribespells()
Scribespells does not take any parameters, and thus scribes all spells to their level.
Quote:

Also is there a language integer list ? to be used with quest::setlanguage ?
Code:
		c->Message(0, "Languages:");
		c->Message(0, "     (0) Common Tongue");
		c->Message(0, "     (1) Barbarian");
		c->Message(0, "     (2) Erudian");
		c->Message(0, "     (3) Elvish");
		c->Message(0, "     (4) Dark Elvish");
		c->Message(0, "     (5) Dwarvish");
		c->Message(0, "     (6) Troll");
		c->Message(0, "     (7) Ogre");
		c->Message(0, "     (8) Gnomish");
		c->Message(0, "     (9) Halfling");
		c->Message(0, "    (10) Thieves Cant");
		c->Message(0, "    (11) Old Erudian");
		c->Message(0, "    (12) Elder Elvish");
		c->Message(0, "    (13) Froglok");
		c->Message(0, "    (14) Goblin");
		c->Message(0, "    (15) Gnoll");
		c->Message(0, "    (16) Combine Tongue");
		c->Message(0, "    (17) Elder Teir`Dal");
		c->Message(0, "    (18) Lizardman");
		c->Message(0, "    (19) Orcish");
		c->Message(0, "    (20) Faerie");
		c->Message(0, "    (21) Dragon");
		c->Message(0, "    (22) Elder Dragon");
		c->Message(0, "    (23) Dark Speech");
		c->Message(0, "    (24) Vah Shir");
		c->Message(0, "    (25) Unknown1");
		c->Message(0, "    (26) Unknown2");
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote