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

A [Question]


Existanz
 Share

Recommended Posts

In your server folder then scripts folder, open your main.txt in notepad.
Hit Ctrl + F and type Sub DropItems(Index)

```
' Executes on death, dropping all of the players items.
Sub DropItems(Index)
  ' Remove this to enable.
  Exit Sub

  If GetPlayerWeaponSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerWeaponSlot(Index), 0)
  End If

  If GetPlayerArmorSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerArmorSlot(Index), 0)
  End If

  If GetPlayerHelmetSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerHelmetSlot(Index), 0)
  End If

  If GetPlayerShieldSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerShieldSlot(Index), 0)
  End If

  If GetPlayerLegsSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerLegsSlot(Index), 0)
  End If

  If GetPlayerRingSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerRingSlot(Index), 0)
  End If

  If GetPlayerNecklaceSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerNecklaceSlot(Index), 0)
  End If
End Sub

```
This line of code controls if you drop all your items upon death or not.
Link to comment
Share on other sites

I copy and paste that what u said (' Executes on death, dropping all of the players items.
Sub DropItems(Index)
  ' Remove this to enable.
  Exit Sub

  If GetPlayerWeaponSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerWeaponSlot(Index), 0)
  End If

  If GetPlayerArmorSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerArmorSlot(Index), 0)
  End If

  If GetPlayerHelmetSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerHelmetSlot(Index), 0)
  End If

  If GetPlayerShieldSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerShieldSlot(Index), 0)
  End If

  If GetPlayerLegsSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerLegsSlot(Index), 0)
  End If

  If GetPlayerRingSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerRingSlot(Index), 0)
  End If

  If GetPlayerNecklaceSlot(Index) > 0 Then
      Call PlayerMapDropItem(Index, GetPlayerNecklaceSlot(Index), 0)
  End If
End Sub) and he still drop's weapon and other items…
Link to comment
Share on other sites

The characters shouldn't be dropping items. By default, they don't, so I'm not sure what you did. Having the Exit Sub there at the top disables the dropping items Sub. Make sure you have it there and have saved your Main.txt. Then, restart your Server and try again.
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...