Would rather help than just having you "fix" the problem seeing as that doesn`t actually help to learn if a "fix" is given without any knowledge of WHY it is fixed and what exactly was wrong in the first place.
It`s like being a trainee mechanic but taking your car to the garage to be fixed >.< What`s the point in trying to learn to be a mechanic if you`re just going to send the car to a garage, rather have somebody to give ideas of what`s wrong and why it`s wrong :)
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int age = int.Parse(Console.ReadLine()); // Changes "age" to a number?
if (age < 16) //If person is aged 18 and under tell them no
{
Console.WriteLine("You can`t enter"); //tells the console to let the person know he is not allowed in
}
else if ((age >= 16) && (age <= 18)) //Otherwise if person is aged 16 but below 18 come in but don`t drink
{
Console.WriteLine("You can come in but can`t drink"); //Again tells console to let person know
}
else if (age >= 19) //Otherwise if 19 and above they can come in and drink
{
Console.WriteLine("You can drink as well"); //Console let`s person know
}
}
}
}
My basic understanding of how it works, I may be wrong though but that was an explanation given online whilst learning basic stuff. Theoretically for what is already there then this is how it should be?
Code:
public static bool NewBot(Client C)
{
if (C.RunBot)
{
if(Distance to C.ActivePath[C.ActivePath.ID] < 7)
{
//path found, move to next one
if(C.ActivePath.ID + 1< C.Path.Count)
{
C.ActivePath.ID++;
}
else
{
C.ActivePath = C.Path.Reverse();
C.ActivePath.ID = 1;
}
}
if (!C.Hunting)
return true;
Mob attack = GetClosestMonster(C); // Radius 18
Coord To = Calculations.PullWeights(MakeCoord(C.X, C.Y), C.ActivePath[C.PathIndex]);
Items.GroundItem moneyloot = GetClosestMoney(C);
Code:
if (C.Recording == true)
{
C.ActivePath.Points.Add(new Point(0, MakeCoord(C.X, C.Y)));
Packets.CliJump(XY.X, XY.Y, 156, C);
Packets.Jump(C, XY.X, XY.Y, 137);
Packets.CliJump(XY.X, XY.Y, 156, C);