14-05-2007, 05:17 PM
Sorry about double posting but I have another issue
it highlights if Chkquest.value and says variable not defined and I've tried about everything I know and still no luck any clues?
Code:
' Make sure they are on the same map
If IsPlaying(Attacker) Then
If NpcNum > 0 And GetTickCount > Player(Attacker).AttackTimer + 950 Then
' Check if at same coordinates
Select Case GetPlayerDir(Attacker)
Case DIR_UP
If (MapNpc(MapNum, MapNpcNum).y + 1 = GetPlayerY(Attacker)) And (MapNpc(MapNum, MapNpcNum).x = GetPlayerX(Attacker)) Then
If Npc(NpcNum).Behavior NPC_BEHAVIOR_FRIENDLY And Npc(NpcNum).Behavior NPC_BEHAVIOR_SHOPKEEPER Then
CanAttackNpc = True
Else
If chkQuest.Value = True Then
Call SetCurrentQuest
Call StartQuestMsg
Else
Call PlayerMsg(Attacker, Trim(Npc(NpcNum).Name) & " says: '" & Trim(Npc(NpcNum).AttackSay) & "'", BrightBlue)
End If
End If
End If