Abaixo de Sub ScriptedTile(index, Script) eu coloquei uma case com o seguinte conteúdo
If GetPlayerInvItemNum(Index, 4) Then
Call TakeItem(index, 4, 1)
Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 180)
Call SendInventoryUpdate(index, Slot)
End If
E no final do editor de scripts isso
Sub TakeItem(index, item, value)
If value = "all" Then
Slot = 1
Do While Slot < 24
If GetPlayerInvItemNum(index, Slot) = item Then
Call SetPlayerInvItemNum(index, Slot, 0)
Call SetPlayerInvItemValue(index, Slot, 0)
Call SendInventoryUpdate(index, Slot)
Slot = 24
End If
Slot = Slot + 1
Loop
Else
Slot = 1
Do While Slot < 24
If GetPlayerInvItemNum(index, Slot) = item Then
Call SetPlayerInvItemNum(index, Slot, 0)
Call SetPlayerInvItemValue(index, Slot, GetPlayerInvItemValue(index, Slot) - value)
Call SendInventoryUpdate(index, Slot)
Slot = 24
End If
Slot = Slot + 1
Loop
End If
End Sub
If GetPlayerInvItemNum(Index, 4) Then
Call TakeItem(index, 4, 1)
Call SetPlayerPOINTS(index, GetPlayerPOINTS(index) + 180)
Call SendInventoryUpdate(index, Slot)
End If
E no final do editor de scripts isso
Sub TakeItem(index, item, value)
If value = "all" Then
Slot = 1
Do While Slot < 24
If GetPlayerInvItemNum(index, Slot) = item Then
Call SetPlayerInvItemNum(index, Slot, 0)
Call SetPlayerInvItemValue(index, Slot, 0)
Call SendInventoryUpdate(index, Slot)
Slot = 24
End If
Slot = Slot + 1
Loop
Else
Slot = 1
Do While Slot < 24
If GetPlayerInvItemNum(index, Slot) = item Then
Call SetPlayerInvItemNum(index, Slot, 0)
Call SetPlayerInvItemValue(index, Slot, GetPlayerInvItemValue(index, Slot) - value)
Call SendInventoryUpdate(index, Slot)
Slot = 24
End If
Slot = Slot + 1
Loop
End If
End Sub