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!") } } |
Is this for a 4.4 server or a 5.0 server. I can help only if its 4.4.
|
$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. |
Itemcount works fine on 4.4.
|
Re: Quest Problems (Another Items Event Problem....)
Quote:
Code:
if ($item1 == "1001") Quote:
Code:
if ($itemcount("1001") == 1) |
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.
|
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..... |
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.