The Dink Network

hitting twice on Ctrl

January 8th 2006, 12:23 PM
milder.gif

Sorry this post is useless. It is working right. I played another dmod not mine. SOrry for the inconvenience.

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I am using this script for the healingpersons in my dmod. But when I want to buy one bottle I have to press Ctrl twice. What is wrong with my script?

//heal person in first world

void main( void )
{ int &crap = create_sprite(185,150, 0, 0, 0); &temphold = &crap; int &amount = 0;

preload_seq(95);
preload_seq(95);
int &myrand;
sp_brain(&temphold, 0);
sp_base_walk(&temphold, 90);
sp_speed(&temphold, 0);

//set starting pic

sp_pseq(&temphold, 95);
sp_pframe(&temphold, 1);

mainloop:
wait(500);
&myrand = random(8, 1);
if (&myrand == 1) { sp_pseq(&temphold, 95); }
if (&myrand == 2) { sp_pseq(&temphold, 95); }

goto mainloop;
}

void buybottle( void)
{
int &junk = free_items();

if (&junk < 1) { choice_start() set_y 240 title_start();
You are carrying too much. title_end(); "Ok" choice_end() return; }

if (&gold < 25) { choice_start() set_y 240 title_start();
You don't have enough gold to buy elixer. title_end(); "Ok" choice_end() return; }

&gold -= 25;
add_item("item-eli",438, 9);

}

void hit( void )
{
sp_speed(¤t_sprite, 0);
wait(400);
say_stop("`%Please don't wreck the place, thanks.", &temphold);
wait(800);
goto mainloop;
}

void talk( void )
{
freeze(1);
startok:

if (&life >= &lifemax)
{ choice_start(); set_y 240 set_title_color 15 title_start(); title_end(); "Buy a bottle of elixer for $25" "Leave" choice_end();

}
startchoice:
&amount = &lifemax;
&amount -= &life;
choice_start() set_y 240 set_title_color 15 "Buy a bottle of elixer for $25" "Leave" choice_end()
if (&result == 1) { buybottle(); }
unfreeze(1); goto mainloop; return;

}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX