domez86 Posted April 9, 2019 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
0 Start_ Posted April 9, 2019 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
0 domez86 Posted April 10, 2019 Author 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
0 Arthurion Posted April 10, 2019 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
0 domez86 Posted April 10, 2019 Author 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
0 crazyarashi Posted April 10, 2019 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
0 crazyarashi Posted April 10, 2019 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
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 domez866 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.