Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Item editor check not saving


Domino_
 Share

Recommended Posts

Hey! I have a big problem because I dont know how to add chkIsItemBow in item editor so he saves afther clicking on it and is chk = 1 then items is bow if 0 then sword / etc.
Foun this in projectile source and dunno how to fix.

This is that place whan need to be fixed
```

If frmEditor_Item.cmbType.ListIndex = ITEM_TYPE_WEAPON Then
    frmEditor_Item.Frame4.Visible = True
    With Item(EditorIndex).ProjecTile
          frmEditor_Item.scrlProjectileDamage.Value = .Damage
          frmEditor_Item.scrlProjectilePic.Value = .Pic
          frmEditor_Item.scrlProjectileRange.Value = .Range
          frmEditor_Item.scrlProjectileSpeed.Value = .Speed
    End With
End If
```I'v made like this and added chkIsItemBow in itemeditor
```

If frmEditor_Item.cmbType.ListIndex = ITEM_TYPE_WEAPON Then
If frmEditor_Item.chkIsItemBow.value = 1 Then
    frmEditor_Item.Frame4.Visible = True
    With Item(EditorIndex).ProjecTile
          frmEditor_Item.scrlProjectileDamage.Value = .Damage
          frmEditor_Item.scrlProjectilePic.Value = .Pic
          frmEditor_Item.scrlProjectileRange.Value = .Range
          frmEditor_Item.scrlProjectileSpeed.Value = .Speed
    End With
End If
End If
```But doesnt work because I log in game open item editor make chk as checked and save, when I open item editor agn he shows unchecked it….

Also tryed make in Private Type ItemRec IsItemBow As Byte
And add like this
If frmEditor_Item.chkIsItemBow.value = 1
.IsItemBow Then
But didn work agn... please help also this is fix for that bug... Or mistake. ^^
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...