Mabuhay Posted January 7, 2013 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Share Posted January 7, 2013 (edited) What should i code if i want a mob after being killed will explode and kill the player who killed it? then there is also another mob that when killed will give you item? sample: poring one poring will explode when killed and the other will give reward thanks :3 Edited January 7, 2013 by MrVandalBus Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 7, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: 14 hours ago Share Posted January 7, 2013 OnMobKilled: specialeffect2 183; unitkill getcharid(3); end; make sure you spawn the monster that has OnMobKilled event label Quote Link to comment Share on other sites More sharing options...
clydelion Posted January 7, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted January 7, 2013 This would be better to kill the killer, @die.. atcommand "@nuke "+strcharinfo(0); Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 7, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: 14 hours ago Share Posted January 7, 2013 usage of atcommand should be avoided when script npc....it's bad for certain cases like server log the usage of @commands... Quote Link to comment Share on other sites More sharing options...
clydelion Posted January 7, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted January 7, 2013 oh yeah, I've mistaken unitkill for unitattack. Sorry bout that Quote Link to comment Share on other sites More sharing options...
Mabuhay Posted January 7, 2013 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Author Share Posted January 7, 2013 Thanks! Thanks! Quote Link to comment Share on other sites More sharing options...
Question
Mabuhay
What should i code if i want a mob after being killed will explode and kill the player who killed it?
then there is also another mob that when killed will give you item?
sample:
poring
one poring will explode when killed and the other will give reward thanks :3
Edited by MrVandalBusLink to comment
Share on other sites
5 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.