EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bug Reports (https://www.eqemulator.org/forums/forumdisplay.php?f=591)
-   -   Players Learning Languages from NPCs (https://www.eqemulator.org/forums/showthread.php?t=28635)

pfyon 06-19-2009 07:01 PM

Players Learning Languages from NPCs
 
I think I found a bug that occurs when a PC learns a language from an npc.

Basically it seems if a player learns a language from an npc, zones, and hears it again from an npc, the language isn't garbled at all.

It shows up in their skills list as well.

I'm not sure if this occurs only when the player can't learn the language (either due to level or class/race constraints), or with any language they haven't learned.

Here's the script for the mob:
Code:

#Orc chit-chat
#Revised Angelox 10-23-06
#zone: Crushbone

# Orcish
my $lang = 19;

sub EVENT_COMBAT
{
        $rand = rand();
        if(($rand < .3)&&($combat_state == 1))
        {
                quest::say("Death!!  Death to all who oppose the Crushbone orcs!!",$lang);
        } elsif(($rand > .67)&&($combat_state == 1))
        {
                quest::say("Hail, Emperor Crush!!",$lang);
        } elsif(($rand >= .3)  && ($rand <= .67)&&($combat_state == 1))
        {
                quest::say("Fall before the might of Clan Crushbone!!",$lang);
        }
}

sub EVENT_ATTACK
{
        quest::say("Centurions!!  Legionnaires!!  Come join the fight!",$lang);
}


sub EVENT_DEATH
{
        quest::say("You shall have all the Crushbone orc legions on your tail for my death!",$lang);
}

And what the player sees:

Code:

orc centurion says,in an unknown tongue, 'You shall have all the Crushbone orc legions on your tail for my death!'
The mob is speaking orcish and the player is a high elf mage with a skill of 3 in orcish, which he learned from the mobs, not a trainer.

pfyon 06-19-2009 07:07 PM

Wow, I'm dumb. I had forgotten I turned on gm on that char so I didn't get killed while testing.

With gm off it seems just fine (though still can't identify the language, that happens at higher skill levels, right?).

ChaosSlayerZ 06-19-2009 07:35 PM

they way i remember it, once your skill in language got to a certain point - even very low - the text would stil be garbled cuase you have long way to go to understand it, BUT you would at least know what language is been spoken.

realityincarnate 06-19-2009 07:59 PM

If it makes you feel any better, when I was working on the npc language stuff, I spent about four hours trying to figure out why one of my characters (the gm one, of course) could understand everything but it worked fine for everyone else.

And I think it's a skill of 25 that lets you identify the language.


All times are GMT -4. The time now is 12:06 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.