Jump to content

chao93

Members
  • Content Count

    42
  • Joined

  • Last visited

Posts posted by chao93


  1. FAKE_NPC


     

    hi, how to name ID -1 ?

    Map-Server send warning to use ID -1 for my script

     

     

    [Warning]: npc_parseview: Use of numeric NPC view IDs is deprecated and may be removed in a future update. Please use NPC view constants instead. ID '-1' specified in file 'npc/kafras/Custom/relogpayon.txt', line '1'.
    
    pay_arche.gat,59,125,0    script    Reloj    -1,{
     

     

    Spanish

     cual es el nombre de la id -1?
    el Map-Server me envia un aviso por usar el -1 en my script

    FAKE_NPC


  2.  

    I'm having problems with translations plugin. This is the npc:

     

    prontera,50,50,0	script	NPC_TEST	PORING,{
    	mes "A little " + (Sex == SEX_MALE ? "boy" : "girl") + ". Who are you?";
    	mes "Oh! you are " + strcharinfo(PC_NAME) + ", nice to meet you.";
    	close;
    }
    

    In the example, all the text is included on generated translations file, but the line ", nice to meet you." is not.

     

    It seems like if the strcharinfo command ends the line (even when the conditional boy/girl is all included and reanudates the line).

     

    #: npc/test.txt
    # mes "A little " + (Sex == SEX_MALE ? "boy" : "girl") + ". Who are you?";
    msgctxt "NPC_TEST"
    msgid "A little "
    msgstr ""
    
    #: npc/test.txt
    # mes "A little " + (Sex == SEX_MALE ? "boy" : "girl") + ". Who are you?";
    msgctxt "NPC_TEST"
    msgid "boy"
    msgstr ""
    
    #: npc/test.txt
    # mes "A little " + (Sex == SEX_MALE ? "boy" : "girl") + ". Who are you?";
    msgctxt "NPC_TEST"
    msgid "girl"
    msgstr ""
    
    #: npc/test.txt
    # mes "A little " + (Sex == SEX_MALE ? "boy" : "girl") + ". Who are you?";
    msgctxt "NPC_TEST"
    msgid ". Who are you?"
    msgstr ""
    
    #: npc/test.txt
    # mes "Oh! you are " + strcharinfo(PC_NAME) + ", nice to meet you.";
    msgctxt "NPC_TEST"
    msgid "Oh! you are "
    msgstr ""
    
    

     

     

     

     

    http://imgur.com/gallery/xwuXB

     

    I get the error message,

    unknow option '--generate-translations'

     

    Windows

     

    That is because since commits on Jun 25, 2016 it was moved translations template generator to a plugin and it is now needed to build the plugin to use it. You can build the plugin following this instructions (based on wiki) :

     

    1. Open folder \vcproj-14\

    2. Copy and paste plugin-sample.vcxproj to duplicate it.
    3. Rename file "plugin-sample.vcxproj" to "generate-translations.vcxproj"
    4. Open generate-translations.vcxproj in Notepad++
    5. Find this line:
        <ProjectName>plugin-sample</ProjectName>
    6. Rename 'plugin-sample' to 'generate-translations'
    7. Find this line:
        <TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">generate-translations</TargetName>
    8. Rename sample to generate-translations
    9. Find this line:
        <ClCompile Include="..\src\plugins\sample.c" />
    10. Renae sample to generate-translations
    11. Save changes and close
    12. Open MSVC. Do right-clic on Solution 'Hercules-14'. Select Add -> Existing Project...
    13. Select generate-translations.vcxproj in folder \vcproj-14\
    14. Right-click Hercules-14, Select Build-Solution
    15. Add it to /conf/plugins.conf
    plugins_list: [
        /* Enable HPMHooking when plugins in use rely on Hooking */
        "HPMHooking",     // <-- Uncomment this
        //"db2sql",
        //"sample",
        //"other",
        "generate-translations", // loads generate-translations plugin
    ]

    Thank you! i get sucked this error in week.

    http://imgur.com/4O73d0m

     

    Poedit not allowed new scripting format? "\r"


  3. if not showing,
    Please check your
    accessoryid.lua << your item ID should be == iteminfo.lua View ID == item VIEW ID(item_db.conf) 
    accname.lua << your client side .GRF inside folder NAME should be == accessoryid.accessory_NAME,
    make sure your .GRF got male and female file.  


  4. Do you use mysql for database??
    If yes,

     

    sql_connection: {
        // [iNTER] You can specify the codepage to use in your mySQL tables here.
        // (Note that this feature requires MySQL 4.1+)
        //default_codepage: ""


        // [LOGIN] Is `userid` in account_db case sensitive?
        //case_sensitive: false


        // For IPs, ideally under linux, you want to use localhost instead of 127.0.0.1.
        // Under windows, you want to use 127.0.0.1.  If you see a message like
        // "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)"
        // and you have localhost, switch it to 127.0.0.1
        db_hostname: "localhost" <<------- Edit here!
        db_port: 3306
        db_username: "root"
        db_password: "passtest"
        db_database: "ragnarok"
        //codepage:""
    }

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.