dao Posted June 22, 2009 Author Share Posted June 22, 2009 i want to leave behind a new layer thats a skeleton when u diethats still under fringe. and i only want it there for 1 min Link to comment Share on other sites More sharing options...
balliztik1 Posted June 22, 2009 Share Posted June 22, 2009 This can already be done via scripting. Just use timers and SetTile. Link to comment Share on other sites More sharing options...
dao Posted June 22, 2009 Author Share Posted June 22, 2009 lol i wanna do it the sourced way =P Link to comment Share on other sites More sharing options...
The Oracle Posted June 22, 2009 Share Posted June 22, 2009 which is why its in the source board. :P Link to comment Share on other sites More sharing options...
dao Posted June 23, 2009 Author Share Posted June 23, 2009 lol yea, he was just making sure i knew it could be done in scripting Link to comment Share on other sites More sharing options...
Sowtis Posted June 23, 2009 Share Posted June 23, 2009 I need this too! Link to comment Share on other sites More sharing options...
Braiton Posted June 23, 2009 Share Posted June 23, 2009 Its easier, as already mentioned above, to make a tile with the skeleton, then go to the NPConDeath sub and then you use SetTile and timers. Thats it. No source edits needed. Unless you wanna make a function so you can directly call it. But meh, 1 extra line of code is not worth it. Link to comment Share on other sites More sharing options...
The Oracle Posted June 23, 2009 Share Posted June 23, 2009 if they're asking it in source questions, they want it in SOURCE. learn to read dude. My guess would be to make a timer and have it check the tile for a certain tile and copy and paste some map editor code. Link to comment Share on other sites More sharing options...
Robin Posted June 23, 2009 Share Posted June 23, 2009 @The:> if they're asking it in source questions, they want it in SOURCE. learn to read dude. My guess would be to make a timer and have it check the tile for a certain tile and copy and paste some map editor code.Terrible guess.The best way of leaving a corpse would be to create a new subroutine to handle the rendering, and set it all up in timers.Simply have the server counting down for the corpse to disappear, and send the map any updates regarding it.Then you can even store the corpse frames within the sprite's .bmp file and position it properly. Link to comment Share on other sites More sharing options...
dao Posted June 23, 2009 Author Share Posted June 23, 2009 well that narrows it down.. but lol i still dont know "how" just know "what" to do now Link to comment Share on other sites More sharing options...
Robin Posted June 23, 2009 Share Posted June 23, 2009 @Zultarâ„¢:> well that narrows it down.. but lol i still dont know "how" just know "what" to do nowCopy an existing subroutine and store the corpses in the map. Go on, give it a try. Link to comment Share on other sites More sharing options...
dao Posted June 23, 2009 Author Share Posted June 23, 2009 newb questionwhats a "subroutine" Link to comment Share on other sites More sharing options...
Admiral Refuge Posted June 23, 2009 Share Posted June 23, 2009 @Zultarâ„¢:> newb question> whats a "subroutine"[**Consult Google**](http://lmgtfy.com/?q=subroutine)Hence the name Subs in vb.EDIT: I still say just throw something in your ondeath in the main.txt XD Link to comment Share on other sites More sharing options...
dao Posted June 23, 2009 Author Share Posted June 23, 2009 lol admiral. im no good at scripting. Link to comment Share on other sites More sharing options...
tiggilyboo Posted June 23, 2009 Share Posted June 23, 2009 @Zultarâ„¢:> lol admiral. im no good at scripting.What is the point in posting how to do something, then showing that you are unable to when directed?As for the task at hand, Take a look at the DirectXInit in modDirectX, there will be some declarations of specific directX layers. copy one, change the source of it, and rename it.After doing this, you need to create a sub, call it: bltCorpse or something. Make a the parameters like so:Sub bltCorpse(ByVal X as Long, ByVal Y as Long)Then go take a look at a simple directX blitting. Such as the emoticons.Lastly, input your blitting within the gameloop, make a check with the NPC's status (dead or living) and blt away!Good Luck, -Tiggilyboo Link to comment Share on other sites More sharing options...
dao Posted June 23, 2009 Author Share Posted June 23, 2009 oh ok thanks xD 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