Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-23-2011, 10:06 PM
Shadow33
Fire Beetle
 
Join Date: Aug 2011
Posts: 29
Default making npcs talk...Help Plz

ok im tring to get my newly made npc to reply to hails and show what i put in im using the quest tool but isnt saving it
Reply With Quote
  #2  
Old 09-24-2011, 12:05 PM
Expletus
Hill Giant
 
Join Date: Jan 2010
Location: Baltimore Maryland
Posts: 152
Default

Post your script. If it's not responding, then you have something wrong in the code.
__________________
Expletus / Volgar
Reply With Quote
  #3  
Old 09-24-2011, 12:33 PM
saarr
Fire Beetle
 
Join Date: Jul 2011
Posts: 11
Default

did you reload the quests after saving the quest while in game? its #reloadpl i think to reload quests and plugins.
Reply With Quote
  #4  
Old 09-25-2011, 11:08 PM
Shadow33
Fire Beetle
 
Join Date: Aug 2011
Posts: 29
Default

ok here is my Script im wanting to hand in 4 items and then be giving my quest item.........Problem is not getting reply to hail and my link wouldnt work to next phase ect...

sub EVENT_SAY
{

my $RatLord = quest::saylink("Rat Lord");

if($text=~/Hail/i)
{
plugin::Whisper("Hi there $name,We have a big rat problem here in the mines,one of my guards went deep in the mine and spotted a [$Rat Lord] the guard said he was big and powerful he ran befor The Beast could get him.");
}
elsif($text=~/Rat Lord/i)
{
plugin::Whisper("Yes, The Rat Lord is said to be the Leader of these Rats could you step forth and kill him and bring me 4 Rat Lord Skulls? I will Give you nice Charm in return.");
}

if ($item1== 299999 && $item2== 299999 && $item3== 299999)
{

sub EVENT_ITEM {
if(plugin::check_handin(\%itemcount,299999 => 4)) {
quest::say("Good Job Young of being a great scaled mystic. ");
quest::SummonItem("59943");
quest::givecash("5","10","15","20");
quest::exp(500);
}
Reply With Quote
  #5  
Old 09-25-2011, 11:28 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,743
Default

Try this, and check the item ID you are expecting them to turn in. 299999 is most likely wrong.

Code:
sub EVENT_SAY
{
	my $RatLord = quest::saylink("Rat Lord");

	if($text=~/Hail/i)
	{
		plugin::Whisper("Hi there $name,We have a big rat problem here in the mines,one of my guards went deep in the mine and spotted a [$RatLord] the guard said he was big and powerful he ran before The Beast could get him.");
	}
	elsif($text=~/Rat Lord/i)
	{
		plugin::Whisper("Yes, The Rat Lord is said to be the Leader of these Rats could you step forth and kill him and bring me 4 Rat Lord Skulls? I will Give you nice Charm in return.");
	}
}

sub EVENT_ITEM 
{
	if(plugin::check_handin(\%itemcount,299999 => 4)) 
	{
		quest::say("Good Job Young of being a great scaled mystic. ");
		quest::SummonItem("59943");
		quest::givecash("5","10","15","20");
		quest::exp(500);
	}
}
Reply With Quote
  #6  
Old 09-25-2011, 11:55 PM
Shadow33
Fire Beetle
 
Join Date: Aug 2011
Posts: 29
Default

Thanks all works but no item giving on hand in have check all ids and fixed them just tring to find my error on return item
Reply With Quote
  #7  
Old 09-26-2011, 12:36 AM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,743
Default

quest::summonitem(59943);
quest::givecash(5,10,15,20);

These should not have quotes around the numbers, and summonitem should be all lowercase.
Reply With Quote
  #8  
Old 09-26-2011, 02:33 AM
Shadow33
Fire Beetle
 
Join Date: Aug 2011
Posts: 29
Default

woooot got it Thanks so much for your help and time.
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 04:02 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3