joelolopez Posted May 29, 2013 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Share Posted May 29, 2013 i need a script like this, onpcdieevent -is there any way to detect if you've been killed by a monster on "onpcdieevent" Quote Link to comment Share on other sites More sharing options...
Capuche Posted May 29, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted May 29, 2013 This stop the script if kill by a monster : OnPCDieEvent: if ( killerrid > 3000000 ) end; Quote Link to comment Share on other sites More sharing options...
Jaburak Posted May 29, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted May 29, 2013 - script Dead -1,{ OnPCDieEvent: dispbottom "You have been killed by "+rid2name(killerrid)+"."; } Quote Link to comment Share on other sites More sharing options...
joelolopez Posted May 29, 2013 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share Posted May 29, 2013 sir i think there's a misunderstanding, im asking for a way to tell if wether you've been killed by a monster or not a monster(which is a player ofcourse) on onpcdieevent Quote Link to comment Share on other sites More sharing options...
Patskie Posted May 29, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 7 hours ago Share Posted May 29, 2013 Tell whether what monster kill you? Quote Link to comment Share on other sites More sharing options...
Skorm Posted May 29, 2013 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted May 29, 2013 (edited) Hi, Joe. - script Dead -1,{ OnPCDieEvent: dispbottom "You have been killed by a "+((getmonsterinfo(killerrid,0)=="Dummy")?"Player":"Monster")+"."; end; }I'm just going by what http://ea.dj-yhn.com/index.php?c=getmonsterinfo says I haven't actually tested this before so script is untested. Edited May 29, 2013 by Skorm Quote Link to comment Share on other sites More sharing options...
joelolopez Posted May 29, 2013 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share Posted May 29, 2013 (edited) Tell whether what monster kill you? its kinda like that... script that tells wether if its monster or a player who killed you , it will just identify if a monster id or a player id Hi, Joe. - script Dead -1,{ OnPCDieEvent: dispbottom "You have been killed by a "+((getmonsterinfo(killerrid,0)=="Dummy")?"Player":"Monster")+"."; end; }I'm just going by what http://ea.dj-yhn.com/index.php?c=getmonsterinfo says I haven't actually tested this before so script is untested. sir skorm heres my situation, im fixing this ghost pvp announcer script the problem that i encountered here is when i im killed by a monster in a dungeon or field my death counter increases lol so im thinking of a solution for this problem if i could only identify wether a monster or a player killed my character i will set the condition if my killer id is a player +1 death and if a monster id then death will not increase... Edited May 29, 2013 by joelolopez Quote Link to comment Share on other sites More sharing options...
joelolopez Posted May 30, 2013 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share Posted May 30, 2013 okay sir im going to test this!!!!! Quote Link to comment Share on other sites More sharing options...
joelolopez Posted May 31, 2013 Group: Members Topic Count: 154 Topics Per Day: 0.03 Content Count: 493 Reputation: 46 Joined: 01/24/12 Last Seen: August 25, 2022 Author Share Posted May 31, 2013 sir capuche tnx ur da best Quote Link to comment Share on other sites More sharing options...
Question
joelolopez
i need a script like this,
onpcdieevent
-is there any way to detect if you've been killed by a monster on "onpcdieevent"
Link to comment
Share on other sites
8 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.