13-11-2008, 03:08 AM
OK dfa here ya go
OK i found what giaken found
like if you go 1 2 3 4 5 then no problem but if you go 1 2 3 4 6 then it throws the error There cannot be empty spaces in between NPC slots the numbers are the npc number. when you use cmbnpc your using the same as the npc list ^^.
OK here's the fix
add to Private Sub cmdOk_Click()
then change ' get the high_npc_index and ' Check to see if there are spaces in between NPC slots
With these
OK i found what giaken found
like if you go 1 2 3 4 5 then no problem but if you go 1 2 3 4 6 then it throws the error There cannot be empty spaces in between NPC slots the numbers are the npc number. when you use cmbnpc your using the same as the npc list ^^.
OK here's the fix
add
Code:
Dim y As Long
then change ' get the high_npc_index and ' Check to see if there are spaces in between NPC slots
With these
Code:
' get the high_npc_index
For i = 1 To MAX_MAP_NPCS
If cmbNpc(i).ListIndex = y Then
High_Npc_Index = i
Exit For
End If
Next i
' Check to see if there are spaces in between NPC slots
If Not High_Npc_Index = 0 Then
For i = High_Npc_Index To MAX_MAP_NPCS
If cmbNpc(i).ListIndex = 0 Then
MsgBox "There cannot be empty spaces in between NPC slots"
Exit Sub
End If
Next i
End If