View Single Post
  #10  
Old 05-10-2009, 01:04 PM
Shendare
Dragon
 
Join Date: Apr 2009
Location: California
Posts: 814
Default

I'm really sorry. It was just as I was drifting to sleep last night that I realized, "Bonehead! I didn't give him anything to go on beyond 'It's not working'!"

At any rate, this is my little test .pl file:

felwithea/Exterminator_Valern.pl
Code:
# Exterminator Valern, felwithea

sub EVENT_SAY
{
  my $langName = (
    !defined($langid) ? 'undefined' :
    ($langid < 0) ? 'undefined' :
    ($langid > 26) ? 'undefined' :
    ('Common Tongue', 'Barbarian'   , 'Erudian'    , 'Elvish'      , 'Dark Elvish' , 'Dwarvish'   , 'Troll'   , 'Ogre'          , 'Gnomish',             # 00 - 08
     'Halfling'     , 'Thieves Cant', 'Old Erudian', 'Elder Elvish', 'Froglok'     , 'Goblin'     , 'Gnoll'   , 'Combine Tongue', 'Elder Teir`dal',      # 09 - 17
     'Lizardman'    , 'Orcish'      , 'Faerie'     , 'Dragon'      , 'Elder Dragon', 'Dark Speech', 'Vah Shir', 'Unknown1'      , 'Unknown2')[$langid]); # 18 - 26

  quest::say("Hail, $name! You're speaking $langName ( $langid )!", 3);
}
And this is what I get:

Code:
Current Language is Elvish. (2)
You say, 'Hail, Exterminator Valern'
Exterminator Valern says, in Elvish, 'Hail, Palren! You're speaking Common Tongue ( 0 )!'
Current Language is Elder Elvish. (4)
You say, 'Hail, Exterminator Valern'
Exterminator Valern says, in Elvish, 'Hail, Palren! You're speaking Common Tongue ( 0 )!'
Current Language is Common Tongue. (1)
You say, 'Hail, Exterminator Valern'
Exterminator Valern says, in Elvish, 'Hail, Palren! You're speaking Common Tongue ( 0 )!'
I tried with both the SoF and Titanium client, in case it was an SoF packet thing. Sorry again for the lack of information earlier!

I can try downloading and compiling the most recent rev and trying again. I believe it was Rev488 that I compiled for this run.

- Shendare
Reply With Quote