Perl Script Question
How do I do an or statement here:
if($wp eq 55) { quest::SetRunning(1); } My attempt: if($wp eq 55) or ($wp eq 117) { quest::SetRunning(1); } Celestial |
When comparing numbers make sure to use ==
When comparing strings is when you use eq When doing an OR its || Code:
if($wp == 55 || $wp == 117) { |
Thank you sir! Slowly learning a little Perl =)
Celestial |
One more question. Would I call AddEXP() as a quest function:
quest::AddEXP(500); Celestial |
Are you using he WIKI?
It really helps for referencing things for people that are learning. http://wiki.eqemulator.org/p?Ultimat...rence&frm=Main quest::exp(amount); or $client->AddEXP(add_exp, conlevel, resexp); |
I was using the wiki, but I was not sure in this case to use quest or $client.
I am just learning to script. I appreciate the help! Celestial |
A lot of quest:: functions are redundant with the $client ect point functions.
|
All times are GMT -4. The time now is 04:03 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.