Fratini Posted August 25, 2015 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 153 Reputation: 8 Joined: 07/01/14 Last Seen: May 3, 2018 Share Posted August 25, 2015 (edited) Good night, So, I need a code to check if the player is dead but I didn't found or couldn't find it in 'script_commands' at doc/ I find these in atcommand.c if(pc_isdead(sd)) Can I use in script? Thank you for your time. Edited August 25, 2015 by Fratini Quote Link to comment Share on other sites More sharing options...
Promise Posted August 25, 2015 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 386 Reputation: 38 Joined: 04/28/13 Last Seen: 5 hours ago Share Posted August 25, 2015 OnPCDieEvent: Quote Link to comment Share on other sites More sharing options...
Fratini Posted August 25, 2015 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 153 Reputation: 8 Joined: 07/01/14 Last Seen: May 3, 2018 Author Share Posted August 25, 2015 (edited) Let me show the code: OnPCDieEvent: progressbar "0xFF0000",20; if(){ warp "que_temsky",151,140; recovery 0;} else save "prontera",150,150; } In that If, I need to check if he still dead or resurrect by another player. Edited August 25, 2015 by Fratini Quote Link to comment Share on other sites More sharing options...
Capuche Posted August 27, 2015 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: May 8 Share Posted August 27, 2015 if(Hp == 0){ 1 Quote Link to comment Share on other sites More sharing options...
Fratini Posted August 27, 2015 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 153 Reputation: 8 Joined: 07/01/14 Last Seen: May 3, 2018 Author Share Posted August 27, 2015 Yeah !! So simple ahahah Thank you ^-^ Quote Link to comment Share on other sites More sharing options...
Question
Fratini
Good night,
So, I need a code to check if the player is dead but I didn't found or couldn't find it in 'script_commands' at doc/
I find these in atcommand.c
Can I use in script?
Thank you for your time.
Edited by FratiniLink to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.