Domino_ Posted January 6, 2012 Author Share Posted January 6, 2012 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 WithEnd If```I'v made like this and added chkIsItemBow in itemeditor```If frmEditor_Item.cmbType.ListIndex = ITEM_TYPE_WEAPON ThenIf 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 WithEnd IfEnd 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 ByteAnd add like thisIf frmEditor_Item.chkIsItemBow.value = 1.IsItemBow ThenBut didn work agn... please help also this is fix for that bug... Or mistake. ^^ Link to comment Share on other sites More sharing options...
Joyce Posted January 6, 2012 Share Posted January 6, 2012 Do you save it to the item array and load it from there properly? Or are you just assuming adding buttons will change things? Link to comment Share on other sites More sharing options...
Domino_ Posted January 6, 2012 Author Share Posted January 6, 2012 I added button, then tryed in item Rec and other places to edit and add in this check… but I have not regained this.... :( Link to comment Share on other sites More sharing options...
Domino_ Posted January 6, 2012 Author Share Posted January 6, 2012 Found my problem…. Fixed. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now