PDA

View Full Version : Quest Problems (Another Items Event Problem....)


morgklor
10-17-2003, 05:04 AM
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
if ($item0 == "1001")


should be:


if ($item1 == "1001")


$item0 isn't valid


if ($itemcount(1001) == 1)


should be


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