| Mirage Source http://www.miragesource.net/forums/ |
|
| Show Item-Data http://www.miragesource.net/forums/viewtopic.php?f=201&t=3496 |
Page 1 of 1 |
| Author: | Sebalon [ Mon Mar 17, 2008 10:20 am ] |
| Post subject: | Show Item-Data |
Hi, i have a smal problem to get the Itemdata. I used the Vis-Inv Tutorial fom the Tut-Section. I dont realy know how i can make it else: Code: Dim d As Long For d = 1 To 12 On Error Resume Next If Index = d Then lstInv.Selected(d) = True If Item(GetPlayerInvItemNum(MyIndex, lstInv.SelCount + d - 1)).Name = "" Then IName.Caption = "" Else If Item(GetPlayerInvItemNum(MyIndex, d)).Type = ITEM_TYPE_CURRENCY Then IName.Caption = Trim(Item(GetPlayerInvItemNum(MyIndex, d)).Name) & " (" & GetPlayerInvItemValue(MyIndex, d) & ")" Else ' Check if this item is being worn If GetPlayerWeaponSlot(MyIndex) = d Or GetPlayerArmorSlot(MyIndex) = d Or GetPlayerHelmetSlot(MyIndex) = d Or GetPlayerShieldSlot(MyIndex) = d Then IName.Caption = Trim(Item(GetPlayerInvItemNum(MyIndex, d)).Name) & " (angelegt)" 'Here i want to show the Damage/Armor Me.lbl_wert.Caption = "Schaden/Rüstung: " & Trim(Item(GetPlayerInvItemNum(MyIndex, d).Data2)) Else IName.Caption = Trim(Item(GetPlayerInvItemNum(MyIndex, d)).Name) End If End If End If End If Next d And every Time the Value i get is 0. |
|
| Author: | William [ Mon Mar 17, 2008 11:53 am ] |
| Post subject: | Re: Show Item-Data |
Please post it with code tags and indents, then I will help. |
|
| Author: | Sebalon [ Mon Mar 17, 2008 11:57 am ] |
| Post subject: | Re: Show Item-Data |
k, i editet it.... |
|
| Author: | William [ Mon Mar 17, 2008 12:10 pm ] |
| Post subject: | Re: Show Item-Data |
Where do you have this code? |
|
| Author: | Sebalon [ Mon Mar 17, 2008 12:13 pm ] |
| Post subject: | Re: Show Item-Data |
frmMirage.... On the picInv_Click... Imade with a Tutorial a visual Inventory and the code shows what happend when i click on one of the Inv_Slots. |
|
| Author: | William [ Mon Mar 17, 2008 12:16 pm ] |
| Post subject: | Re: Show Item-Data |
Then start with remoing the for loop, cause you get the index from the inv slot you pressed on. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|