Existanz Posted August 2, 2009 Author Share Posted August 2, 2009 Hello All,i have a question,is there a way (in eclipse) to… when character dies he no drop his weapons and other items?Becouse in my game weapons are rly rare xD,plx help... Link to comment Share on other sites More sharing options...
Guest Posted August 2, 2009 Share Posted August 2, 2009 i guess, making it apear on the map would be hard, i guess scriptingEDITthis is really simple Link to comment Share on other sites More sharing options...
Existanz Posted August 2, 2009 Author Share Posted August 2, 2009 btw… can u explain me how to do it?xD Link to comment Share on other sites More sharing options...
Agoraphobic Posted August 2, 2009 Share Posted August 2, 2009 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 IfEnd Sub```This line of code controls if you drop all your items upon death or not. Link to comment Share on other sites More sharing options...
Existanz Posted August 2, 2009 Author Share Posted August 2, 2009 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 IfEnd Sub) and he still drop's weapon and other items… Link to comment Share on other sites More sharing options...
Kimimaru Posted August 2, 2009 Share Posted August 2, 2009 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 More sharing options...
Existanz Posted August 2, 2009 Author Share Posted August 2, 2009 I not did anything in my Main.txt before… i got Eclipse 2.8,i try again and he still drop items... idk what's going on...i got Exit Sub at top. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted August 2, 2009 Share Posted August 2, 2009 Set your map settings to No Death Penalty. Link to comment Share on other sites More sharing options...
Existanz Posted August 2, 2009 Author Share Posted August 2, 2009 Thx U!Now he dont drop anything!Thx again ! :) 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