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

[EO] Crafting, Blacksmithing, Alchemy, Ect. v.2.0.0


DJMaxus
 Share

Recommended Posts

        lblItem1.Caption = "Item: " & Trim$(Item(scrlItem1.Value).Name)

for some reason there's something wrong with this for me..
The game stops running because of the error

this is the sub btw

Private Sub scrlItem1_Change()
If scrlItem1.Value > 0 Then
        lblItem1.Caption = "Item: " & Trim$(Item(scrlItem1.Value).Name)
    Else
        lblItem1.Caption = "Item: None"
    End If

    Item(EditorIndex).Data1 = scrlItem1.Value
End Sub
Link to comment
Share on other sites

  • Replies 137
  • Created
  • Last Reply

Top Posters In This Topic

@stefans:

> lblItem1.Caption = "Item: " & Trim$(Item(scrlItem1.Value).Name)
>
> for some reason there's something wrong with this for me..
> The game stops running because of the error
>
> this is the sub btw
>
> Private Sub scrlItem1_Change()
> If scrlItem1.Value > 0 Then
>         lblItem1.Caption = "Item: " & Trim$(Item(scrlItem1.Value).Name)
>     Else
>         lblItem1.Caption = "Item: None"
>     End If
>    
>     Item(EditorIndex).Data1 = scrlItem1.Value
> End Sub

Did you do:

> Open up frmEditor_Item
> Add the following items to it: (You may have to extend the form and make room)
>
> 1\. Frame, call it fraRecipe (Visible should be set to false)
> 2\. ComboBox, call it cmbCTool
>
> The following should be placed within fraRecipe
> 3\. Label, call it lblItem1
> 4\. Label, call it lblItem2
> 5\. Label, call it lblResult
> 6\. Scroll Bar, call it scrlItem1
> 7\. Scroll Bar, call it scrlItem2
> 8\. Scroll Bar, call it scrlResult
> 9\. ComboBox, call it cmbCToolReq
Link to comment
Share on other sites

  • 1 month later...
when i try to make an item i get an rte error 9 and it highlights this```
CopyMemory ByVal VarPtr(Item(n)), ByVal VarPtr(ItemData(0)), ItemSize
```anyone else had this problem?
its in the handle save item sub.

Nevermind fixed it :0 im just kinda dumb sometimes.
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...
> > For now there is only 2 item combination, to make more item combination I need add Data4, Data5 as example? I know its not only in one place where need to add but is that the best way to do this?
>
> That is one way of doing it, but I think the best way is to use an array.
>
> Example:
>
> ```
> Item(ItemNum).RecipeItem(Index)
> ```

I too would like to be able to create a recipe that requires more than two items (preferably four) but I'm not familiar with arrays. Could somebody please explain to me how to do this in more depth?
Link to comment
Share on other sites

  • 6 months later...
  • 1 month later...
  • 3 months later...
  • 5 months later...

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...