Bank fix base on 4.165b

  • file location is:
    repairbank Ver1.12 update.
    http://www.mediafire.com/?2tj91281dw2j11v

    this mod is base on 4.165b
    (but 4.15, 4.164, 4.17 can do this fix)
    this mod is changed moneylending system and AI.

    [fix List, plz do backup]
    \DB\Needs.dbt - add need property
    \Scripts\Library\idlelib.lua - add some function and fix numbers
    \Scripts\Measures\ms_Babble.lua - fix some code
    \Scripts\Measures\ms_AttendMass.lua - fix needs number
    \Scripts\Measures\ms_DynastyIdle.lua - add ai
    \Scripts\Measures\ms_OfferCredit.lua - put in get xp script
    \Scripts\Measures\ms_OrderCredit.lua - show the loan sim number and total money
    \Scripts\Measures\ms_RoyalGuard.lua - pay back script
    \Scripts\Measures\Behaviour\std_CityGuard.lua - pay back script
    \Scripts\Measures\Behaviour\std_Idle.lua - fix ai, put in some script
    \Scripts\Measures\Behaviour\std_PrisonGuard.lua - pay back script

    Ps. loan is not only way.

    [Blockierte Grafik: http://upload.inven.co.kr/upload/2011/01/04/bbs/i37558772.jpg]

    13 Mal editiert, zuletzt von kinver () aus folgendem Grund: ver up. and bug fix

  • ex>

    add needs

    Code
    7            "konsum"                        1.5                1                       | 
    8            "drinking"                      1.5                1                       |
    9            "financial"                     1.5                0                       |



    on sleep, eat, buy ... etc

    Code
    local ndp = (25+Rand(20))*-0.01
    SatisfyNeed("", 9, ndp)



    and ai.

    Code
    ...
       if SimGetNeed("", 9)>1 then
        idlelib_CheckBank()
        return
       end
    ...



    Code
    function TakeACredit()
    ...
         idlelib_BuySomeCoin() ...
         SatisfyNeed("", 9, 1.5)
    ...
    end



    Code
    function ReturnACredit()
    ...
         SatisfyNeed("", 9, 1.5)
    ...



    Code
    function BuySomeCoin()
    ...
      local Items = { "Goldlowmed", "Goldmedhigh", "Goldveryhigh" }
    ...
      if GetItemCount("Destination", Choice, INVENTORY_SELL)>0 then
       Transfer(nil, nil, INVENTORY_STD, "Destination", INVENTORY_SELL, Choice, 1)
    ... 
    SatisfyNeed("", 9, 1.5)



    and
    some sims pay back ai.
    rober, guard etc...

  • I've tested this fix

    Setup of the game:

    Started a new game on Novaesium with 5000 credits
    Bought the pawn house in Cologne
    Bougth the 10% atractiveness upgrade
    Fired the staff
    Put 1500 credits into the bank
    Used my character to give out credit

    Conclusions:
    * It seems people are trying to takeacredit even when there is no money in the bank
    * People take credit, walks out of the building, enters the pawn house again and returns the credit
    * Really alot of people come in more then my bank can handle
    * After 6 days I didn't even earned my 2500 credits back

    I think you're on the right track with this fix but it needs a little bit more finetuning to let it feel "realistic".

    Still have a few questions though:
    * Does the payback increase with certain stats improved?
    * How much does this fix affect the amount of people going to a pub, hospital, church etc?

  • Can someone explain to me how to save the INI configuration settings. Everytime i edit the INI and save it reverts back to what it was before I had edited as soon as i start a new game. what am i doing wrong

  • THX for your help.
    now repir bank mod is Ver 1.07 update





    * It seems people are trying to takeacredit even when there is no money in the bank
    = they a not try to takeacredit :), just window-shoping. and some pp try to get coin(coper, silver, gold). yes, it's a scenario.

    >>Ver 1.07 fix this issue
    * People take credit, walks out of the building, enters the pawn house again and returns the credit
    = hm... it's need to fix. but i can't. cuz "scripts call" - stucture problem.
    or just adding ignor bank time...? well... hm.

    this case: need point over 3.0 over more. so, he return to bank and pay back. ( need 1.5 = goto bank, if can get credit or coin? yes: -1.5 need. or? nothing! => stock need point over 1.5 :()


    >>Ver 1.07 more sims can pay back.
    * After 6 days I didn't even earned my 2500 credits back
    = this case i can't handle it
    - sim is a die /cry
    - sim is a get pbulic offical job /damn. they a just burn my credit!
    - some sim is verry lazy in big city


    >>Ver 1.07: random rate + need point.
    * Does the payback increase with certain stats improved?
    - yes. my source is more chance to payback -> it's not true sorry:(

    >>Ver 1.07:
    --the lure of money is very sweet. Even more than sleep.
    --and loan rate is ... :(
    * How much does this fix affect the amount of people going to a pub, hospital, church etc?

    ---modify :)---

  • Can someone explain to me how to save the INI configuration settings. Everytime i edit the INI and save it reverts back to what it was before I had edited as soon as i start a new game. what am i doing wrong

    probably having wondows 7 or vista which has file ressurection if you edit it but not virus :D
    try to login as admin.... or even better install windows xp !