I don't see the need to be rude, as I said, I'm new to Perl, I apologize for not knowing everything. But in the saylink, I didn't want him to say "Ring of Armageddon" in purple text and make you click on it, I wanted him to link the item to where you could click on it and see the stats. Like a person linking an item in /ooc and you click on it, except an NPC. But, I guess I can Google it...
Edit: I found the thing it would be "my $roa = quest::varlink(150009);". Thanks to everyone who helped. |
i balance my helpfulness. you were told multiple times how to check your perl script for syntax errors. You apparently never did it based on the errors in the last one you posted.
That said I still fixed your script. What Cary is referring to is your script is horribly long and repetitive with the only thing changing being an incrementing number. That is the classic best case for a FOR loop. your entire check_handin logic section could shrink to about 15 lines of code. |
here's an (untested except for syntax) example of how looping could greatly reduce your code, and due to that, the chance of syntax errors. i added comments directing you to information in the perl documentation (which i sent you links to in my first response) that applies to what i have done here.
Code:
# subroutines covered @ http://perldoc.perl.org/5.12.4/perlsub.html |
This was almost two months ago, no need to necro old posts. ;D
|
if you haven't caught on yet, he's simply parroting exactly what someone else has said in the thread. :p
|
Yeah, I noticed, haha.
|
All times are GMT -4. The time now is 11:11 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.