wc3edit.net

United Warcraft 3 map hacking!
It is currently January 6th, 2009, 7:44 am

 

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Encoding/Decoding
PostPosted: October 21st, 2008, 9:20 am 
Offline
Moderator
User avatar

Joined: August 5th, 2007, 1:38 pm
Posts: 442
Location: *Unknown*
Title: Gui Expert
I am currently working on a EXP system that is kinda of like NOTD. Risker challenged me and I am going to try and do it lol. Currently, I am trying to figure out how to create a encoding system in jass, that I can use a simple Trigger like this one below.

Spoiler:
Events
Player - Player 1 (Red) types a chat message containing -save as An exact match
Conditions
Actions
-------- Those values need saving --------
Set Save[1] = 123(exp)
Set Save[2] = 456(Creep kills)
-------- The number of values we have --------
Set SaveCount = 2
-------- Turn values into code --------
Custom script: set udg_Code = SaveLoad_Encode()
-------- Show code to player --------
Quest - Display to (Player group((Triggering player))) the Secret message: Your code:
Game - Display to (Player group((Triggering player))) for 60.00 seconds the text: Code


The only problem is, I don't know how to display the code to them or how to even make an encoding section. Any help would be appreciated, I will even throw out this idea if you have a better one.

_________________
Image


Top
 Profile  
 
 Post subject: Re: Encoding/Decoding
PostPosted: November 20th, 2008, 9:35 am 
Offline
Super Moderator
User avatar

Joined: June 8th, 2007, 5:08 am
Posts: 996
Location: Malaysia
Title: Not a Hacker
couldn't you just made it in GUI and then transfer it to JASS?
I don't think that's a challenge at all. Just extract the already existed codes from NOTD?

_________________
ImageImageImage


Top
 Profile  
 
 Post subject: Re: Encoding/Decoding
PostPosted: November 25th, 2008, 6:55 pm 
Offline
Moderator
User avatar

Joined: June 3rd, 2007, 8:03 pm
Posts: 770
It's pretty simple to display you would just have to encode it first and then display w/e you got from the encode, and to encode it you pretty much just assign numbers differently from what they normally are aka you could put them in binary. -.- But that wouldn't be very nice, anyway something as simple as making it say i'm just going to use lowercase and numbers, 0=9 1=8 2=7 3=6 4=5 5=4 6=3 7=2 8=1 9=0 a=10 b=11 and so forth and then using a multiplation to encode them so that say 123 exp then it'd turn into something like 7f which broken down looks like this 36 place, 6=3 3*36=108 1's place, f=15 decoded number, 108+15=123.

Hope this helps a little.

_________________
New Users Guide Click Here!
Get Your Map Making Pack Here! :wink:
Come play some kickass flash games!
Image<-Check it out it actually hatched so I brought it back. :P


Top
 Profile  
 
 Post subject: Re: Encoding/Decoding
PostPosted: November 25th, 2008, 7:23 pm 
Offline
The Flying Cow!
User avatar

Joined: November 2nd, 2007, 10:34 pm
Posts: 1523
Location: Melbourne
Title: Uberfast Hacker
Quote:
Custom script: set udg_Code = SaveLoad_Encode()

Where did this come from?

_________________
Experience is not what happens to you; it's what you do with what happens to you. - Aldous Huxley


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Privacy Policy Statement
Impressum (German)