Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2007, 01:48 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default 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.
Reply With Quote
  #2  
Old 08-23-2007, 02:30 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

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... >.<
Reply With Quote
  #3  
Old 08-24-2007, 12:32 AM
Theeper
Discordant
 
Join Date: May 2004
Posts: 290
Default

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.
Reply With Quote
  #4  
Old 08-24-2007, 12:32 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

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.
Reply With Quote
  #5  
Old 08-24-2007, 12:41 PM
Breea
Banned
 
Join Date: Aug 2007
Posts: 28
Default

basically handing him 9997-9999 and 55623 does nothing but he eats the item.
Reply With Quote
  #6  
Old 08-26-2007, 02:32 AM
lanileb
Sarnak
 
Join Date: Jul 2007
Posts: 79
Default

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.
Reply With Quote
  #7  
Old 08-26-2007, 04:05 AM
BWStripes
Sarnak
 
Join Date: Jun 2007
Location: Finland
Posts: 65
Default

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?
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 11:01 AM.


 

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