first quest...
Code:
sub EVENT_SAY when you turn in an item to finish the quest is this the proper code? Code:
{ if($item1==xxxx) EDIT: forgot to mention i purposely left the item# as "xxxx" since i do not run a server of my own and the item does not exist hehe |
It's better to use itemcount
Code:
if ((itemcount{xxxx} == 2)) Nice first quest, keep it up! |
thanks for the input. i was wondering about the itemcount command but i wasnt sure how to use it
i do have one question about it tho...why does it use double parenthesis? |
The only problem I see with your quest is that some of the quest::says are way too long. Each one should be only one sentence, possibly two at most. They can cause problems if they are too long. Just break each one up into multiple quest::says and it will be a lot better. And for your question about parenthesis, it doesn't have to use double ones, thats probably just his coding style and in this case completely unnecessary.
|
Quote:
I think you did good for your first quest.. Quickly skimming it, the large say was the only thing I noticed potentially wrong with it. :wink: |
After all the parsing is done it looks like max chars would be 999.
|
I think if($text~=/Hail/i){ should be if($text=~/Hail/i){,not sure but try it,it is =~,not ~=.
|
Ahh.. You are right cofruben.. I missed that. I keep meaning to throw a comment on the how-to for the perl quests. The one has a lot of them backwards like that in the examples. I made the same mistake with my first quests... :P
|
thanks for all the input. ill keep in mind to make the says shorter and change the ~= to =~
|
Quote:
Code:
((($itemcount{xx} == 2 )) && (($itemcount{xy} == 1))) |
Code:
((($itemcount{xx} == 2 )) && (($itemcount{xy} == 1))) You will notice if you use the parentesis like you have them you will actually see if you turn in item XX without item xy the quest will still execute becuase you have the item XX closing out before the && and it won't need to check, if you however only hand in xy it won't work without XX. Code:
sub EVENT_ITEM Code:
sub EVENT_ITEM Code:
if($text~=/yes/i)quest::say("Wow! Thank you! You will be GREATLY rewarded, this I promise you. The entrance to the cavern is in the Lavastorm Mountains on a narrow rock ledge on the side of a great crater filled with lava. Good luck!");} |
I like that NoNeed idea, and looking at the time I posted that, I was damn tired ... give me a break :(
Heh ... anywho .. |
Quote:
Code:
sub NoNeed { Code:
else { |
All times are GMT -4. The time now is 11:35 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.