Please Help Fix this Code!

Posts 115 of 43 · Page 1 of 3
Please Help Fix this Code!
This works for both VB8 and VB6,

but it dont work!

on bloons tower defence 2

It is Call ShockwaveFlash1.SetVariable("td.****", "49")
replace the **** with round.

It should make the game change round to 49 but it dont work

There were no errors.
I know what the code should be, but yours is ***** out, how about some spaces
Bypass filter as long as it's not an outside URL (which if code is right , shouldn't be)

I would like to see what you are doing, and what the variable is

Also, most shockwave games require freezing the variable, so you may want to try that as well.



how do i freeze variables?

Call ShockwaveFlash1.SetVariable("td. round", "49")
Quote Originally Posted by o0OpurezO0o View Post
This works for both VB8 and VB6,

but it dont work!
I hate when that happens..
Easiest way to freeze a variable, Use a timer.
set interval to 1 and enable it on button click.

IE: Add a button which enables the timer, button name = Freeze Round 49 (or whatever) Under timer1 (which has a interval of 1 ms) add your code.
Um.. what version are you talking about? I am using Both atm.

Please be more specific im not a master coder.
Version doesn't matter. If your variable is correct. Add a timer to your form, double click the timer, add your code

Code:
Call ShockwaveFlash1.SetVariable("td. round", "49")
then goto timer properties and set interval to 1 (which will be 1 ms)
it should be disabled, now in your button event, where this code

Code:
Call ShockwaveFlash1.SetVariable("td. round", "49")
Was,

Remove

Code:
Call ShockwaveFlash1.SetVariable("td. round", "49")
and add

Code:
timer1.enabled = true

See if that works.
I used nextgen's method a lot, such as setting invincibility for SamuraiSam(ninja.alive,true) on a timer for 1 ms.

It should work.. Please could you upload the source here? maybe it's your computer, or version of flash, but it probably isnt... just trying to help
Quote Originally Posted by Hawk_ View Post
I used nextgen's method a lot, such as setting invincibility for SamuraiSam(ninja.alive,true) on a timer for 1 ms.

It should work.. Please could you upload the source here? maybe it's your computer, or version of flash, but it probably isnt... just trying to help
could be the variable as well, I am checking the game now. Flash developers update games and change variables as a way to "patch" trainers, if you got that variable from online, it may be different now as well.

So this needs to be verified.

Or were you assuming that is the variable for round, because money is td.money.

These answered questions can better help us help you.


Resolution

change td. round to "_level0.td.curLevel"

That's the actual variable.....


Sothink decompiler


so....

Level = td.curlevel
money = td.money
lives = td.lives


have fun.


is there a vid tutorial on how?
@ Getting variable

{this}


othink decompiler


so....

Level = td.curlevel
money = td.money
lives = td.lives


have fun.
sothink swf decompiler..
or.. try an older website that hosts the swf themselves.
Posts 115 of 43 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?