Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[VS 2008]Code problem!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
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.

PostPosted: Fri Jun 20, 2008 12:34 pm    Post subject: [VS 2008]Code problem! Reply with quote

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 Very Happy
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
View user's profile Send private message MSN Messenger
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Sat Jun 21, 2008 1:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Bleizk
Grandmaster Cheater
Reputation: 0

Joined: 31 Aug 2007
Posts: 987
Location: In front of my computer duh.

PostPosted: Sat Jun 21, 2008 8:36 am    Post subject: Reply with quote

kk, thx for the help.
Ill +rep ya and ill post if it worked.

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites