http://www.freeonlinegames.com/game/dice-mogul.html
hacks: unlimited credit
Printable View
http://www.freeonlinegames.com/game/dice-mogul.html
hacks: unlimited credit
I am pretty sure this was requested before but i could not find it right now.
Anyway 999999 for the player only:
Code:setMember
push r:2, 'SetUserControlled'
function2 (r:2='b') (r:1='this')
push r:this, 'm_UserControlled', r:b
setMember
end // of function
CHANGE TO
setMember
push r:2, 'SetUserControlled'
function2 (r:2='b') (r:1='this')
push r:this, 'm_UserControlled', r:b
setMember
// IF
push r:this, 'm_UserControlled'
getMember
not
branchIfTrue mylabel01
// THEN
push r:this, 'm_Money', 999999
setMember
branch mylabel02
mylabel01:
// ELSE
mylabel02:
end // of function
That's doesn't work for me, ZuckeR.
When I try to assemble it with Flasm, I get an error.
I just tried it again and it works fine for me, the player has 999999 then all the other still get 4000.
I just have to replace the old code with your new, improved code?
Yeah i changed the function, basically i just added some lines. The rest is still the same, it just checks if the player is AI or not and changes the initial money to 999999 if user controlled.
Code:// IF
push r:this, 'm_UserControlled'
getMember
not
branchIfTrue mylabel01
// THEN
push r:this, 'm_Money', 999999
setMember
branch mylabel02
mylabel01:
// ELSE
mylabel02:
Do you have msn or teamviewer, because I get this error when assembling:
Code:
^
Line 0001 of g.txt:
Unrecognized character
No i don't have MSN or teamview but i just downloaded the game from the given link and changed it the way it should be. And thinking about it the problems you guys have could be because of Notepad++ saves the files in UTF-8 with BOM.
Decompile a game and try to recompile it without touching the flm (or whatever you use) file. Then open the flm file with Notepad++ and just save it. It probably converts the file to UTF-8 with BOM which is wrong. It should work with the untouched flm but not after saving it with Notepad++.
You can chose to turn this of in the options under New/Open/Save or however it is called in english. Set it to use UTF-8 without BOM and hopefully it should work.
I used Notepad to edit it. But with Notepad ++ it works.
I'll upload it as a teamhack, if you agree.
I suggest to use SciTE. I dont want to adverste it, but its much better than Notepad++.
There is an article about it: http://en.wikipedia.org/wiki/SciTE
This is the website where you can download it: http://www.scintilla.org/SciTE.html
It saved me a lot of time.