[Release|OpenSource|Tutorial]Create Your Own Rappelz's Wallpaper Changer Application

12/31/2014 04:14 Dev.IceSword#1
Yo Guys :) !
Introduction :
As Usual This Project Is an OpenSource Project , ThereFor You are able to edit the Code Or Import It whereever you want haha :D [ don't forget about My CopyLeft :rtfm: ]

Features :
Oh well... I guess that this Project isn't that Useful Project To Edit the databases or anything else Related To The Game... Only To Show you how To Change your Login Wallpaper using a tool u've made . :handsdown:

Screen-shot :

[Only registered and activated users can see links. Click Here To Register...]

The Tutorial :
Well , The Application already Contains :

2 Textboxes
1 PictureBox
2 Buttons
:mofo:
Language : C# .
○○○
As First you have to use 2 System (System.IO , System.Threading)
Code:
using System.IO;
using System.Threading;
Well Let's Start With The Import Function Into The First Button :p
All We need to Do Is To Import A Picture Using an OpenFileDialog Form
Like This :

Code:
OpenFileDialog Import = new OpenFileDialog();
Import.FileName = "Image...";
Import.ShowDialog();
Then You have To Make This Button able To Add The Selected Picture To The PictureBox
Using This Code ^^ :

Code:
Image img = Image.FromFile(Import.FileName.ToString());
 pictureBox1.BackgroundImage = img;
Then one Line Code To AppendText To Path's Textbox :

Code:
path.Text = Import.FileName;
// Well This was for Importing.function :p

••••
Let's Pass To The Next Function [ Exporting The Picture To a Resource File ]

Well , Honestly This Part is the Easiest part in this Project...

First , We Have To Create an FolderBrowser To select Client's Path [ Not Resource's Path ] and Let's call It "Export" :D :D :D
So , For That I'm gonna use this Code :

Code:
   FolderBrowserDialog Export = new FolderBrowserDialog();
Export.Description = "Select Rappelz's Client folder, Not The Resource's Folder"; 
Export.ShowDialog();
But we have To Make a String wich Contains The Correct Full Path , So Let's Name It it , Hashpath :D :

Code:
string Hashpath = (Export.SelectedPath + @"\Resource\" + Hash);
{ I'll Explain 'Hash' Variable in the Last Code Later :p }

but now ... To avoid a bug* (If there is already a Wallpaper File in Game's Resource , It'll be a problem :( ) That's why we Have To Delete it if It's Exist :mad:
For That We'll use If 'statement' In our Code :D :
Code:
  if (File.Exists(Hashpath.ToString()))
                {
                    File.Delete(Hashpath);
                }
                else
                {
                  //Do Nothing
                }
[ If The Tool Will find a File Contains This Name ";UZaKh.=yd3n%4U5g)ob&d8" It will just Delete it :D ]

Now we came to last Part , The easiest , Hashing Part :bandit:
For Real It's not hashing hahahah
Before showing you The Code i have To explain 'HASH' Word First :p
Hash word is a string wich contains ";UZaKh.=yd3n%4U5g)ob&d8"(Wallpaper's Name after Getting Hashed)
So You have Add This code under The First Class In The Form

Code:
public static string Hash = ";UZaKh.=yd3n%4U5g)ob&d8";
;)

Now , The Final Code ...
This is the code into Hash's Button wich will automatically Change The Extension and The Name of The Picture to This ";UZaKh.=yd3n%4U5g)ob&d8"
The Code Is :

Code:
 File.Copy(path.Text, Hashpath);
It's Over , Just Click on Debug And Try your Application ^___^ .
( Notice : About Actions TextBox Called "Logs" And State's Label in The bar they are not so Important , If you are interrested just Check Them by your self . I'm just to supposed how This Tool Works :D )




Download Link (You can it also from the attachments ) : [Only registered and activated users can see links. Click Here To Register...]




Have Fun Guys ^_____^""
Dev.IceSword
Skype : Dev.IceSword
Bye Bye :cool:
Created By Alaa Ben Fatma
12/31/2014 17:50 hassuny#2
thanks ... very useful thread
12/31/2014 18:27 TheOnlyOneRaskim#3
Useful? Its a program for a thing wich can be made by any idiot who knows how to hash the files or even got a hasher.

And by the way, so much code for something wich can be done more easy than your ugly code

Code:
File.Copy(@"C:\KxGGc.jpg",@"C:\;UZaKh.=yd3n%4U5g)ob&d8");
One line for the the same thing wich your program does.
12/31/2014 19:38 TheOnlyOneRaskim#4
Quote:
Originally Posted by Dev.IceSword View Post
2 Things :
1/Last night you said Crap about marekrndr's Project , now you came here to post such a reply ?
You are so sick bro looooooooooooooooooooooooooool


I dont say crap, i say my opinion ^^


2/ Say Somethings useful or don't cmnt on my threads , thank you :)

My comment was useful, because it does explain that the way you handle your code can be made much faster and with less code writings :p
:D
12/31/2014 19:58 tokesbowls#5
Quote:
Originally Posted by Dev.IceSword View Post
2 Things :
1/Last night you said Crap about marekrndr's Project , now you came here to post such a reply ?
You are so sick bro looooooooooooooooooooooooooool
2/ Say Somethings useful or don't cmnt on my threads , thank you :)
--------------
Hussny : Welcome :D

Ummmm,
2/ Say Somethings useful or don't cmnt on my threads , thank you :) ??????

I think he did by far, Lolololol
File.Copy(@"C:\KxGGc.jpg",@"C:\;UZaKh.=yd3n%4U5g)o b&d8");
01/21/2015 21:21 Dev.IceSword#6
# TheOnlyOneRaskim
Oh Seriously ? you gave a fact !
you said that marekrndr uploaded a trojan
and now you are saying that it was your opinion ?
can't you see the huge diff between an opinion and a fact ? lol :)