y is this not working return item
Code:
sub EVENT_ITEM i have tried it 4 diff ways he takes the item if you have the quest and gives it back if you give him the wrong item he gives it back but if you give him the quest item and you have already don't the quest or are not at this point yet he will not give it back. with the way it is above he don't even say anything just takes the item if you don't have the quest. whats up? |
i got it
Code:
sub EVENT_ITEM |
Nice, i was about to reply but you fixed it yourself before i could get it posted
|
Perhaps a better way to write that would be the following:
Code:
sub EVENT_ITEM { I haven't tested this, but I think it should work. You might have to adjust it slightly to get it working in case I missed something. But, this should probably be the best way to do it. The only part I am not sure about is all of the elses for returning items. You might not need all of them. I have had issues in the past where it will do all of the elses for some reason, when I think it should really only be doing 1 of them. You can tell if that is happening easily by testing to see if you get multiple return messages. If that happens, you should be able to just remove some of the quest::say's in the else returns. I also wanted to mention that I changed the format so that it is easier to read. It is hard to tell what is going on when all of the brackets are on the left side and all of the lines are lined up as well. |
All times are GMT -4. The time now is 04:03 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.