[Question]CoEmu patch 5095

02/11/2010 19:24 renetjuuh#1
hello everyone,

im using the great source from andy(CoEmu) its patch 5095.
but i got an problem when im making an npc. i think i neet to ashamed my self for asking this, but there im here for to learn.

i got an problem with this:
The name 'Face' does not exist in the current context.
The name 'InventoryContains' does not exist in the current context.
The name 'ReturnUID' does not exist in the current context.
The name 'AddItem' does not exist in the current context .
its all in npctalk.

can someone tell me what to do and were to find this.

NOTE: i dont wanne have codes because then i never learn C
02/11/2010 21:03 pro4never#2
those are all functions that belong in the Handler>npctalk.cs. They would go down near the bottom (there should already be a few down there that are something like "public static void "name")

Functions are basically a script you can call from elsewhere using various input/output that can return a value.

eg

int ANumber = DivideXbyY(10, 1);


would refer to a function named DivideXbyY which would be coded as...

public static void DivideXbyY(int x, int y)
{
int toReturn = x / y;
return(toReturn)
}

or something similar.

As for the functions you are looking for, all of them have been released on the forum already, I'd suggest searching.

<edit>

if you are using coemu, I suggest taking a look at the basic coding guide I posted in my siggy. It's basic but covers simple stuff like types of data, functions, loops, simple ways to implement certain features and stuff like that.
02/11/2010 23:07 renetjuuh#3
oke i will do that because coemu is just realy realy well coded , and im going to fallow your guids
02/12/2010 07:37 sawickas#4
Agre coemu codet wery well
02/12/2010 23:53 Huseby#5
#Closed