[Script] Select the types of buff

Discussion in 'External Sites Discussion' started by HALCON DE ORO, Nov 8, 2014.

Share This Page

  1. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    428
    Likes Received:
    142
    You can use either window.location.href to get the current window's link and split it to get the domain or... you can use Game.locale to get the language that the game uses :p
    The rest is just a bunch of if clauses and variables (It's not the best way of doing it but it works w/ 2-3 words to translate)
     
    Last edited: Dec 23, 2014
  2. HALCON DE ORO

    HALCON DE ORO Active Member

    Joined:
    Nov 8, 2014
    Messages:
    33
    Likes Received:
    6
    Tranlate is easy, but the code not xD.
     
    Gandalf Greyhame likes this.
  3. xShteff

    xShteff Well-Known Member

    Joined:
    Jan 18, 2012
    Messages:
    428
    Likes Received:
    142
    I basically gave you the solution. If you did that script, you'll be able to use my hints to translate your script.
     
  4. Gandalf Greyhame

    Gandalf Greyhame Well-Known Member

    Joined:
    Mar 13, 2012
    Messages:
    1,067
    Likes Received:
    124
    This is such a wonderful script! Thank you so much for developing this. As to the translation... I did it the "brute force and ignorance" route. Just wrote the english translations into the script in tampermonkey.
     
    Anny Hudson likes this.
  5. ishubagaria

    ishubagaria Guest

    Asking as a non-developer, is it possible for me to download the script and then edit the script code and translate the necessary parts myself, for personal use only?
     
  6. HALCON DE ORO

    HALCON DE ORO Active Member

    Joined:
    Nov 8, 2014
    Messages:
    33
    Likes Received:
    6
    yes only personal, pls
     
  7. xalita42

    xalita42 Well-Known Member

    Joined:
    Sep 19, 2013
    Messages:
    51
    Likes Received:
    33
    Awesome script! Thank you Halcon
     
    Anny Hudson likes this.
  8. foscock

    foscock The West Team GM Master

    Joined:
    Oct 6, 2011
    Messages:
    173
    Likes Received:
    43
    Nice script Halcon!

    I modified it to include a Language object to replace all of the text. It has English and Spanish translations, and is easy to expand to other languages. Let me know if you want my changes Halcon.
     
  9. Micky12

    Micky12 Well-Known Member

    Joined:
    Mar 29, 2014
    Messages:
    914
    Likes Received:
    104
    Thanks for the script Halcon.
     
  10. Wondertje

    Wondertje Well-Known Member

    Joined:
    Mar 8, 2012
    Messages:
    372
    Likes Received:
    31
    This really is an amazing script, and I've now translated it myself for personal use. Thanks again :)

    EDIT: I also removed the title/category that doesn't contain any items, mostly 'cause it's empty and I don't know what will end up in there (if anything). Also out of curiosity - there's a category which (as I've understood) contains Buffs for Adventures, what are those exactly? Buffs for the MPI (Adventures) or something different they're referring to? It contains a mix of buffs from Fortfighting/Duel category, so I'm not sure really what they are supposed to do.
     
    Last edited: Dec 27, 2014
  11. HALCON DE ORO

    HALCON DE ORO Active Member

    Joined:
    Nov 8, 2014
    Messages:
    33
    Likes Received:
    6
    please send it to me , this morning I 've sent a PM
     
  12. Gandalf Greyhame

    Gandalf Greyhame Well-Known Member

    Joined:
    Mar 13, 2012
    Messages:
    1,067
    Likes Received:
    124
    Any buff that boosts fort attack or defense boosts adventure damage/chance to hit and adventure health points, respectively. Fort damage buffs increase your adventure damage but consume the buff, same for attack/defense.
     
  13. Tom Robert

    Tom Robert Well-Known Member

    Joined:
    Dec 29, 2014
    Messages:
    70
    Likes Received:
    43
    Like I said, I can send you my German translation. It would be useful if you send me the list of the spanish words, which should be translated. That would be easier for both of us.
    Regards
     
  14. Tom Robert

    Tom Robert Well-Known Member

    Joined:
    Dec 29, 2014
    Messages:
    70
    Likes Received:
    43
  15. HALCON DE ORO

    HALCON DE ORO Active Member

    Joined:
    Nov 8, 2014
    Messages:
    33
    Likes Received:
    6