![]() |
[help] how i make "Revive Guard"
I had an idea to put a guard at the jail, to revive the players who are dead or someone you know might help?:)
|
Easy,im not going to post the actual code for you,just some parts that are needed.
Name-checker If the player is in the same map Checks if the character is dead MobUseCharSkill, the revive skill on an character Sleep for around 5 seconds Do it again Easy. |
Quote:
+ After MobAttacksCharSkill you'll need to ACTUALLY revive the person as the skill is just the effect. Target.Revive(false) Couldn't have said it better emme, I wonder why :rolleyes: |
I didnt get a shit of what ur talking about tao,as I said a week ago,stop the drugs kid! Nah,im kidding,but yeah you have to revive the target and shit,but as I said I wont post the actual code.
+Thanks to you for letting me look at reviving guards a few weeks ago,just to get the idea of what to do. At the moment,im using my own style,which works better to me. |
Quote:
I haven't coded anything that's worth doing except funny stuff for myself in a while actually... >_> |
ty emme
Quote:
no more revives the dead, the guard uses in players who are alive, and revive any time, any idea? |
Quote:
|
Quote:
|
Something like this,that defines that it should sleep a bit,and only revive players in the map and bla bla bla,.
Quote:
|
Quote:
|
Quote:
Okay other than unneeded spam... emme pretty much GAVE you the code, with a few changes that works, but it's not the best way to approach it. Not like I did any better :p. Anyways, the only major thing that prevents THAT from working is... you have to make sure on GetTarget() (in Entities.cs with all the other mob crap) if the name is reviver or the type is whatever, you allow them to target only DEAD people, instead of alive. |
Quote:
can u tell we add to where??? |
Quote:
reliving players still alive and not the dead ..! look Quote:
|
| All times are GMT +2. The time now is 21:56. |
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.