wc3edit.net
https://forum.wc3edit.net/

Looking for a pop-up message in-game from the Jass code
http://forum.wc3edit.net/deprotection-cheating-f64/looking-for-a-pop-up-message-in-game-from-the-jass-code-t37135-10.html
Page 2 of 2

Author:  emilo0212 [ February 23rd, 2020, 6:34 pm ]
Post subject:  Re: Looking for a pop-up message in-game from the Jass code

Hey again, tried your suggestion and same thing was happening, negative income instead of positive income.

Here's my edited version, I should also let you know that the only parts I've edited in the code including the one you've just suggested are the following ones:
Line 3395-3397:
Code:
function Ry takes nothing returns boolean
return true
endfunction


Line 5740:
Code:
call SetPlayerState( Player( 0 ), PLAYER_STATE_RESOURCE_GOLD, 9999999999999)


and in file war3map.wts
I changed the original message with:
STRING 4337
// Abilities: A03B (Overcharging), Ubertip (Tooltip - Normal - Extended)
{
Version 2.7d | By lolreported | Please report bugs on the discord!
}


I should also tell you that this is the 2.7d version instead of the 2.7c that I originally asked the question with, but nothing major has been changed, according to the developer these are the changes:
Quote:
GENERAL
The player builder can no longer attack towers.

PLAYER STATS
A players rating should no longer fail to be updated in the multiboard at the start of the game.
Increased the loading time for Top Player detection and highest rated player in-game in case some players load their stats slowly.

TOWERS
Archer
- Fixed an issue that caused this tower cost resources when repaired.

Ultimate Arcane Orb
- Overwhelming Arcane ability changed the mana decay from -20/second to -10/second.
The reason this is changed is because with version 2.7a the attack speed of this tower
was increased, resulting in a lower mana gain per second. This is to make the mana
roughly equal to before the change.


and following your explanation I still managed to find the exact same pieces of code that you suspected to be the anti cheat. Only the obfuscation names might have changed from by to Ry (the function that you suggested to remove the content of)

Author:  owner123 [ February 23rd, 2020, 9:10 pm ]
Post subject:  Re: Looking for a pop-up message in-game from the Jass code

I tried your attached map and it seems I was getting positive income (and also started with max gold).

What's the expected behavior you're looking for?

Author:  emilo0212 [ February 23rd, 2020, 10:25 pm ]
Post subject:  Re: Looking for a pop-up message in-game from the Jass code

oh... I just checked and it actually is giving positive income but showing it as negative? Not that that matters too much. I guess I just looked at the number with a negative sign in front and assumed it was giving me negative income, my bad!

Well in that case I guess everything works fine! Thanks so much to you and Vegas for the help!

Page 2 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/