Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 how can i make items droped on death Link to comment Share on other sites More sharing options...
Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 PLease help me Link to comment Share on other sites More sharing options...
Rob Janes Posted December 12, 2012 Share Posted December 12, 2012 Rather than replying to your own topic almost instantly, give people some time to reply. FYI, look up OnDeath code where it takes away experience on death, you could easily add a check in there to TakeInvItem and make the player lose an item, or even make it drop onto the players map in their death location. Link to comment Share on other sites More sharing options...
MCADAMS Posted December 12, 2012 Share Posted December 12, 2012 > Rather than replying to your own topic almost instantly, give people some time to reply. FYI, look up OnDeath code where it takes away experience on death, you could easily add a check in there to TakeInvItem and make the player lose an item, or even make it drop onto the players map in their death location.I think it's safe to say they'll have no idea what any of this means. Link to comment Share on other sites More sharing options...
Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 im so lost so i get this code and were do i put it :S Link to comment Share on other sites More sharing options...
Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 i need help put in a death code Link to comment Share on other sites More sharing options...
Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 anyoone plzz D: D: Link to comment Share on other sites More sharing options...
hisherwin Posted December 12, 2012 Share Posted December 12, 2012 Do you know how to use Visual Basic? Link to comment Share on other sites More sharing options...
Zzbrandon Posted December 12, 2012 Share Posted December 12, 2012 this is the 4th topic you made about this. Stop Link to comment Share on other sites More sharing options...
hisherwin Posted December 12, 2012 Share Posted December 12, 2012 Well you need a System that when a player died , their item will all drop?Well on sub ondeath at server side add thisFor i = 1 To MAX_INVPlayerMapDrop[background=yellow]Item[/background] Index, i, 0Next Link to comment Share on other sites More sharing options...
Ertzel Posted December 12, 2012 Share Posted December 12, 2012 No need to make 3 topics all in a row for the exact same question…. Merged all of your topics together.... Link to comment Share on other sites More sharing options...
iraasta Posted December 12, 2012 Share Posted December 12, 2012 First of all stop spamming posts.Second of all, do you know any VB 6.0 basics, and do you even got a copy of VB IDE.Just edit KillPlayer() Procedure (or sth similar depending on version) and add code given by Sherwin.If you don't uderstand any of above you should probably not get involved in Eclipse editting, and first learn some basic stuff. Link to comment Share on other sites More sharing options...
Matt Posted December 12, 2012 Share Posted December 12, 2012 :l``` For i = 1 To MAX_INV PlayerMapDropItem index, i, GetPlayerInvItemValue(index, i) Next 'Send all equiped items to the inventory to be dumped. For i = 1 To Equipment.Equipment_Count - 1 If GetPlayerEquipment(index, i) > 0 Then PlayerMapDropItem index, GetPlayerEquipment(index, i), 0 End If 'Send Weapon GiveInvItem index, GetPlayerEquipment(index, Weapon), 0 SetPlayerEquipment index, 0, Weapon 'Send Armor GiveInvItem index, GetPlayerEquipment(index, Armor), 0 SetPlayerEquipment index, 0, Armor 'Send Shield GiveInvItem index, GetPlayerEquipment(index, Shield), 0 SetPlayerEquipment index, 0, Shield 'Send Helmet GiveInvItem index, GetPlayerEquipment(index, Helmet), 0 SetPlayerEquipment index, 0, Helmet 'Send Legs 'Drop *equipped* inventory items For i = 1 To MAX_INV PlayerMapDropItem index, i, 0 Next```This should replace the previous "items dropped on death" system in the sub OnDeath. You also failed to mention which engine you're using which i strongly suggest you do next time. Link to comment Share on other sites More sharing options...
Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 \ok guys im realy sorry for spamming and shit just realy confused.. i using new versoin one u download of website but i dont no where the death code is :/ like where to place or delet Link to comment Share on other sites More sharing options...
Matt Posted December 12, 2012 Share Posted December 12, 2012 Lets cover the basics. Do you have VB6? If so, go to your server.vbp and search for```sub OnDeath```You should place the code in there. Link to comment Share on other sites More sharing options...
Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 im trying to get it now can u give me a download link or sojmthing i cant find :/ thanks alot by the way im so confused -.- im new at this ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png) Link to comment Share on other sites More sharing options...
Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 and bro i dont think i have a vbp Link to comment Share on other sites More sharing options...
Matt Posted December 12, 2012 Share Posted December 12, 2012 > and bro i dont think i have a vbpIf you don't have a .vbp, then your engine is not open source. Link to comment Share on other sites More sharing options...
Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 What you mean not an open source? Link to comment Share on other sites More sharing options...
Adambrosio2 Posted December 12, 2012 Author Share Posted December 12, 2012 how would i get it and make it open source then? Link to comment Share on other sites More sharing options...
Ertzel Posted December 12, 2012 Share Posted December 12, 2012 Okay, last time you will be verbally warned for this. STOP DOUBLE POSTING. There is a clear edit button at the bottom of your post. If you want to add something within minutes of making your last post and no one else has posted in your topic, use the ducking edit button….OnTopic: When you download Eclipse, you should have a client and server folder, each should have a .exe program to run your game and the data folder. They should also have a src folder and the visual basic program file (.vbp) This is how you actually edit the code in your game.If you don't have these, you somehow ducked up downloading the engine and go to the official download section of the forums and re-download whatever version you want to use.As for getting vb6, you can find it online either by paying for it, or illegally downloading it. Due to the nature of getting it for free intact being illegal, it is against board rules to post any links or downloads for a free copy of vb6 so you must find it on your own. Link to comment Share on other sites More sharing options...
Whitepinkbun Posted December 22, 2012 Share Posted December 22, 2012 I shouldn't lol but i did… Anyways man VB6 ... visual basics... 6, can be downloaded through a torrent TPB has it all though I'm fairly sure if you don't plan on either paying for it or doing something illegal to get it then you wont be able to open and edit your game's source.... ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
MadalinV Posted December 23, 2012 Share Posted December 23, 2012 Adam, don't get involved in any s**t you don't know, first, get vb6, no one here will give you a link to that, it's illegal, and second, there's a category "Tutorials" why don't you browse it? I all you ask here should be the basics you should know, if you don't know ask somebody to help you in your project Link to comment Share on other sites More sharing options...
Matt Posted December 24, 2012 Share Posted December 24, 2012 > Adam, don't get involved in any s**t you don't know, first, get vb6, no one here will give you a link to that, it's illegal, and second, there's a category "Tutorials" why don't you browse it? I all you ask here should be the basics you should know, if you don't know ask somebody to help you in your projectIf we didn't get involved in any shit that we didn't know about, it would be quite hard to learn something at all. He might have thought that the client was running off the source code (provided in the scr folder) and could be changed in notepad. Yes, it would have been better for him to check to see if he was right, looking through the FAQ couldn't hurt either, but regardless he was making an effort. Just because it didn't meet what you expected does not mean you have to speak shit to him. Link to comment Share on other sites More sharing options...
MadalinV Posted December 24, 2012 Share Posted December 24, 2012 First he needs to see in what he gets involved, și he doesn't destroy anything he worked out in game, if you call it a challenge, is it a challenge for a man to go blind in a parkour park? 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