/*
       -= SEER - C-Scripting engine v 0.93a =-
State      : under implementation
Author     : Przemyslaw Podsiadly
             email: ppodsiad@elka.pw.edu.pl
             WWW:   http://home.elka.pw.edu.pl/~ppodsiad/seer
File:excpp.sc
Desc:script with C++ example: interaction between C++ and Script
*/

#include theHeader
#title "ExCPP"
#author "Przemyslaw Podsiadly 1999"

char *my_name;

void On_Talk(NPC *with)
{
 if (with->get_sex()==MAN)
 {
//      printf("Greetings, gentleman %s.\n",with->get_name());
// or with string:
      printf("%s",string("Greetings, gentleman ")+with->get_name()+".\n");

 }
 else   //I hope there is no other sex...
 {
        printf("It's really a pleasure to meet you, lady %s.\n",with->get_name());
 }
 printf("Please, look around. I've plenty of wares you may find interesting..\n");
}

void Init(char *name)
{my_name=name;
 printf("I'm ALIVE!! My name is %s\n",name);
}

