Jump to content
  • 0

script for max hp + 450000


domez86

Question


  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

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 domez86
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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;                                         
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  924
  • Reputation:   167
  • Joined:  04/05/13
  • Last Seen:  

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;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

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?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  21
  • Reputation:   4
  • Joined:  11/04/18
  • Last Seen:  

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;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

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 by domez86
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L5895
 

*bonus_script "<script code>",<duration>{,<flag>{,<type>{,<status_icon>{,<char_id>}}}};

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...