The Dink Network

Reply to Messed up line of code?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 21st 2007, 12:55 PM
pq_frog.gif
Aight, so i took gary's original "UltCheat v3.01" and decided to give it a couple more choices.

So heres my code, and every time i try to use the "raise defence by x" command, it just shuts down the whole cheat interface.

void main(void)
{
int &[ult]mapno;
int &[ult]mapwp;
int &[ult]xloc;
int &[ult]yloc;
int &[ult]tmpx;
int &[ult]tmpy;
int &[ult]tmp1;
int &[ult]tmp2;
int &[ult]tmp3;
int &[ult]tmp4;
int &[ult]ctr1;
int &[ult]ctr2;
int &[ult]sprite;

wait(1);
stop_entire_game(1);
choice_start()
"Change Dink's stats"
"Restore all hitpoints"
"Change gold total"
"Show information screen"
"Kill enemies"
"Unlock screen"
"Warp"
"Set/Recall Beacons"
"Save Game"
"Leave"
choice_end();
wait(1);

// Change Dink's stats
if (&result == 1)
{
stop_entire_game(1);
choice_start()
"Raise attributes"
"Lower attributes"
"Raise life by 50 hp"
"Lower life by 50 hp"
"Change speed to normal"
"Change speed to fast"
"Change speed to super fast"
"Fly"
"Don't Fly"
"Multiple stat boost"
"Leave"
choice_end();
wait(1);

// Raise attributes
if (&result == 1)
{
stop_entire_game(1);
choice_start()
"Raise attack by x"
"Raise defence by x"
"Raise magic by x"
"Leave"
choice_end();
wait(1);

// Raise attack by x
if (&result == 1)
{
stop_entire_game(1);
choice_start()
"Raise attack by 1"
"Raise attack by 5"
"Raise attack by 10"
"Raise attack by 25"
"Raise attack by 50"
"Raise attack by 100"
"Leave"
choice_end();
wait(1);

// Raise attack by 1
if (&result == 1)
{
&strength += 1;
}
wait(1);


// Raise attack by 5
if (&result == 2)
{
&strength += 5;
}
wait(1);

// Raise attack by 10
if (&result == 3)
{
&strength += 10;
}
wait(1);

// Raise attack by 25
if (&result == 4)
{
&strength += 25;
}
wait(1);

// Raise attack by 50
if (&result == 5)
{
&strength += 50;
}
wait(1);

// Raise attack by 100
if (&result == 6)
{
&strength += 100;
}
wait(1);

// Leave
if (&result == 7)
}
kill_this_task();
}
wait(1);

// Raise defence by x
if (&result == 2)
{
stop_entire_game(1);
choice_start()
"Raise defence by 1"
"Raise defence by 5"
"Raise defence by 10"
"Raise defence by 25"
"Raise defence by 50"
"Raise defence by 100"
"Leave"
choice_end();
wait(1);

// Raise defence by 1
if (&result == 1)
{
&defence += 1;
}
wait(1);


// Raise defence by 5
if (&result == 2)
{
&defence += 5;
}
wait(1);

// Raise defence by 10
if (&result == 3)
{
&defence += 10;
}
wait(1);

// Raise defence by 25
if (&result == 4)
{
&defence += 25;
}
wait(1);

// Raise defence by 50
if (&result == 5)
{
&defence += 50;
}
wait(1);

// Raise defence by 100
if (&result == 6)
{
&defence += 100;
}
wait(1);

// Leave
}

kill_this_task();
}
wait(1);

// Raise magic by x
if (&result == 3)
{
stop_entire_game(1);
choice_start()
"Raise magic by 1"
"Raise magic by 5"
"Raise magic by 10"
"Raise magic by 25"
"Raise magic by 50"
"Raise magic by 100"
"Leave"
choice_end();
wait(1);

// Raise magic by 1
if (&result == 1)
{
&magic += 1;
}
wait(1);


// Raise magic by 5
if (&result == 2)
{
&magic += 5;
}
wait(1);

// Raise magic by 10
if (&result == 3)
{
&magic += 10;
}
wait(1);

// Raise magic by 25
if (&result == 4)
{
&magic += 25;
}
wait(1);

// Raise magic by 50
if (&result == 5)
{
&magic += 50;
}
wait(1);

// Raise magic by 100
if (&result == 6)
{
&magic += 100;
}
wait(1);

// Leave
}

kill_this_task();
}
wait(1);