Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Undropable Items
#1
It has not been tested, so backup your source.

Since there are not many new tutorials being created, I thought I should share one.

Difficulty 1/5
By William

Explanation
This will make it so a item can either:
  • 0 Be dropable always
  • 1 Cant be dropped from inventory
  • 2 Cant be dropped from inventory or enemy
This could be good for quests and the like.

Client Side
In frmItemEditor add a txt box named: txtDropable

You may only enter a number between 0 and 2, see the numbers above to know what they do.

Now in:
Code:
Public Sub ItemEditorInit()
Add:
Code:
frmItemEditor.txtDropable.Text = Item(EditorIndex).DropAble

In:
Code:
Public Sub ItemEditorOk()
Inside this if statement:
[code]If (frmItemEditor.cmbType.ListIndex >= ITEM_TYPE_WEAPON) And (frmItemEditor.cmbType.ListIndex = ITEM_TYPE_POTIONADDHP) And (frmItemEditor.cmbType.ListIndex
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)