[Question]NPC

01/20/2010 00:34 coreymills#1
with the dic city npc how does the npc know ur killing the right mob
01/20/2010 01:07 .Ryu#2
Quote:
Originally Posted by coreymills View Post
with the dic city npc how does the npc know ur killing the right mob
What do you mean for the item droping?
01/20/2010 01:10 coreymills#3
no like in dis city u have to kill 1300 mobs befor it will teleport u to the next stage how would the npc know that u killed the 1300 mobs
01/20/2010 01:17 pro4never#4
The npc has no idea. You have to code it into the monster death code by saying something along the line of

Code:
if(GC.MyChar.DisCityON && map number = lvl 2 dis)
   {
        if (GC.MyChar.DisKo < #Needed to continue)        
           GC.MyChar.DisKO += 1;
        else
           print msg saying that you have enough kos
    }
I probably have some of that wrong seeing as I don't use lotf but that's basically how it works.

Then have the npc check that the kos are > amount needed to move on and if they are, teleport the player to next dis level.
01/20/2010 01:17 .Ryu#5
Quote:
Originally Posted by coreymills View Post
no like in dis city u have to kill 1300 mobs befor it will teleport u to the next stage how would the npc know that u killed the 1300 mobs
Hahah nvm pro4never gave you it :P
01/20/2010 01:24 coreymills#6
thanks again pro
01/20/2010 01:49 pro4never#7
No problem. If you have any other questions lemme know. I'm getting bored again and have nothing to code really (I'm kinda tempted to write a FULL dis quest for CoEmu... just cause there's been so many half finished ones in the past few days)
01/20/2010 02:20 coreymills#8
yai'm doing it to get better at coding
01/20/2010 05:03 Santa#9
Quote:
Originally Posted by pro4never View Post
No problem. If you have any other questions lemme know. I'm getting bored again and have nothing to code really (I'm kinda tempted to write a FULL dis quest for CoEmu... just cause there's been so many half finished ones in the past few days)
You should update the CoFuture source to 5017 like you said you wanted to. Hehe. I know you don't want to get into it really, but hey, will teach ya some about packets i suppose.