Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2005, 07:41 PM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default can someone give me some more info on these commands.

can someone give me some more info on these commands.

quest::zone - does this zone the owner of the quest ?

quest::shout2 - how does this differ from quest::shout ?

quest::addldonpoints - i have ldon but have never used it.. what does this do?

quest::traindisc - Any clue on what this does or where i get the tomeIDs ?

quest::scribespells - does this scribe all level spells for the character?

Also is there a language integer list ? to be used with quest::setlanguage ?


Thanks
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com

Last edited by mwmdragon; 03-20-2005 at 04:56 AM..
Reply With Quote
  #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
  #3  
Old 03-20-2005, 05:48 AM
mwmdragon's Avatar
mwmdragon
Discordant
 
Join Date: Apr 2003
Location: Winnipeg, Manitoba Canada
Posts: 270
Default .

This is great !!

but one little snag...

that does quest::traindisc do ? I know what the iDs are I just figureed there might be a static list sort of like languages.

So what does quest::traindisc do ?
__________________
Thanks
MWMDRAGON

NeverQuest
http://neverquest.gotdns.com
Emucade
http://dragonsden.emuunlim.com
Reply With Quote
  #4  
Old 03-20-2005, 07:50 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

It makes it so the melee class that trains it can use it and appears in their disc window.
__________________
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
  #5  
Old 03-20-2005, 09:52 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

the peq quest pack has every guildmaster up to velious with their proper discipline quests. This hand-in style is good for tomes, and should be used unless somebody writes something better.

traindisc in action:
Code:
sub EVENT_SAY {
 if($text =~ /hail/i) {
	#wrong
	quest::say('Hi, I am the head of the monk guild here.');
 }
}

sub EVENT_ITEM { 
 if($itemcount{18204} == 1){
	quest::summonitem("4190");
	#quest::faction("Not_Found","1");
	#quest::faction("11501","1");
 } else {
	if($class ne 'Monk') {
		quest::say("You are not a member of my guild. I will not train you!");
		quest::summonitem($item1) if($item1);
		quest::summonitem($item2) if($item2);
		quest::summonitem($item3) if($item3);
		quest::summonitem($item4) if($item4);
		return;
	}
	#assume it is a discipline tome...
	quest::traindisc($item1) if(quest::isdisctome($item1));
	quest::traindisc($item2) if(quest::isdisctome($item2));
	quest::traindisc($item3) if(quest::isdisctome($item3));
	quest::traindisc($item4) if(quest::isdisctome($item4));
 }
}
#END of FILE Zone:cabeast  ID:2023 -- Grand_Master_Glox
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:15 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3