[HELP] simple code for npc!

Results 1 to 6 of 6
  1. #1
    Novice Tehtest is offline
    MemberRank
    May 2008 Join Date
    4Posts

    [HELP] simple code for npc!

    HI there~!
    well im kinda new one in codeing and stuff!
    can someone give me a code for simple npc?
    im useing hadeset source... i need easy code like npc say: "Hi" just for example to code my own npcs =\ and in witch file to code them =S


  2. #2
    Account Upgraded | Title Enabled! Korvacs is offline
    MemberRank
    Jan 2008 Join Date
    298Posts

    Re: [HELP] simple code for npc!

    NpcSays("Hi");

    :)

  3. #3
    Account Upgraded | Title Enabled! Ultimatum is offline
    MemberRank
    Feb 2008 Join Date
    EnglandLocation
    334Posts

    Re: [HELP] simple code for npc!

    depends on the npc structures =)

  4. #4
    Account Upgraded | Title Enabled! hadeset is offline
    MemberRank
    Dec 2006 Join Date
    240Posts

    Re: [HELP] simple code for npc!

    Quote Originally Posted by Korvacs View Post
    NpcSays("Hi");

    :)
    Lol. Would you mind explaining what NpcSays exaclty does? :P
    (Prolly not)

  5. #5
    Novice Tehtest is offline
    MemberRank
    May 2008 Join Date
    4Posts

    Re: [HELP] simple code for npc!

    -.-

  6. #6
    Account Upgraded | Title Enabled! Korvacs is offline
    MemberRank
    Jan 2008 Join Date
    298Posts

    Re: [HELP] simple code for npc!

    That was just an example of what an npc structure for saying Hi could look like, ive not written mine but it wont look anything like that i can assure you....

    But in that example i suppose would be more or less like the coemu version where by NpcSays would send an npctalk packet informing the client of the npc saying that as its message you could then incorporate

    NpcOption("Hello",1);
    NpcFinsh(1);

    NpcOption contains the string for the option and the type of option it is, and NpcFinsh contains the value of the npcs avatar and would finsh the dialog

    Making Npcs say stuff is pretty simple, having them perform actions is where it gets interesting



Advertisement