Autobar

4 - potion "willpower" does not useable (French translation)

What steps will reproduce the problem?
1. use an FR client
2. a "willpower" potion in bags

What version of the product are you using?
lastest

In function Autobar.getValuesFR()

Add an "elseif" like that

****************************************************************
   elseif string.find(description, 'Augmente [^%d]+ de %d+ points pendant %d+ minutes.') then
      potionV, potionD = getNumbers(description, 2)
      potionD = potionD * 60
      elseif string.find(description, 'votre volon')            then potionTy = Autobar.Type.WILLPOWER
****************************************************************

Note:
- no "l" before "[^%d]+"
- add "points" after first " de %d+ "

Best regards,

TiTeY`.

User When Change
titey Fri, 14 Nov 2008 14:38:15 Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of titey titey Sun, 30 Nov 2008 12:11:39

    found an other problem "intel".

    I use these lines to add "willpower" and "intel" :

       elseif string.find(description, 'Augmente [^%d]+ de %d+ points pendant %d+ minutes.') then
          potionV, potionD = getNumbers(description, 2)
          potionD = potionD * 60
          if string.find(description, 'votre volon')            then potionTy = Autobar.Type.WILLPOWER
          elseif string.find(description, 'intelligence')         then potionTy = Autobar.Type.INTELLIGENCE
          end
    


  • 1 comment

Facts

Reported on
14 Nov 2008
Status
New - Issue has not had initial review yet.
Type
Patch - Source code patch for review
Priority
Medium - Normal priority.

Reported by

Possible assignees