trouble with unfinished business
Unfinished Business
When I kill the dragon in the house with the key the game freezes, and I have to quit every time. Am I missing something?
January 11th 2004, 05:40 PM
Ace
I have the same problem and some of us are not script saavy enough to figure out what to do. I read your comments and I am confused as to how to to fix the freeze problem with the dragon.
Can you please give us a patch or tell me in "hey I'm not a script genious" language. If not, guess I need to give up
Can you please give us a patch or tell me in "hey I'm not a script genious" language. If not, guess I need to give up
Copy the next lines to Notepad or something, and save it as "en-drag.c". (Without the "). Place this en-drag.c to the story directory of the DMod with the bug. It should work now.
//Start copying here
//pillbug brain
void main( void )
{
int &fsave_x;
int &kcrap;
int &fsave_y;
int &resist;
int &mcounter;
int &mtarget;
screenlock(1);
sp_brain(¤t_sprite, 10);
sp_timing(¤t_sprite, 66);
sp_speed(¤t_sprite, 1);
sp_nohit(¤t_sprite, 0);
sp_exp(¤t_sprite, 400);
sp_base_walk(¤t_sprite, 200);
sp_base_death(¤t_sprite, 210);
sp_touch_damage(¤t_sprite, 10);
sp_hitpoints(¤t_sprite, 80);
sp_defense(¤t_sprite, 8);
preload_seq(202);
preload_seq(204);
preload_seq(206);
preload_seq(208);
preload_Seq(70);
preload_Seq(166);
set_callback_random("target",500,2000);
}
void target( void )
{
//get new target
&kcrap = random(9, 1);
if (&life < 1)
&kcrap = 2;
if (&kcrap == 1)
{
sp_target(¤t_sprite, 1);
return;
}
&mtarget = get_sprite_with_this_brain(16, ¤t_sprite);
if (&mtarget > 0)
{
&mtarget = get_rand_sprite_with_this_brain(16, ¤t_sprite);
sp_target(¤t_sprite, &mtarget);
}
}
void attack( void )
{
playsound(47, 22050,0,0,0);
&kcrap = sp_target(¤t_sprite, -1);
&fsave_x = sp_x(&kcrap, -1);
&fsave_y = sp_y(&kcrap, -1);
&mcounter = random(5000,3000);
sp_attack_wait(¤t_sprite, &mcounter);
&resist = random(40, 1);
//if NPC, turn off resist option
if (&kcrap != 1)
&resist = 100000;
if (&resist > &magic)
{
say("`4<Casts harm>", ¤t_sprite);
playsound(31, 12050,0,0, 0);
hurt(&kcrap, 20);
&fsave_y -= 29;
int &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 )
{
sp_target(¤t_sprite, &enemy_sprite);
playsound(46, 17050, 4000, ¤t_sprite, 0);
//lock on to the guy who just hit us
//playsound
}
void die( void )
{
if (get_sprite_with_this_brain(10, ¤t_sprite) == 0)
{
//no more brain 10 monsters here, lets unlock the screen
if (&life > 0)
{
screenlock(0);
}
}
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
external("emake","xlarge");
}
//Copying done, save as en-drag.c
//Start copying here
//pillbug brain
void main( void )
{
int &fsave_x;
int &kcrap;
int &fsave_y;
int &resist;
int &mcounter;
int &mtarget;
screenlock(1);
sp_brain(¤t_sprite, 10);
sp_timing(¤t_sprite, 66);
sp_speed(¤t_sprite, 1);
sp_nohit(¤t_sprite, 0);
sp_exp(¤t_sprite, 400);
sp_base_walk(¤t_sprite, 200);
sp_base_death(¤t_sprite, 210);
sp_touch_damage(¤t_sprite, 10);
sp_hitpoints(¤t_sprite, 80);
sp_defense(¤t_sprite, 8);
preload_seq(202);
preload_seq(204);
preload_seq(206);
preload_seq(208);
preload_Seq(70);
preload_Seq(166);
set_callback_random("target",500,2000);
}
void target( void )
{
//get new target
&kcrap = random(9, 1);
if (&life < 1)
&kcrap = 2;
if (&kcrap == 1)
{
sp_target(¤t_sprite, 1);
return;
}
&mtarget = get_sprite_with_this_brain(16, ¤t_sprite);
if (&mtarget > 0)
{
&mtarget = get_rand_sprite_with_this_brain(16, ¤t_sprite);
sp_target(¤t_sprite, &mtarget);
}
}
void attack( void )
{
playsound(47, 22050,0,0,0);
&kcrap = sp_target(¤t_sprite, -1);
&fsave_x = sp_x(&kcrap, -1);
&fsave_y = sp_y(&kcrap, -1);
&mcounter = random(5000,3000);
sp_attack_wait(¤t_sprite, &mcounter);
&resist = random(40, 1);
//if NPC, turn off resist option
if (&kcrap != 1)
&resist = 100000;
if (&resist > &magic)
{
say("`4<Casts harm>", ¤t_sprite);
playsound(31, 12050,0,0, 0);
hurt(&kcrap, 20);
&fsave_y -= 29;
int &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 )
{
sp_target(¤t_sprite, &enemy_sprite);
playsound(46, 17050, 4000, ¤t_sprite, 0);
//lock on to the guy who just hit us
//playsound
}
void die( void )
{
if (get_sprite_with_this_brain(10, ¤t_sprite) == 0)
{
//no more brain 10 monsters here, lets unlock the screen
if (&life > 0)
{
screenlock(0);
}
}
int &hold = sp_editor_num(¤t_sprite);
if (&hold != 0)
editor_type(&hold, 6);
&save_x = sp_x(¤t_sprite, -1);
&save_y = sp_y(¤t_sprite, -1);
external("emake","xlarge");
}
//Copying done, save as en-drag.c
January 12th 2004, 07:01 PM
Ace
OK, OK, OK I tried! Didn't work. I tried to save as everything I could from Word to eternity and it would not recognize the file.
I attempted to re-follow your previous script and I could not open with any text-editor to fix or anything else for that matter. I guess this is the end for me. Thanks for trying to help me out
I attempted to re-follow your previous script and I could not open with any text-editor to fix or anything else for that matter. I guess this is the end for me. Thanks for trying to help me out
Uh, you're using Microsoft Word? HAHAHA. Use notepad. And what do you mean you "could not open with any text-editor"?
January 13th 2004, 06:11 AM
Ace
Maybe I am a little slow - I can't find "notepad" to save the script in. As for text editor the previous e-mail before mine stated to use text editor.
Hey - I am NO computer whiz so be gentle
Hey - I am NO computer whiz so be gentle
ok i'll tell you as an non-computer wiz to a non-computer wiz [no sarcazm- i realy am no wiz]
press your right mouse button,then move your pointer on new,and select new "text document"
then paste the script that magic man posted. then change hte ending from ".txt" to ".c". and renamit "endrag"
And, this time from a computer whiz to a non-computer whiz: if you don't see the extension of a file and if you have the Windows OS (Operating System), go to the English equivalent of Extra > Options (something like that) > Second Tab > and look for an option that hides the file extensions and uncheck the box.
January 14th 2004, 06:15 PM
Ace
Hey - thanks for your help. I saved the info like that before and it did not work, maybe I am still doing something wrong. I tried it again and still no luck. I guess at this point I'm thankful for your help.
I hate not finishing the game, but just need to move on. I've played all of them once, twice and some 3 times and am looking forward to the next one coming out. Who knows maybe I can learn how to creat one myself
I hate not finishing the game, but just need to move on. I've played all of them once, twice and some 3 times and am looking forward to the next one coming out. Who knows maybe I can learn how to creat one myself
January 15th 2004, 05:18 PM
Ace
What? OK - looks like I must a missed something, what's with the dragon??
Uh, RS, if she renamed the file to the exact same name, the file would already be attached. Eheh.
or you could download the patch.
http://w1.393.telia.com/~u39303926/files/b_patch_1.2.zip
http://w1.393.telia.com/~u39303926/files/b_patch_1.2.zip
I read thru all these reviews, but they don't help me. I Killed the dragon, went to hut, read note, went back, got the key; SO now what do I do with it?????? I also found a winter spot, but there's nothing to do there (I'm not sure on this, because I haven't got any fireball spell, and there are sure a lot of trees "need burnin'!") Is there a fire ball spell in the dmod? Anyone? If so, please tell me what I gotta do to get it! Thanx.