$race related
Hello,
I'm pretty new at quest scripting and i've looked for $race in the search forum but I did not find the solution at my problem. I'm just trying to get a npc to say the race of the player that hails him... pretty simple you say me... probably not for me... Code:
sub EVENT_SAY Can someone help me please? thx by advance |
Re: $race related
Quote:
Code:
sub EVENT_SAY |
and preferably use
Code:
"aaa" eq $race |
Quote:
|
Hello Cisyouc and thanks for your answer. I've tried your script but it always returns me 'Your are a human' even if I m an other race (just tested whit a dark elf)
|
Quote:
Code:
sub EVENT_SAY |
Neither, but i've just got it to work. (tried eq as smogo said)
Here's my modified code: Code:
sub EVENT_SAY |
Quote:
|
Ok, now for Dark Elf (example).
Here is the code: Code:
sub EVENT_SAY The error in the zone.exe is: Message: Hail, evil side representant [Status] Script error: qst76::EVENT_SAY - Perl runtime error: Can't locate object method "Dark" via package "Elf" (perhaps you forgot to load "Elf"?) at (eval 29) line 9. Now, let's try Code:
if ($race eq Dark_Elf) Sigh... now, let's try Code:
if ($race eq "Dark Elf") Thanks for the help guys, Mag |
All times are GMT -4. The time now is 02:26 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.