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

EE question


furtzown
 Share

Recommended Posts

I cant cast spell…
I make elements, the spell, the item for spell
everything right
but when I try to cast the spell nothing happen and it say .. cannot cast the spell!

I got another question too, when we die, we loose all our equipped item. how can I change that?

thanks
Link to comment
Share on other sites

Cannot cast spell appears when you do not have a target. Target a player or a NPC by right-clicking.

By default you do not loose your equipment on death. You must have changed that in Main.txt. Go to Main.txt and change Sub DropItems to:

```
' 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

```
Link to comment
Share on other sites

@Aksel:

> Cannot cast spell appears when you do not have a target. Target a player or a NPC by right-clicking.
>
> By default you do not loose your equipment on death. You must have changed that in Main.txt. Go to Main.txt and change Sub DropItems to:
>
> ```
> ' 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
>
> ```

im still loosing my equip
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...