EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   making npcs talk...Help Plz (https://www.eqemulator.org/forums/showthread.php?t=34234)

Shadow33 09-23-2011 10:06 PM

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

Expletus 09-24-2011 12:05 PM

Post your script. If it's not responding, then you have something wrong in the code.

saarr 09-24-2011 12:33 PM

did you reload the quests after saving the quest while in game? its #reloadpl i think to reload quests and plugins.

Shadow33 09-25-2011 11:08 PM

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);
}

lerxst2112 09-25-2011 11:28 PM

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);
        }
}


Shadow33 09-25-2011 11:55 PM

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

lerxst2112 09-26-2011 12:36 AM

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

These should not have quotes around the numbers, and summonitem should be all lowercase.

Shadow33 09-26-2011 02:33 AM

woooot got it Thanks so much for your help and time.


All times are GMT -4. The time now is 11:02 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.