So_1337
06-06-2007, 03:08 AM
Hey folks. I recently got a big batch of log files and have been sifting through all the aggro speak and such for NPCs. Here's a quick example:
Roror says 'Dark Elves like you are better left dead than alive.'
Roror says 'It's Dark Elves like you who have ruined your own lands, You'll not ruin mine!'
Roror says 'You ssssshall know the horror of Cazic-Thule!'
a lizardman watcher says 'Errrrrr. Die soft skin!'
Basher Sklama says 'I shall pluck you limb from limb!!'
Basher Sklama says 'Shadow Knights like you always bring out the worst in me.'
Basher Sklama says 'Those who play with da Basher always gets bashed good!!'
a spectre says 'Areeeeewwwww'
a spectre says 'I really hate Necromancers like you.'
What I'm curious of is how to make the phrases come out correctly. I can get the singular race or class just fine (Necromancer, Dark Elf, etc.), but is there a special variable that can be used for plurals? "Dark Elves", etc. If not, I guess I'll just write some long work-around using variables. $npc->CastToClient()->GetBaseRace() and then a list of all the races and what they should come out to be plural. Then store those in variables and plug it into the quest::say... But that seems like such a long way to go to make something that should be simple work :P
That's why I'm asking for ideas :) Thanks for any help, guys and gals.
Roror says 'Dark Elves like you are better left dead than alive.'
Roror says 'It's Dark Elves like you who have ruined your own lands, You'll not ruin mine!'
Roror says 'You ssssshall know the horror of Cazic-Thule!'
a lizardman watcher says 'Errrrrr. Die soft skin!'
Basher Sklama says 'I shall pluck you limb from limb!!'
Basher Sklama says 'Shadow Knights like you always bring out the worst in me.'
Basher Sklama says 'Those who play with da Basher always gets bashed good!!'
a spectre says 'Areeeeewwwww'
a spectre says 'I really hate Necromancers like you.'
What I'm curious of is how to make the phrases come out correctly. I can get the singular race or class just fine (Necromancer, Dark Elf, etc.), but is there a special variable that can be used for plurals? "Dark Elves", etc. If not, I guess I'll just write some long work-around using variables. $npc->CastToClient()->GetBaseRace() and then a list of all the races and what they should come out to be plural. Then store those in variables and plug it into the quest::say... But that seems like such a long way to go to make something that should be simple work :P
That's why I'm asking for ideas :) Thanks for any help, guys and gals.