ThinkDink's Profile
you wanna know about me!!
jett108@hotmail.com
http://www.dinkschool.cjb.net
Private Message
I need help ive got a boss script but it crashes
can you see whats wrong with it?
//zhyu brain
void main( void )
{
int &fsave_x;
int &kcrap;
int &dam;
int &fsave_y;
int &spark;
int &speed = 1;
int &resist;
int &mcounter;
int &mtarget;
sp_brain(¤t_sprite, 10);
sp_timing(¤t_sprite, 33);
sp_speed(¤t_sprite, 1);
sp_nohit(¤t_sprite, 0);
sp_exp(¤t_sprite, 0);
sp_base_walk(¤t_sprite, 580);
sp_touch_damage(¤t_sprite, 15);
sp_hitpoints(¤t_sprite, 300);
sp_defense(¤t_sprite, 15);
sp_target(¤t_sprite, 1);
}
void attack( void )
{
unfreeze(¤t_sprite);
&mcounter = random(4000,2000);
sp_attack_wait(¤t_sprite, &mcounter);
&kcrap = sp_target(¤t_sprite, -1);
&fsave_x = sp_x(&kcrap, -1);
&fsave_y = sp_y(&kcrap, -1);
&resist = random(2, 1);
if (&resist == 1)
{
//cast some kind of bomb
freeze(¤t_sprite);
sp_speed(¤t_sprite, 0);
// sp_dir(¤t_sprite, 0);
sp_seq(¤t_sprite, 0);
sp_frame(¤t_sprite, 0);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 1);
wait(500);
&save_x = sp_x(1, -1);
&save_y = sp_y(1, -1);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 2);
wait(200);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 1);
wait(200);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 2);
wait(200);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 1);
wait(200);
say("`4<Casts HellBlast>", ¤t_sprite);
playsound(31, 12050,0,0, 0);
spawn("dam-bom2");
sp_brain(¤t_sprite, 10);
sp_speed(¤t_sprite, &speed);
unfreeze(¤t_sprite);
return;
}
&resist = random(40, 1);
//if NPC, turn off resist option
if (&kcrap != 1)
&resist = 100000;
if (&resist > &magic)
{
say("`4<Casts Mega Blast>", ¤t_sprite);
playsound(31, 12050,0,0, 0);
hurt(&kcrap, 30);
&fsave_y -= 29;
&spark = create_sprite(&fsave_x, &fsave_y, 7, 70, 1);
sp_seq(&spark, 70);
sp_que(&spark, -70);
sp_speed(&spark, 5);
return;
}
playsound(31, 44050,0,0, 0);
&fsave_y -= 29;
int &spark = create_sprite(&fsave_x, &fsave_y, 7, 166, 1);
sp_seq(&spark, 166);
sp_que(&spark, -70);
say("Magic resisted.", &kcrap);
}
void hit( void )
{
playsound(46, 3050, 4000, ¤t_sprite, 0);
sp_speed(¤t_sprite, &speed);
sp_brain(¤t_sprite, 10);
unfreeze(¤t_sprite);
&dam = sp_hitpoints(¤t_sprite, -1);
if (&dam < 270)
{
sp_timing(¤t_sprite, 0);
sp_speed(¤t_sprite, 2);
&speed = 2;
sp_frame_delay(¤t_sprite, 60);
}
if (&dam < 200)
{
&speed = 3;
sp_speed(¤t_sprite, 3);
sp_frame_delay(¤t_sprite, 50);
}
if (&dam < 100)
{
&speed = 4;
sp_speed(¤t_sprite, 4);
sp_frame_delay(¤t_sprite, 40);
}
if (&dam < 15)
{
&speed = 5;
sp_speed(¤t_sprite, 5);
sp_frame_delay(¤t_sprite, 30);
}
&dam = random(2,1);
if (&dam == 1)
return;
&dam = sp_hitpoints(¤t_sprite, -1);
if (&dam < 6)
{
say("`%Smallwood You Fool!", ¤T_SPRITE);
return;
}
if (&dam < 15)
{
say("`%Your Just Like A Bug Smallwood", ¤T_SPRITE);
return;
}
if (&dam < 50)
{
say("`% I Will Miss You Smallwood", ¤T_SPRITE);
return;
}
if (&dam < 100)
{
say("`%This Is Your Last Fight Smallwood!", ¤T_SPRITE);
return;
}
if (&dam < 140)
{
say("`%Your Going To Hell Smallwood", ¤T_SPRITE);
playsound(49, 22050, 0, ¤t_sprite, 0);
return;
}
if (&dam < 160)
{
say("`%You'll Be Dead Soon.", ¤T_SPRITE);
return;
}
if (&dam < 180)
{
say("`%Your Doing Well Smallwood", ¤T_SPRITE);
return;
}
if (&dam < 200)
{
say("`%Time To Die Smallwood!", ¤T_SPRITE);
return;
}
if (&dam < 240)
{
say("`%This Is So Fun!", ¤T_SPRITE);
return;
}
if (&dam < 260)
{
say("`%Dink You Shall Die", ¤T_SPRITE);
return;
}
if (&dam < 280)
{
say("`%Ouch! You Will Pay For That", ¤T_SPRITE);
return;
}
say("`%Dink Why Bother? Ill Destroy You!", ¤T_SPRITE);
//lock on to the guy who just hit us
//playsound
}
void die( void )
{
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
say("EAT IT!", 1);
add_exp(10000, ¤t_sprite);
freeze(1);
sp_brain(¤t_sprite, 0);
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
&save_x -= 40;
&save_y -= 30;
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
&save_x += 80;
&save_y += 60;
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
&save_x += 10;
&save_y += 20;
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
&save_x -= 30;
&save_y -= 60;
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
sp_brain_parm(¤t_sprite, 5);
sp_brain(¤t_sprite, 12);
script_attach(1000);
wait(500);
wait(2000);
say_stop("Ha No One Can Kill Me", 1);
wait(500);
say_stop("<Smile>", 1);
&life = &lifemax;
wait(500);
say_stop("Heheheh", 1);
unfreeze(1);
&story = 15;
kill_this_task();
}
can you see whats wrong with it?
//zhyu brain
void main( void )
{
int &fsave_x;
int &kcrap;
int &dam;
int &fsave_y;
int &spark;
int &speed = 1;
int &resist;
int &mcounter;
int &mtarget;
sp_brain(¤t_sprite, 10);
sp_timing(¤t_sprite, 33);
sp_speed(¤t_sprite, 1);
sp_nohit(¤t_sprite, 0);
sp_exp(¤t_sprite, 0);
sp_base_walk(¤t_sprite, 580);
sp_touch_damage(¤t_sprite, 15);
sp_hitpoints(¤t_sprite, 300);
sp_defense(¤t_sprite, 15);
sp_target(¤t_sprite, 1);
}
void attack( void )
{
unfreeze(¤t_sprite);
&mcounter = random(4000,2000);
sp_attack_wait(¤t_sprite, &mcounter);
&kcrap = sp_target(¤t_sprite, -1);
&fsave_x = sp_x(&kcrap, -1);
&fsave_y = sp_y(&kcrap, -1);
&resist = random(2, 1);
if (&resist == 1)
{
//cast some kind of bomb
freeze(¤t_sprite);
sp_speed(¤t_sprite, 0);
// sp_dir(¤t_sprite, 0);
sp_seq(¤t_sprite, 0);
sp_frame(¤t_sprite, 0);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 1);
wait(500);
&save_x = sp_x(1, -1);
&save_y = sp_y(1, -1);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 2);
wait(200);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 1);
wait(200);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 2);
wait(200);
sp_pseq(¤t_sprite, 580);
sp_pframe(¤t_sprite, 1);
wait(200);
say("`4<Casts HellBlast>", ¤t_sprite);
playsound(31, 12050,0,0, 0);
spawn("dam-bom2");
sp_brain(¤t_sprite, 10);
sp_speed(¤t_sprite, &speed);
unfreeze(¤t_sprite);
return;
}
&resist = random(40, 1);
//if NPC, turn off resist option
if (&kcrap != 1)
&resist = 100000;
if (&resist > &magic)
{
say("`4<Casts Mega Blast>", ¤t_sprite);
playsound(31, 12050,0,0, 0);
hurt(&kcrap, 30);
&fsave_y -= 29;
&spark = create_sprite(&fsave_x, &fsave_y, 7, 70, 1);
sp_seq(&spark, 70);
sp_que(&spark, -70);
sp_speed(&spark, 5);
return;
}
playsound(31, 44050,0,0, 0);
&fsave_y -= 29;
int &spark = create_sprite(&fsave_x, &fsave_y, 7, 166, 1);
sp_seq(&spark, 166);
sp_que(&spark, -70);
say("Magic resisted.", &kcrap);
}
void hit( void )
{
playsound(46, 3050, 4000, ¤t_sprite, 0);
sp_speed(¤t_sprite, &speed);
sp_brain(¤t_sprite, 10);
unfreeze(¤t_sprite);
&dam = sp_hitpoints(¤t_sprite, -1);
if (&dam < 270)
{
sp_timing(¤t_sprite, 0);
sp_speed(¤t_sprite, 2);
&speed = 2;
sp_frame_delay(¤t_sprite, 60);
}
if (&dam < 200)
{
&speed = 3;
sp_speed(¤t_sprite, 3);
sp_frame_delay(¤t_sprite, 50);
}
if (&dam < 100)
{
&speed = 4;
sp_speed(¤t_sprite, 4);
sp_frame_delay(¤t_sprite, 40);
}
if (&dam < 15)
{
&speed = 5;
sp_speed(¤t_sprite, 5);
sp_frame_delay(¤t_sprite, 30);
}
&dam = random(2,1);
if (&dam == 1)
return;
&dam = sp_hitpoints(¤t_sprite, -1);
if (&dam < 6)
{
say("`%Smallwood You Fool!", ¤T_SPRITE);
return;
}
if (&dam < 15)
{
say("`%Your Just Like A Bug Smallwood", ¤T_SPRITE);
return;
}
if (&dam < 50)
{
say("`% I Will Miss You Smallwood", ¤T_SPRITE);
return;
}
if (&dam < 100)
{
say("`%This Is Your Last Fight Smallwood!", ¤T_SPRITE);
return;
}
if (&dam < 140)
{
say("`%Your Going To Hell Smallwood", ¤T_SPRITE);
playsound(49, 22050, 0, ¤t_sprite, 0);
return;
}
if (&dam < 160)
{
say("`%You'll Be Dead Soon.", ¤T_SPRITE);
return;
}
if (&dam < 180)
{
say("`%Your Doing Well Smallwood", ¤T_SPRITE);
return;
}
if (&dam < 200)
{
say("`%Time To Die Smallwood!", ¤T_SPRITE);
return;
}
if (&dam < 240)
{
say("`%This Is So Fun!", ¤T_SPRITE);
return;
}
if (&dam < 260)
{
say("`%Dink You Shall Die", ¤T_SPRITE);
return;
}
if (&dam < 280)
{
say("`%Ouch! You Will Pay For That", ¤T_SPRITE);
return;
}
say("`%Dink Why Bother? Ill Destroy You!", ¤T_SPRITE);
//lock on to the guy who just hit us
//playsound
}
void die( void )
{
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
say("EAT IT!", 1);
add_exp(10000, ¤t_sprite);
freeze(1);
sp_brain(¤t_sprite, 0);
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
&save_x -= 40;
&save_y -= 30;
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
&save_x += 80;
&save_y += 60;
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
&save_x += 10;
&save_y += 20;
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
&save_x -= 30;
&save_y -= 60;
playsound(24, 22052, 0, 0, 0);
int &mcrap = create_sprite(&save_x, &save_y, 7, 167, 1);
sp_seq(&mcrap, 167);
wait(100);
sp_brain_parm(¤t_sprite, 5);
sp_brain(¤t_sprite, 12);
script_attach(1000);
wait(500);
wait(2000);
say_stop("Ha No One Can Kill Me", 1);
wait(500);
say_stop("<Smile>", 1);
&life = &lifemax;
wait(500);
say_stop("Heheheh", 1);
unfreeze(1);
&story = 15;
kill_this_task();
}
ThinkDink has released 6 files
Title | Category | Avg | Updated |
---|---|---|---|
Ultimate Dink-Cheataz | Miscellaneous, Cheat | 9.9 | July 25th, 2003 |
Stone Tiles | Development, Graphics | 5.9 | July 25th, 2003 |
Rivals (The) | D-Mod, Romp | 6.7 | July 22nd, 2003 |
Ghosts of the Cast : The Quest for the Axe of Destruction (The) | D-Mod, Romp | 0.1 | July 15th, 2003 |
Ghosts of the Cast : Seth's Revenge (The) | D-Mod, Romp | 2.3 | July 7th, 2003 |
Ghosts of the Cast (The) | D-Mod, Romp | 1.6 | July 6th, 2003 |