| View previous topic :: View next topic |
| Author |
Message |
Bleizk Grandmaster Cheater
Reputation: 0
Joined: 31 Aug 2007 Posts: 987 Location: In front of my computer duh.
|
Posted: Fri Jun 20, 2008 12:34 pm Post subject: [VS 2008]Code problem! |
|
|
i have a problem, i wuz making a hack for df, its suposed to load the class u want but ihave the problem when writing the code:
For this hack i used a swf file cuz its a swf game
the code of the swf is:
| Code: | | _level0.conn.loadClass(_level0.character.intGems); |
The gems variable dun have any funtion in the game so i used that so the people dun have to input the id of the class on a textbox so it can be easy.
The code in the program is: | Code: |
Call DarkDF.AxShockwaveFlash1.SetVariable("_root.character.intgems", 2)
Call DarkDF.AxShockwaveFlash1.LoadMovie(10, Application.StartupPath & "\swf\class.swf") |
"class" is the name of the swf file and DarkDf is the name of the program and the name of the form.
The value here is 2 cuz in this case it will load the warrior armor that have the id number 2.
The problem is that when i press the button it says (on the game) "invalid item reference. error code: 500.78."
Plz help me i tryed using level0.character.intGems for the varible to.
I cant make it work.
I know it works cuz is the same sistem that Lolsalad used on his swf loader, and it does the same thing, i tryed to decompile it to know the code and find my error but he used delphi and i dun know delphi.
Plz help me.
Thx in advance.
_________________
|
|
| Back to top |
|
 |
Estx Expert Cheater
Reputation: 0
Joined: 04 Mar 2008 Posts: 172
|
Posted: Sat Jun 21, 2008 1:45 am Post subject: |
|
|
Not sure about VB.Net, but putting quotes around the 2 and using correct punctuation might help. I don't play Flash games so I can only offer general coding advice.
| Code: | | Call DarkDF.AxShockwaveFlash1.SetVariable("_root.character.intGems", "2") |
If that doesn't work, then there may be something wrong with the format of the Item ID. Double check to make sure it's exactly "2" and doesn't have any pre- or post-fixes to it (i.e. "armor.2" / "2.head" / "sex_2" etcetera).
|
|
| Back to top |
|
 |
Bleizk Grandmaster Cheater
Reputation: 0
Joined: 31 Aug 2007 Posts: 987 Location: In front of my computer duh.
|
Posted: Sat Jun 21, 2008 8:36 am Post subject: |
|
|
kk, thx for the help.
Ill +rep ya and ill post if it worked.
_________________
|
|
| Back to top |
|
 |
|