EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Check_handin (https://www.eqemulator.org/forums/showthread.php?t=36510)

c0ncrete 02-19-2013 12:12 PM

oops. i double posted as well. sheesh....

c0ncrete 02-19-2013 12:13 PM

this should fix it.

Code:

my $return_count = ( ( scalar keys %itemcount ) - $knife_back );

joligario 02-19-2013 02:08 PM

Just a comment: glancing at the work above, it seems it is getting way more complicated than it should be.

c0ncrete 02-19-2013 02:27 PM

sure, he could very easily have chosen to use generic text (or none at all) when handing the unused items back, but that's pretty boring.

Disorder 02-20-2013 04:40 PM

Sorry for delayed response. Been so busy. I'll take a look at this and let ya know.

Disorder 02-21-2013 01:10 PM

Finally got to test it. I still get this response:

Quote:

[Thu Feb 21 11:09:25 2013] Ragged Jep whispers, 'Oh, Disorder, you already brought my knife back. Thank you though! You can have this one back.'
[Thu Feb 21 11:09:25 2013] Ragged Jep whispers, 'I don't want this. Here, take it back, Disorder.'
Any suggestions, mate? :)

c0ncrete 02-21-2013 02:21 PM

it's the superfluous 'my' before setting $knife_back to 1. that causes $knife_back to have a value of 1 only inside of that block (it's a completely separate instance of the variable, actually). total newbie mistake on my part.


All times are GMT -4. The time now is 09:25 AM.

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