Hack Forums
[.NET] Making a Mod tool Console Applacation - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Making a Mod tool Console Applacation (/showthread.php?tid=5142420)



Making a Mod tool Console Applacation - Snowdrop14 - Jan 21, 2016

hello im making a mod tool And i need help on how to corectly use the If Statement


Here is my code
Code
Module Module1

    Sub Main()
        Console.BackgroundColor = ConsoleColor.DarkRed
        Console.Title = ("Cod Mod Tool!")
        Console.WriteLine("Hello User!!")
        Console.WriteLine("Please Type something Here :")
        Console.ReadLine()
        Console.WriteLine("Here Is a list of your mod choices!")
        Console.WriteLine("God, NoClip, JumpHight, Super Speed")
        Console.WriteLine("Please Type What Mod You Want Activated here :")
        Console.ReadLine()
        Console.WriteLine("Made By AgarHero On Youtube!")
        Console.WriteLine("Please Sub To My Youtube Channel @ AgarHero")
        Console.ReadLine()

    End Sub

End Module



* - Hawk HF - Jan 21, 2016

Unfortunately you don't even have an if statement.


* - Ninja - Jan 22, 2016

Console.ReadLine() returns a value. So do something like;
String input = Console.ReadLine()


* - $lick - Jan 22, 2016

So you know memory manipulation but don't know how to use if statements?

I'm sceptical to say the least.


* - Hoody - Jan 22, 2016

Low key feel like he posted this just so people can look at his youtube channel...


* - Ninja - Jan 23, 2016

(Jan 22, 2016 12:46 PM)Nexus™  Wrote:  So you know memory manipulation but don't know how to use if statements?

I'm sceptical to say the least.

if statements > memory manipulation.


* - ProtectNull™ - Jan 23, 2016

(Jan 21, 2016 09:16 PM)Snowdrop14 Wrote:  hello im making a mod tool And i need help on how to corectly use the If Statement


Here is my code
Code
Module Module1

    Sub Main()
        Console.BackgroundColor = ConsoleColor.DarkRed
        Console.Title = ("Cod Mod Tool!")
        Console.WriteLine("Hello User!!")
        Console.WriteLine("Please Type something Here :")
        Console.ReadLine()
        Console.WriteLine("Here Is a list of your mod choices!")
        Console.WriteLine("God, NoClip, JumpHight, Super Speed")
        Console.WriteLine("Please Type What Mod You Want Activated here :")
        Console.ReadLine()
        Console.WriteLine("Made By AgarHero On Youtube!")
        Console.WriteLine("Please Sub To My Youtube Channel @ AgarHero")
        Console.ReadLine()

    End Sub

End Module


So far you've only gotten the aesthetics done, do the main parts.


* - AimBRoT - Jan 23, 2016

something like "if console.readline = "God" then
godmodeon()
elseif console.readline ="NoClip" then
noclip()
end if"


* - Ninja - Jan 23, 2016

(Jan 23, 2016 04:58 AM)AimBRoT Wrote:  something like "if console.readline = "God" then
godmodeon()
elseif console.readline ="NoClip" then
noclip()
end if"

That wouldn't work. You have to store Console.Readline() in a string and then use that. because this way if you dont type 'God' Console.Readline() is called twice and that wouldn't work.


* - AimBRoT - Jan 23, 2016

(Jan 23, 2016 06:49 AM)Tyranitar Wrote:  That wouldn't work. You have to store Console.Readline() in a string and then use that. because this way if you dont type 'God' Console.Readline() is called twice and that wouldn't work.


This was an example, i didn't want to spoonfeed him 🤝


* - SilentCode - Jan 24, 2016

Code
string command = console.ReadLine();
if( command.Contains(GodMode)
{
function.GodMode() //or whatever
}

But...
You don't know how IF statements work and you've made a hack? Wot