Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Quests

Archive::Quests Archive area for Quests's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2003, 05:04 AM
morgklor
Fire Beetle
 
Join Date: Oct 2003
Posts: 5
Default Quest Problems (Another Items Event Problem....)

Could someone please tell me why this script doesn't work? The NPC talking works just fine....but the zone crashes when I hand in the item i've tried both of the following:

EVENT_SAY{
if($1- =~ "Hail")
{
say("Hello $name! How are you? Might I as you to [help] me?")
}
if($1- =~ "help")
{
say("Thank you for your interest. Please Collect For Me a Cloth Cap")
}
}
EVENT_ITEM{
if ($item0 == "1001")
{
say("Thank You Very Much!")
}
}
---------------------------------------------------------------------------------
EVENT_SAY{
if($1- =~ "Hail")
{
say("Hello $name! How are you? Might I as you to [help] me?")
}
if($1- =~ "help")
{
say("Thank you for your interest. Please Collect For Me a Cloth Cap")
}
}
EVENT_ITEM{
if ($itemcount(1001) == 1)
{
say("Thank You Very Much!")
}
}
Reply With Quote
  #2  
Old 10-17-2003, 05:55 AM
Guest
 
Posts: n/a
Default

Is this for a 4.4 server or a 5.0 server. I can help only if its 4.4.
Reply With Quote
  #3  
Old 10-17-2003, 07:16 AM
mattmeck
Guest
 
Posts: n/a
Default

$itemcount dose NOT work. that is the first thing i notice.

also after the item turn in you close it, the have him say somthing, he isnt going to say anything because you didnt tell him when to that could break it and cause it to crash too.
Reply With Quote
  #4  
Old 10-17-2003, 10:05 AM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

Itemcount works fine on 4.4.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
Reply With Quote
  #5  
Old 10-17-2003, 10:23 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default Re: Quest Problems (Another Items Event Problem....)

Quote:
Originally Posted by morgklor
if ($item0 == "1001")
should be:

Code:
if ($item1 == "1001")
$item0 isn't valid

Quote:
if ($itemcount(1001) == 1)
should be

Code:
if ($itemcount("1001") == 1)
almost all parameters have to be in quotes
__________________
Maybe I should try making one of these servers...
Reply With Quote
  #6  
Old 10-17-2003, 11:01 AM
mattmeck
Guest
 
Posts: n/a
Default

We tried to get itemcount functional on RA and were told it wasnt implimented with 4.4 cause they forgot. there is a fix for it but for those of us who cant compile it dont work for 4.4.
Reply With Quote
  #7  
Old 10-19-2003, 11:33 AM
morgklor
Fire Beetle
 
Join Date: Oct 2003
Posts: 5
Default OOPS Forgot Details

Okay, I'm running a 4.4 Server (Didn't Compile it Myself). None of the quest for handing in items works......even the ones shipped with the server....they all talk...but all crash when an item i handed in (even the soul-binder).

here is the last attempt at the same script:

EVENT_SAY {
if($1- =~ "Hail") { say("Hello $name! How are you? Might I as you to [help] me?") }
if($1- =~ "help") { say("Thank you for your interest. Please Collect For Me a Cloth Cap") }
}
EVENT_ITEM {
if ($item1 == "1001") { say("Thank You Very Much!") }
}


What am I doing wrong...I know it has to be something simple.....
Reply With Quote
  #8  
Old 10-19-2003, 12:04 PM
killspree
Dragon
 
Join Date: Jun 2002
Posts: 776
Default

There was a trading bug in 4.4 that caused crashed, that's probably what's causing your crashes, not the item hand-in code in quests.
__________________
Xeldan
Lead Content Designer
Shards of Dalaya
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 05:16 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