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

Die penality


DAK3
 Share

Recommended Posts

What i have to change?? plz tell me ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

Sub OnDeath(ByVal index As Long)

Dim i As Long

' Set HP to nothing

Call SetPlayerVital(index, Vitals.HP, 0)

'Drop inventory items

For i = 1 To MAX_INV

PlayerMapDropItem index, i, GetPlayerInvItemValue(index, i)

Next

'Send all equiped items to the inventory to be dumped.

For i = 1 To Equipment.Equipment_Count - 1

If GetPlayerEquipment(index, i) > 0 Then

PlayerMapDropItem index, GetPlayerEquipment(index, i), 0

End If

'Send Weapon

GiveInvItem index, GetPlayerEquipment(index, Weapon), 0

SetPlayerEquipment index, 0, Weapon

'Send Armor

GiveInvItem index, GetPlayerEquipment(index, Armor), 0

SetPlayerEquipment index, 0, Armor

'Send Shield

GiveInvItem index, GetPlayerEquipment(index, shield), 0

SetPlayerEquipment index, 0, shield

'Send Helmet

GiveInvItem index, GetPlayerEquipment(index, Helmet), 0

SetPlayerEquipment index, 0, Helmet

Next

'Drop *equipped* inventory items

For i = 1 To MAX_INV

PlayerMapDropItem index, i, 0

Next
Link to comment
Share on other sites

```

'Drop inventory items

For i = 1 To MAX_INV

PlayerMapDropItem index, i, GetPlayerInvItemValue(index, i)

Next

'Send all equiped items to the inventory to be dumped.

For i = 1 To Equipment.Equipment_Count - 1

If GetPlayerEquipment(index, i) > 0 Then

PlayerMapDropItem index, GetPlayerEquipment(index, i), 0

End If

'Send Weapon

GiveInvItem index, GetPlayerEquipment(index, Weapon), 0

SetPlayerEquipment index, 0, Weapon

'Send Armor

GiveInvItem index, GetPlayerEquipment(index, Armor), 0

SetPlayerEquipment index, 0, Armor

'Send Shield

GiveInvItem index, GetPlayerEquipment(index, shield), 0

SetPlayerEquipment index, 0, shield

'Send Helmet

GiveInvItem index, GetPlayerEquipment(index, Helmet), 0

SetPlayerEquipment index, 0, Helmet

Next

'Drop *equipped* inventory items

For i = 1 To MAX_INV

PlayerMapDropItem index, i, 0

Next

```

That's what you need to remove.
Link to comment
Share on other sites

> ```
>
> 'Drop inventory items
>
> For i = 1 To MAX_INV
>
> PlayerMapDropItem index, i, GetPlayerInvItemValue(index, i)
>
> Next
>
> 'Send all equiped items to the inventory to be dumped.
>
> For i = 1 To Equipment.Equipment_Count - 1
>
> If GetPlayerEquipment(index, i) > 0 Then
>
> PlayerMapDropItem index, GetPlayerEquipment(index, i), 0
>
> End If
>
> 'Send Weapon
>
> GiveInvItem index, GetPlayerEquipment(index, Weapon), 0
>
> SetPlayerEquipment index, 0, Weapon
>
> 'Send Armor
>
> GiveInvItem index, GetPlayerEquipment(index, Armor), 0
>
> SetPlayerEquipment index, 0, Armor
>
> 'Send Shield
>
> GiveInvItem index, GetPlayerEquipment(index, shield), 0
>
> SetPlayerEquipment index, 0, shield
>
> 'Send Helmet
>
> GiveInvItem index, GetPlayerEquipment(index, Helmet), 0
>
> SetPlayerEquipment index, 0, Helmet
>
> Next
>
> 'Drop *equipped* inventory items
>
> For i = 1 To MAX_INV
>
> PlayerMapDropItem index, i, 0
>
> Next
>
> ```
>
> That's what you need to remove.

I removed it but i lose my items too…
Link to comment
Share on other sites

> You could always ask anyone on the forum with VB6 to do it. Sorry I didn't reply so fast. I have a bit of a *cough* [https://www.dropbox….lect=client.zip](https://www.dropbox.com/home/New%20folder?select=client.zip) *cough* cold

it say the "folder do not exist
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...