I want quest in english but other languages also
Just a simple question about quests.
All quest are in the Quests directory, but i search how i can localise the quest. After you can choose your language and the quest answer with this language. Anyone have a perl idea for make that plz ? |
?
Quote:
|
My english is very poor (sorry snif)
I don't search translate web site but one idea for my player A perl code for choose if the player have quest in english or other language :) I search how localised the quest :) |
That is a cool idea. Perhaps a new function to check a language field in your database and return the result to perl. And a command in commands.cpp/.h to set that field in the database.
Good luck |
Well, you could just add a player command ( a # comamand, like #locale [fr/en/es/etc]) that allows you to change your locale by manually adding a quest global, and then in your quests just have like..
if ($locale eq 'fr') { french.. } elsif ($locale eq 'en') { english.. } |
Hey Belfedia, if you tell me what version of EQEmu you're using I'd be happy to write it up really quick. Send me an email: admin@awhiteflame.net.
|
Quote:
Any help is welcome for write this locale stuff :) |
I understand how that work :)
I need to find a C++ coder for the command #locale now :) thks all for help. |
you should be able to do this entirely in perl...
the best way I can say to do it is this.. make a directory on your server named 'locales' somewhere, let the path be /home/eqemu/locales. Make it writeable by the user running eqemu. use a perl command like (check this syntax, im winging it): Code:
sub commands_init() { Code:
then you can write a quest like: Code:
sub EVENT_SAY { [/code] |
Thanks i try it :)
Quote:
what is acces ? |
status required to use it, pass 0
|
Nice, but say i'm use a unitialized value in concatenation (.) or string in commands.pl
Code:
open(F, ">/home/eqemu/locales/$name"); i try to add a print "$name"; and i have same error on it. |
oops..
add Code:
my $name = $client->GetName(); |
Thats work very fine !!!
MANY thanks (one more !!!) Now i try to find a (book/tradeskills) solution :) |
All times are GMT -4. The time now is 09:53 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.