23-02-2008, 09:43 PM
I was working on changing my things around in my NPCs (read Portal To Bakaria development logs to see exactly) and after changing the getNpcMaxHP sub, I couldn't attack me NPC's. Looking into it I found this code:
I uncommented it and it worked fine. But why has it been commented out? In a vanilla MSE1 it is commented out to...
Code:
' ////////////////////////////////////////////////////////
' // This is used for checking if an NPC is dead or not //
' ////////////////////////////////////////////////////////
' Check if the npc is dead or not
'If MapNpc(y, x).Num > 0 Then
' If MapNpc(y, x).HP 0 And Npc(MapNpc(y, x).Num).DEF > 0 Then
' MapNpc(y, x).Num = 0
' MapNpc(y, x).SpawnWait = TickCount
' End If
'End If
I uncommented it and it worked fine. But why has it been commented out? In a vanilla MSE1 it is commented out to...