EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Quests (https://www.eqemulator.org/forums/forumdisplay.php?f=624)
-   -   Quest Problems (Another Items Event Problem....) (https://www.eqemulator.org/forums/showthread.php?t=9840)

morgklor 10-17-2003 05:04 AM

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!")
}
}

10-17-2003 05:55 AM

Is this for a 4.4 server or a 5.0 server. I can help only if its 4.4.

mattmeck 10-17-2003 07:16 AM

$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.

killspree 10-17-2003 10:05 AM

Itemcount works fine on 4.4.

Scorpious2k 10-17-2003 10:23 AM

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

mattmeck 10-17-2003 11:01 AM

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.

morgklor 10-19-2003 11:33 AM

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.....

killspree 10-19-2003 12:04 PM

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.


All times are GMT -4. The time now is 12:17 PM.

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