25-02-2009, 08:51 AM
The line that is giving you an error has nothing to do with the functionality of the quest system. All that line does is make the max value of the scroll bar scrlSprites equal to the max height of your sprite sheet. That line might be erroring because of recent changes to MS4.
Secondly, as far as adding the quest to an NPC, all you do is edit an npc and set it's quest number via a scroll bar on the NPC editor called scrlQuest. Which you should have added during this step of the tutorial:
Any more questions?
Secondly, as far as adding the quest to an NPC, all you do is edit an npc and set it's quest number via a scroll bar on the NPC editor called scrlQuest. Which you should have added during this step of the tutorial:
Quote:Now in frmNpcEditor we need to add some stuff
first add
Code:
Private Sub Form_Load()
frmNpcEditor.scrlquest.Max = MAX_QUESTS
End Sub
Private Sub scrlquest_Change()
If scrlquest.Value = 0 Then
frmNpcEditor.Label21.Caption = "None"
Else
frmNpcEditor.Label21.Caption = "Quest Number " & frmNpcEditor.scrlquest.Value
End If
End Sub
Private Sub chkQuest_Click()
If chkQuest.Value = 1 Then
fraQuest.Visible = True
frasay.Visible = False
Else
If chkQuest.Value = 0 Then
fraQuest.Visible = False
frasay.Visible = True
End If
End If
End Sub
Now add a check box name it chkQuest, its caption: check to start quest.
Now make a two frames names frasay and the other fraQuest.
For frame frasay cut and add the textbox, txtAttackSay.
and in fraQuest make a label named: Label21, and a Hscrollbar named: scrlquest.
now set scrlquest min to 0 and the maxium to what ever you want like 30000.it doesn't matter.
now set fraQuest visible to false and frasay to true.
Any more questions?