EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::General Support (https://www.eqemulator.org/forums/forumdisplay.php?f=598)
-   -   Tutorial Quests eating items (https://www.eqemulator.org/forums/showthread.php?t=23530)

Breea 08-23-2007 01:48 PM

Tutorial Quests eating items
 
We seem to be having a problem with the quests that we added to tutorialb not returning items. We copied a quest from Halas, replaced values and plugged it into tutorialb and it isn't working. The event_item doesn't return anything. We've tried searching both here and the wiki with no luck.

Any help would be much appreciated.

Breea 08-23-2007 02:30 PM

Also, how do you get it to assign a quest as you respond to a npc? Can't seem to find that data anywhere.

Sorry, I just noticed that this should probably be in the quest support forum... >.<

Theeper 08-24-2007 12:32 AM

Not sure what you mean by 'assign a quest'.

Also, it's kinda hard to troubleshoot a script if you don't post the code.

Breea 08-24-2007 12:32 PM

Ok here is what happens...

Quote:

sub EVENT_SAY {
if ($text=~/hail/i){quest::say("Weapons are one of your main forms of combat. And a faster weapon can make the battle go in your favor. While helping out here I found enough stones to sharpen weapons. If youd like I can sharpen your's simply hand it to me."); }
}
sub EVENT_ITEM(){
if (plugin::check_handin(\%itemcount, 9997 => 1)){
quest::say("Here you go $name, may this Tarnished Dagger bid you better fourtuine!");
quest::summonitem(7021);
}
if ($itemcount{9998} => 0){quest::summonitem("5042"); }
if ($itemcount(9999} => 0){quest::summonitem("6030"); }
if ($itemcount{55623} => 0){quest::summonitem("5071"); }
else {
#do all other handins first with plugin, then let it do disciplines
plugin::return_items(\%itemcount);
}
}
The plugin is there and even when using the default and using $item1==12312 they STILL eat the item. I can see the transaction take place in the logs, however the npc's seem not to even respond to the sub EVENT_ITEM. (I tried EVENT_ITEM and EVENT_ITEM() neither works.)

The sub EVENT_SAY works however.

Here is the doozie, in Halas and other older zones I can spawn the mob there, copy the pl file in that zone folder and it works like a charm, just not in tutorialb.

Any ideas? he he.

Breea 08-24-2007 12:41 PM

basically handing him 9997-9999 and 55623 does nothing but he eats the item.

lanileb 08-26-2007 02:32 AM

Could it be that here

Code:

if ($itemcount{9998} => 0){quest::summonitem("5042"); }
if ($itemcount(9999} => 0){quest::summonitem("6030"); }
if ($itemcount{55623} => 0){quest::summonitem("5071"); }

the ($itemcount{9998} => 0) string, shouldn't that be set to 1? I dont really use this format so not sure if thats right or not though.

BWStripes 08-26-2007 04:05 AM

Two things I'd check. First, I'd try replacing your:

Code:

if ($itemcount{9998} => 0){quest::summonitem("5042"); }
if ($itemcount(9999} => 0){quest::summonitem("6030"); }
if ($itemcount{55623} => 0){quest::summonitem("5071"); }

instead using the plugin for each line:

Code:

  if (plugin::check_handin(\%itemcount, 9998 => 1)) {
    quest::say("Here you go $name, may this Tarnished oojamaflip bring you better fourtune!");
    quest::summonitem(5042);
  }

By now, you may have noticed your second item turn-in has a regular bracket around the itemID instead of a curly:
if ($itemcount(9999} => 0)

Should be:
if ($itemcount{9999} => 0)

The quest might throw a bit of a wobbly over the use of 0 as well, surely greater than or equal to one? :)


All times are GMT -4. The time now is 06:09 PM.

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