Major cash glitch

Forum
Last Post
Threads / Messages

RoconzaArt

Member
Member
Joined
Jan 9, 2011
Messages
479
Points
0
Location
NJ Shore (and proud of it)
Mysidian Dollar
25,728
I found this while setting up my site. If you freeze a pokemon and click on you get money but that's not glitch. If you keep refreshing you keep getting money. All have to do to earn major cash is to camp on the page and keep refresh/pressing F5 to keep earning cash.

I'd really like to see fix for this and will not open until there is some way to resolve this.
 
Well you found this eventually...

Yes, this was a glitch from the old Rusnak Adoptables script(my members on pokemansion complained before,sigh), it is also present on MA. I am thinking that the best way to fix this is to remove the freeze option, but maybe not all of you agree with me.
 
Well you found this eventually...
Not sure what you mean by that.

I've seen other site build on mys who don't suffer from this problem, Gigi for example after I did some testing. Why not ask her to find out what she knows?
 
Last edited:
umm I remember gigi said she got help from professional coders on how to stop people from refreshing or go backward from the current page. This is a nice way of solving problems of cheating, but may not be good as a solution for public script since it may make installation/upgrade process a real pain. A similar problem is with cronjobs. If we code something that requires users to set up cronjobs on their sites, we will lose at least half of customers since they have to manually do this from cpanel(some hosts may not even have cpanel) and it is a pain even for some PHP coders.

An alternative way to solve this problem is to cut out frozen adoptables from displaying on profile.php. Also we can find a way to stop users from clicking on their own frozen adoptables too. Its definitely doable, I will see what can be done. ^^
 
Why not just prevent the script from giving any cash if the adoptable is frozen?
 
Good point Fadillzzz. For now I guess the issue is that in future we will have more than just money reward for clicking on adoptables, so it will be hard to generalize. But yeah, it sounds like a fine solution at this moment.
 
The easy fix for this glitch is:

Find the changecash function:
PHP:
    changecash(grabanysetting('rewardmoney'), $GLOBALS['username'], $GLOBALS['money']);
    $article_content = $article_content . "<div align='center'><br />You have earned ". grabanysetting('rewardmoney') ." ". grabanysetting('cost') ." for leveling up this adoptable. <br />You now have {$GLOBALS['money']} ".grabanysetting('cost')."</div>";

Replace with:

PHP:
    if($isfrozen == "no"){   
    changecash(grabanysetting('rewardmoney'), $GLOBALS['username'], $GLOBALS['money']);
    $article_content = $article_content . "<div align='center'><br />You have earned ". grabanysetting('rewardmoney') ." ". grabanysetting('cost') ." for leveling up this adoptable. <br />You now have {$GLOBALS['money']} ".grabanysetting('cost')."</div>";
    }

This should solve your problem, as it does on my demo site. The glitch will be officially fixed on Mys v1.2.1, sorry about that.
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,130
Members
1,603
Latest member
Monako
BETA

Latest Threads

Latest Posts

Top