Newbie armor
nm, its no big deal
|
OMG that's teh uber stuff! I don't think my ranger on live is that well equipped :D
|
Its a good quest conceptually, but there are some syntax errors with it. (Spacing, operators, etc.)
|
thats odd, it works just fine the way it is on my server, I copied and pasted it straight from my .pl ??
|
The main thing im concerned about is ...
Code:
if($text=~/accessories/i && $class == 'ranger') The other thing is the use of &&.. its usually better to have multiple if statements..but thats just the way I would do it :) If you fix your string operators, Ill sticky it :) |
Sorry to bump an old thread but ...
I don't agree with you on using multiple 'if' statements instead of stringing them together. The original code ... Code:
if($text=~/accessories/i && $class == 'ranger') { Code:
if($text=~/accessories/i) { I do agree on the use of proper operators though. In this case, it works because the '==' (numerical equality operator) simply converts the text to it's ascii value and compares the two values. Since any text with the same ascii values will be the same text, the operation works. However, you should get in the practice of using operaters that match the variable type. |
Well im not sure what kind of perl youve been writing but 1 you dont use multiple if statements it eats processing time and interpretation time firslty secondly ive been writing perl for well over 13 years now and have written several major chat systems in perl there is NOTHING wrong with using && or || Infact THOSE are the standard of the industry. simply because you prefer a ceratin style of coding does NOT mean they are the accepted standard infact in this case you are plain wrong
|
Quote:
I will say that you are the one who is wrong Coleshadowblades. He never said it was the accepted standard. In fact, he just said it's the way he does it. There are times when you MUST use multiple nested 'if' statements. Some logic dictates it and there is no way to duplicate it by stringing the conditionals together. Anyone with any coding experience will know this. Also, the overhead difference in stringing conditionals versus nesting them is insignificant in this scope. AFAIK, the only real overhead is simply because there are more lines to parse. You make chat programs in PERL ? ... huh? ... wtf ... why? Lastly, I can't stand people who point out other's mistakes when they have no sense of spelling, punctuation or grammar. Of course, that's just my opinion. |
because genius they are webbased ( MOST Webbased chats are written in perl or phpo dipshit!) amazing how far a little research will take you
|
I thought this thread was about Newbie Armor. . . . Maybe I was mistaken.
|
Quote:
all 3 of these people post from the same IP, exact same. Chill now with the insults or it will be an IP ban. |
I just wanted to make it known that I am not Coleshadowblades or demondesignz nor do I hold the same views or opinions as him. I have spoken with Mattmeck regarding this and will be clearing it all up. Thank you.
|
Now to clear things up no I will not be posting on these forums again for any reason this will be My last and final post here. No I am not sesmar. And no worries As Stated I will not be posting anything else on these forums good bad or indifferent.
|
Quote:
|
All times are GMT -4. The time now is 07:17 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.