domez86 Posted April 9, 2019 Group: Members Topic Count: 85 Topics Per Day: 0.02 Content Count: 207 Reputation: 0 Joined: 06/11/13 Last Seen: July 11, 2020 Share Posted April 9, 2019 (edited) hi, I need a npc that when you click increases the maximum hp by 450000, or just just the script. then I would need an autodebuff script in a specific map, for example that when you enter that map it removes all buffs automatically. tnx! Edited April 10, 2019 by domez86 Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted April 10, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: 16 hours ago Share Posted April 10, 2019 prontera,255,55,5 script 450KHP 123,{ bonus_script "{ bonus bMaxHP,450000; }",60,512; dispbottom "Max HP increased by 450,000"; end; OnPCLoadMapEvent: bonus_script_clear 1; end; OnInit: setarray .maps$,"prontera","izlude","samplemap"; //= Maps for removing bonus HP for(.@i = 0; .@i < getarraysize(.maps$); .@i++){ setmapflag .maps$[.@i],MF_LOADEVENT; } end; } Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted April 9, 2019 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: 1 hour ago Share Posted April 9, 2019 NPC with OnTouch on remove buff map bonus_script_clear 1; NPC with OnTouch or click on buff map bonus_script "{bonus bMaxHP,500000;}",86400000,0,0; Quote Link to comment Share on other sites More sharing options...
0 domez86 Posted April 10, 2019 Group: Members Topic Count: 85 Topics Per Day: 0.02 Content Count: 207 Reputation: 0 Joined: 06/11/13 Last Seen: July 11, 2020 Author Share Posted April 10, 2019 14 hours ago, TARTs said: NPC with OnTouch on remove buff map bonus_script_clear 1; NPC with OnTouch or click on buff map bonus_script "{bonus bMaxHP,500000;}",86400000,0,0; sorry, the script that removes buffs in a given map serves me automatically, without clicks, without npc. then as for npc that gives you more hp, I need a complete npc, then explain to me what it means: 86400000,0,0? Quote Link to comment Share on other sites More sharing options...
0 Arthurion Posted April 10, 2019 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 21 Reputation: 4 Joined: 11/04/18 Last Seen: October 23, 2019 Share Posted April 10, 2019 As he said use the bonus script to add the HP. and use OnLoadMapEvent for specific maps to remove bonus_script_clear script command. 7 hours ago, domez86 said: then explain to me what it means: 86400000,0,0? go read the script command bonus_script "{bonus bMaxHP,500000;}",86400000,0,0; Quote Link to comment Share on other sites More sharing options...
0 domez86 Posted April 10, 2019 Group: Members Topic Count: 85 Topics Per Day: 0.02 Content Count: 207 Reputation: 0 Joined: 06/11/13 Last Seen: July 11, 2020 Author Share Posted April 10, 2019 (edited) On 4/10/2019 at 7:30 PM, Arthurion said: As he said use the bonus script to add the HP. and use OnLoadMapEvent for specific maps to remove bonus_script_clear script command. go read the script command bonus_script "{bonus bMaxHP,500000;}",86400000,0,0; sorry guys but maybe I didn't explain myself, then: I need an invisible npc / automatic script that removes all buffs when entering a given map. then I need a npc that when you click on it add 450000 hp. I don't understand what this means in your script: 86400000,0,0 in addition to the bonus script. and in any case this script must be executable every time you click. On 4/10/2019 at 10:03 PM, crazyarashi said: prontera,255,55,5 script 450KHP 123,{ bonus_script "{ bonus bMaxHP,450000; }",60,512; dispbottom "Max HP increased by 450,000"; end; OnPCLoadMapEvent: bonus_script_clear 1; end; OnInit: setarray .maps$,"prontera","izlude","samplemap"; //= Maps for removing bonus HP for(.@i = 0; .@i < getarraysize(.maps$); .@i++){ setmapflag .maps$[.@i],MF_LOADEVENT; } end; } please explain to me what it is for: ,60,512; ? Edited April 10, 2019 by domez86 Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted April 10, 2019 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: 16 hours ago Share Posted April 10, 2019 https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L5895 *bonus_script "<script code>",<duration>{,<flag>{,<type>{,<status_icon>{,<char_id>}}}}; Quote Link to comment Share on other sites More sharing options...
Question
domez86
hi, I need a npc that when you click increases the maximum hp by 450000, or just just the script. then I would need an autodebuff script in a specific map, for example that when you enter that map it removes all buffs automatically.
tnx!
Edited by domez86Link to comment
Share on other sites
6 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.