ich möchte ein lua script aus ls17 in ls19 konvertieren.
Kann mir da bitte jemand helfen hab keinen Plan über die ls19 syntax
Alles anzeigen
Kann mir da bitte jemand helfen hab keinen Plan über die ls19 syntax
Quellcode
- LoanTax = {};
- function LoanTax:loadMap(name)
- g_currentMission.MissionStats.loanMax = 5000000;
- g_currentMission.MissionStats.saveLoan = 0;
- LoanTax:calculateLoanInterestRate();
- end;
- function LoanTax:update(dt)
- if g_currentMission.MissionStats.saveLoan ~= g_currentMission.MissionStats.loan then
- LoanTax:calculateLoanInterestRate();
- g_currentMission.MissionStats.saveLoan = g_currentMission.MissionStats.loan;
- end;
- end;
- function LoanTax:calculateLoanInterestRate()
- local loanAnnualInterestRate = 0;
- if g_currentMission.MissionStats.loan <= 100000.000000 then
- loanAnnualInterestRate = 400.000000;
- elseif g_currentMission.MissionStats.loan <= 200000.000000 then
- loanAnnualInterestRate = 750.000000;
- elseif g_currentMission.MissionStats.loan <= 500000.000000 then
- loanAnnualInterestRate = 1100.000000;
- elseif g_currentMission.MissionStats.loan <= 1000000.000000 then
- loanAnnualInterestRate = 1450.000000;
- elseif g_currentMission.MissionStats.loan <= 5000000.000000 then
- loanAnnualInterestRate = 1800.000000;
- end;
- g_currentMission.MissionStats.loanAnnualInterestRate = loanAnnualInterestRate;
- end;
- function LoanTax:deleteMap()
- end;
- function LoanTax:delete()
- end;
- function LoanTax:mouseEvent(posX, posY, isDown, isUp, button)
- end;
- function LoanTax:keyEvent(unicode, sym, modifier, isDown)
- end;
- function LoanTax:draw()
- end;
- addModEventListener(LoanTax);
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von LacerG ()