PDA

View Full Version : can someone give me some more info on these commands.


mwmdragon
03-19-2005, 07:41 PM
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

Cisyouc
03-20-2005, 02:49 AM
can someone give me some more info on these commands.

quest::zone - does this zone the owner of the quest ?
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.

quest::shout2 - how does this differ from quest::shout ?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.

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.

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

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

Also is there a language integer list ? to be used with quest::setlanguage ? 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");

mwmdragon
03-20-2005, 05:48 AM
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 ?

Cisyouc
03-20-2005, 07:50 AM
It makes it so the melee class that trains it can use it and appears in their disc window.

fathernitwit
03-20-2005, 09:52 AM
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:

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