The Dink Network

Reply to Re: PROBLEM!!

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:
 
 
February 27th 2006, 01:28 PM
pq_knight.gif
and1
Peasant He/Him
 
MAIN.c
{
make_gobal_int("&druidq",0);
}

druidboss-1.c

void talk (void)
{
freeze(1);
freeze(&current_sprite);
if(&druidq == 0)
{
say_stop("`4Dink we need your help!",&current_sprite);
say_stop("Ok,What do you need",1);
say_stop("`4We are out of healing powder",&current_sprite);
say_stop("So?",1);
say_stop("`4We need it for experiments and such",&current_sprite);
say_stop("Can't you get it yourself?",1);
say_stop("`4No,we are buisy can you go and talk to healer?",&current_sprite);
say_stop("Ok i guess",1);
say_stop("`4Hurry!",&current_sprite);
say_stop("I will",1);
&druidq = 1;
goto done;
}
if(&druidq == 1)
{
say_stop("`4Do you have it?",&current_sprite);
say_stop("Nope not yet",&current_sprite);
say_stop("`4Please go get it",&current_sprite);
say_stop("Ok",1);
}
if(&druidq == 2)
{
say_stop("She sad she's gonna send it to you",1);
say_stop("`4Good",&current_sprite);
say_stop("Where is my reward?",1);
say_stop("`4Ah.Here it is",&current_sprite);
choice_start();
title_start();
Chose your reward:
title_end();
"Strenght +1"
"Defense +1"
"Magic +1"
choice_end();
if(&result == 1)
{
&druidq = 3;
&strenght += 1;
goto done;
}
if(&result == 2)
{
&druidq = 3;
&defense += 1;
goto done;
}
if(&result == 3)
{
&druidq = 3;
&magic += 1;
goto done;
}
if(&druidq == 3)
{
say_stop("`4Hi Dink",&current_sprite);
say_stop("Hi",1);
}
done:
unfreeze(1);
unfreze(&current_sprite);
}

healer.c

void talk (void)
{
freeze(1);
choice_start();
(&life<&lifemax) "Heal me"
(&druidq == 1) "Druid's told me to ask you to give em some healing powder"
"Leave"
choice_end();
if(&result == 1)
{
&life=&lifemax
goto kraj;
}
if(&result == 2)
{
say_stop("`8Say to them that i will send it",&current_sprite);
wait(250);
say_stop("Ok",1);
&druidq = 2
goto kraj;
}
kraj:
unfreeze(1);
}

ITS REWRITEN BUT IT STILL DOESNT WORK