Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quest help
#9
Sorry about double posting but I have another issue

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
it highlights if Chkquest.value and says variable not defined and I've tried about everything I know and still no luck any clues?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)