Child.lpc

Hi Asloluteman. One of the problems I can see in your child.lpc script is that you have two init procedures. You should delete this procedure:

init(arg)
{
// add_action("give","give");
// call_out("childgive",1);
}

since you already have an init procedure.

ie

init()
{
::init();

add_action("give","give");

}

You have a bigger problem. Your give(str) and haslolly() procedure have cut into your 'chat(str)' procedure. You have 'give' and 'haslolly' procedures inside the chat procedure when they should be outside.

Possibly if you fix these two things the child may work.

Also I would have made a backup of your working child.lpc so that you can refer back to it. Something like 'cp child.lpc childold.lpc'.

( categories: )
Submitted by asloluteman on Wed, 2006-09-13 22:14.

hey also skin... where should i put it... im gona take it all and put it into word pad... but where should i put all under the init?

ty Mullen

Submitted by skinhat on Thu, 2006-09-14 00:00.

You got rid of the wrong init procedure. You should have kept:

init()
{
::init();

add_action("give","give");

}

and got rid of the other one.

Also you've got a long blank section in your script. In VI you can delete a line with 'dd' ie pressing d twice.

Also you should move:

if (message)
write(message);
else
::chat(str);

return 1;
}

so that it is before you current init and becomes part of the chat() procedure again ie

"Child asks : Excuse me sir would you mind giving me some
coins.\n"
}) , 1);

}
}

---------
becomes:

"Child asks : Excuse me sir would you mind giving me some
coins.\n"
}) , 1);

}
if (message)
write(message);
else
::chat(str);

return 1;
}

Submitted by skinhat on Thu, 2006-09-14 02:40.

You should have tried cloning before you went to bed because it works!

Submitted by asloluteman on Thu, 2006-09-14 21:54.

lol wow, well ill get on now and see whats up... um i have some stuff to do tonight, so ill be on around 8ish - 9ish my time

ty Mullen

Submitted by asloluteman on Thu, 2006-09-14 21:56.

and one other thing that we need to figure out is where the people are going to be getting the lolly's froom, to give to the child.

ty Mullen

Submitted by asloluteman on Mon, 2006-09-11 21:14.

ok ill check that out... and ill make a back up of most of things that i will be using... i talked to dre today and he's having some comp problems... so when he gets that done the lolly 3d will be ready also im back!!! just took a weekend off at a friends house.

ty Mullen