furtzown Posted July 28, 2010 Author Share Posted July 28, 2010 I cant cast spell…I make elements, the spell, the item for spelleverything rightbut 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 More sharing options...
Akselj Posted July 28, 2010 Share Posted July 28, 2010 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 IfEnd Sub``` Link to comment Share on other sites More sharing options...
furtzown Posted July 28, 2010 Author Share Posted July 28, 2010 @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 More sharing options...
Akselj Posted July 28, 2010 Share Posted July 28, 2010 Hm, is scripting enabled? Link to comment Share on other sites More sharing options...
furtzown Posted July 28, 2010 Author Share Posted July 28, 2010 it was already with that script…and the spell still dont work even when i target Link to comment Share on other sites More sharing options...
Akselj Posted July 28, 2010 Share Posted July 28, 2010 In that case, I have no idea what you've done… D:Strange. It should work as far as I know. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted July 28, 2010 Share Posted July 28, 2010 Quote the player message you get when the spell won't work. Word for word. Link to comment Share on other sites More sharing options...
furtzown Posted July 28, 2010 Author Share Posted July 28, 2010 @Soul:> Quote the player message you get when the spell won't work. Word for word.what that mean? Link to comment Share on other sites More sharing options...
Akselj Posted July 29, 2010 Share Posted July 29, 2010 Write EXACTLY what the message says. If it says "Cannot cast spell!" type "Cannot cast spell!" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now