[Source] Change Perin Value

Results 1 to 9 of 9
  1. #1
    Sorcerer Supreme NickHough is offline
    Member +Rank
    Nov 2009 Join Date
    United KingdomLocation
    397Posts

    [Source] Change Perin Value

    Hello,


    Today i have a question and that question is, is it possible to change the perin value (when you click the perin it gives you 100m, i want it to be able to give 500m or 1bill perin when clicked, obviously sold in shops for 1b/500m perin first),

    and if possible what files should i look in to make it so

    Thanks - NickHough

    okay i found this

    #if __VER >= 11 // __MA_VER11_02
    if( pItemElem->m_dwItemId == II_SYS_SYS_SCR_PERIN )
    nCost = PERIN_VALUE;
    #endif //__MA_VER11_02

    Can i set the PERIN_VALUE in the source or does it need to be done through define.h?


  2. #2
    Sorcerer Supreme cKenzy is offline
    Member +Rank
    Aug 2010 Join Date
    SwitzerlandLocation
    361Posts

    Re: [Source] Change Perin Value

    Try to change the perin cost in propitem.txt

    Maybe im saying something stupid, but try that.

    #if __VER >= 11 // __MA_VER11_02
    if( pItemElem->m_dwItemId == II_SYS_SYS_SCR_PERIN )
    nCost = PERIN_VALUE;
    #endif //__MA_VER11_02
    Btw, edit your signature please? ;<

  3. #3
    i sell platypus Improved is offline
    Grand MasterRank
    Jun 2009 Join Date
    DenmarkLocation
    2,819Posts

    Re: [Source] Change Perin Value

    Quote Originally Posted by blur View Post
    Try to change the perin cost in propitem.txt

    Maybe im saying something stupid, but try that.


    Btw, edit your signature please? ;<
    Would be much more apreciated if you reported it.

    Also search for the PERIN_VALUE and see if its value is defined somewhere in the source.

  4. #4
    One word! Im Fawkin Pro! Xakzi is offline
    Grand MasterRank
    Jul 2010 Join Date
    SwedenLocation
    1,356Posts

    Re: [Source] Change Perin Value

    it is actually in the propitem if im not wrong either..
    since in the source it is pretty hardcoded and does not really give any value of it :p

  5. #5
    Newbie kjlove1 is offline
    MemberRank
    Jan 2012 Join Date
    2Posts

    Re: [Source] Change Perin Value

    just report it

  6. #6
    Flyff Developer ShadowDragon is offline
    Grand MasterRank
    Apr 2009 Join Date
    1,915Posts

    Re: [Source] Change Perin Value

    PERIN_VALUE is set in Define.h
    Change that, then recompile the source and it should work.

  7. #7
    ~FlyFF DeV~ Jomex is offline
    Grand MasterRank
    Mar 2009 Join Date
    PolandLocation
    588Posts

    Re: [Source] Change Perin Value

    or just put instead of PERIN_VALUE a number for example: 5000000000

  8. #8
    One word! Im Fawkin Pro! Xakzi is offline
    Grand MasterRank
    Jul 2010 Join Date
    SwedenLocation
    1,356Posts

    Re: [Source] Change Perin Value

    yeah but remember, you cannot exceed 2147483648

  9. #9
    Flyff Developer ShadowDragon is offline
    Grand MasterRank
    Apr 2009 Join Date
    1,915Posts

    Re: [Source] Change Perin Value

    No Jomex, it wouldn't work like that. In the source files, the variable named PERIN_VALUE is used everywhere the game needs to reference Perins. Changing what PERIN_VALUE is equal to will change it everywhere.



Advertisement