alelelo Posted April 24, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 37 Reputation: 0 Joined: 02/03/17 Last Seen: September 16, 2021 Share Posted April 24, 2020 This is the question... Can an NPC lower the HP percentage to a mob? Quote Link to comment Share on other sites More sharing options...
0 Balfear Posted April 24, 2020 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 256 Reputation: 245 Joined: 07/24/13 Last Seen: March 24 Share Posted April 24, 2020 (edited) 1 hour ago, alelelo said: This is the question... Can an NPC lower the HP percentage to a mob? Yes, you can controll mob params from npc. For example HP controller. prontera,160,190,4 script Mob_HP_controller 4_EP16_GRANZ,{ switch(select("Create monster","Change monster HP(%)")){ case 1: mes "Monster created."; close2; monster "prontera",160,185,"--ja--",1100,1,"Mob_HP_controller::OnMobControll"; .monsterid = $@mobid[0]; end; case 2: getunitdata .monsterid, .@data; mes "Current mob HP: ["+.@data[UMOB_HP]+"/"+.@data[UMOB_MAXHP]+"]"; input .@hp; next; mes "Monster HP changed."; .@hp_per = .@data[UMOB_MAXHP] / 100 * .@hp; setunitdata .monsterid, UMOB_HP, .@hp_per; close; } } You can read more about mob params in script_commands > setunitdata <GID>,<parameter>,<new value>; Edited April 24, 2020 by Balfear Quote Link to comment Share on other sites More sharing options...
0 alelelo Posted April 24, 2020 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 37 Reputation: 0 Joined: 02/03/17 Last Seen: September 16, 2021 Author Share Posted April 24, 2020 Thanks!!! Quote Link to comment Share on other sites More sharing options...
Question
alelelo
This is the question...
Can an NPC lower the HP percentage to a mob?
Link to comment
Share on other sites
2 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.