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 04-18-2009, 08:41 AM
Killeverything
Fire Beetle
 
Join Date: Mar 2009
Location: USA
Posts: 27
Default

Hi all again

sorry to do this but I need some help I have the quest all done but the last turn ins
here is what I have going I have A NPC in pok that need to get back his necklace and the player has to go and talk to 5 other Npc in order to get it back.

sub EVENT_SAY {

if ($text=~/Hail/i){
quest::say("Greetings $name. Would you like me to craft some [armor] for you? ");
}

if ($text=~/armor/i){
quest::say("Yes I have some very nice armor here for you, But you will have to do something for me first. I need you to go and help out Ariel in Qeynos she has the necklace maybe by helping her you can get it");
quest::setglobal("newquesta", 1, 5, "F");
quest::setglobal("newquestb", 1, 5, "F");
quest::setglobal("newquestc", 1, 5, "F");
quest::setglobal("newquestd", 1, 5, "F");
quest::setglobal("newqueste", 1, 5, "F");
}
}



sub EVENT_ITEM {
## Here I am wanting it to do the final turn in and have it check to make sure that the quest id done
if ((plugin::check_handin(\%itemcount, 1096 => 1)&& ($qglobals{newqueste} == 2){
quest::say("listens eagerly to your tales of the Norrath. And everything you have seen and the people you have talked to! Now here is your armor. You are ready to take on the world ");



## here after the check I have set the reward for each class
if($class eq 'Shadowknight')
{quest::summonitem("7869");#chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("86870");#wep
quest::summonitem("31359");#hands-shield
quest::summonitem("26025");#head
}
elsif ($class eq "Berserker")
{quest::summonitem("55495");#chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("22906");#wep
quest::summonitem("51266");#hands
quest::summonitem("26025");#head
}
elsif ($class eq "Ranger")
{quest::summonitem("51272"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("22904");#wep
quest::summonitem("25201");#hands
quest::summonitem("26025");#head
}
elsif ($class eq "Bard")
{quest::summonitem("7869");#chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("22904");#wep
quest::summonitem("25201"); #hands
quest::summonitem("26025");#head
}
elsif ($class eq "Rogue")
{quest::summonitem("31371"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("22904");#wep
quest::summonitem("25201");#hands
quest::summonitem("26025");#head
}
elsif ($class eq "Paladin")
{quest::summonitem("7869");#chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("86870");#wep
quest::summonitem("19726");#hands-shield
quest::summonitem("26025");#head
}
elsif ($class eq "Monk")
{quest::summonitem("24839"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("22904");#wep
quest::summonitem("25201");#hands
quest::summonitem("26025");#head
}

elsif ($class eq "Beastlord")
{quest::summonitem("24839"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("27018");#wep
quest::summonitem("69229");#hands
quest::summonitem("26025");#head
}

elsif ($class eq "Warrior")
{quest::summonitem("7869"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("22904");#wep
quest::summonitem("19726");#hands
quest::summonitem("26025");#head
}

elsif ($class eq "Cleric")
{quest::summonitem("7869"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("26554");#wep
quest::summonitem("19726");#hands-shield
quest::summonitem("29648");#head
}

elsif ($class eq "Druid")
{quest::summonitem("4573"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("22824");#wep
quest::summonitem("19726");#hands-shield
quest::summonitem("29648");#head
}

elsif ($class eq "Shaman")
{quest::summonitem("25044"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("26566");#wep
quest::summonitem("26533");#hands-shield
quest::summonitem("29648");#head
}

elsif ($class eq "Enchanter"){quest::summonitem("7584");#chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("5816");#wep
quest::summonitem("25098");#hands-shield
quest::summonitem("29648");#head
}

elsif ($class eq "Magician"){quest::summonitem("7584"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("5816");#wep
quest::summonitem("25098");#hands-shield
quest::summonitem("29648");#head
}

elsif ($class eq "Necromancer"){quest::summonitem("7584"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("5816");#wep
quest::summonitem("25098");#hands-shield
quest::summonitem("29648");#head
}

elsif ($class eq "Wizard"){quest::summonitem("7584"); #chest
quest::summonitem("7870");#ring
quest::summonitem("7871");#boot
quest::summonitem("8288");#sleeves
quest::summonitem("8289");#Leggings
quest::summonitem("5816");#wep
quest::summonitem("25098");#hands-shield
quest::summonitem("29648");#head
}
}
## here I was tiring to give a response if the the quest if not done
elsif($qglobals{newquesta} == 1){
quest::say("Yes, $name! I've told you what to do already!");
}




}




I have the first part done and it is working but then it ether doesn't give the reward or it does but then it reset the global quest back to 1 so that could do it again

thank you for you help
Reply With Quote
  #2  
Old 04-18-2009, 08:56 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default

Mind your parentheses
Reply With Quote
  #3  
Old 04-19-2009, 10:32 AM
Killeverything
Fire Beetle
 
Join Date: Mar 2009
Location: USA
Posts: 27
Default

ok now I seem to have something wrong because it is not checking the Qglobal to make sure that the quest is done. what is wrong with this line ?

if(($text=~/reward/i) && $newquestf == 2) {
quest::say("listens eagerly to your tales of the Norrath. And everything you have seen and the people you have talked to! Now here is your armor. You are ready to take on the world ");
}

I am pulling all my hair trying to get this working
Reply With Quote
  #4  
Old 04-19-2009, 02:27 PM
Killeverything
Fire Beetle
 
Join Date: Mar 2009
Location: USA
Posts: 27
Default

Wow now that was fun .....but I got it ......thanks again for the info ....I hope to be able to put it to good use
Reply With Quote
  #5  
Old 04-20-2009, 10:25 AM
Killeverything
Fire Beetle
 
Join Date: Mar 2009
Location: USA
Posts: 27
Default Spawn NPC

Hi all again

I have been running into a problem when i try to spawn a quest npc if I do a npc of the standard races then no problems but if I try to spawn a mob like a rockhopper then it always come back as a human. Even when I try to spawn a hopper in Dawnshroud Peaks here is the command I am using
#spawn Very_Old_Rockhopper 200 45 1 5000 0 1

am i doing something wrong ??

thank you for the help
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:36 PM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3