buff [gm] demarage

07/23/2011 17:01 guildeur#1
Hello how to put buff GM in the debu + jp max svp thank you

bonjour comment mettre les buff GM au debu + les jp max svp merci :handsdown::handsdown::handsdown:
07/23/2011 17:24 ironhammer500#2
Quote:
Originally Posted by guildeur View Post
Hello how to put buff GM in the debu + jp max svp thank you

bonjour comment mettre les buff GM au debu + les jp max svp merci :handsdown::handsdown::handsdown:
Are you asking to add a GM buff on login? and i dont get what you want with jp sorry

For Gm buffs on login you need notepad++ to edit the LUA file named on_login

Find the state code to give a player buffs and add it in
07/23/2011 17:43 guildeur#3
Can you me the metre spoilier stp as his(her,its) I verai how to make thank you
07/23/2011 18:11 ironhammer500#4
Give me 5 minutes to edit the Lua file and see upload it for you, or if someone works faster they can do it.
07/23/2011 18:30 guildeur#5
thanx you

merci
07/23/2011 20:59 Ranma014#6
Use this.
It is devided into an if-case. the upper half is for all players, the lower one is for gm only. to enable/disbale buffs just remove/add "--" infront of the add_state commands.
You can edit the player buffs by raising the second number, e.g.

add_state(1001, 10, 8640000) --Max HP +35%

just change 10 to 100 to get a level lvl 100 hp buff.

the comment behind those commands will tell what they currently do, change the level and it will be higher/lower.

Copy the whole spoiler and insert it into on_login (92aaf4ae4ee42eb41693728da93f301a).lua inside your resource/script folder just above the last "end" thats written in there.


I am not sure what you meant with "max jp svp" either, but if you want ppl to have maximum JP from the beginning open up on_first_login (d4b666e4533a0230159074c218fa2150).lua in a texteditor. Quite at the top you will find
Code:
	set_value( "hp" , get_value( "max_hp") )
	set_value( "mp" , get_value( "max_mp") )
just enter a new line so it looks like this:
Code:
	set_value( "hp" , get_value( "max_hp") )
	set_value( "mp" , get_value( "max_mp") )
	sv('jp',999999999)
I am not sure if this will work, but i guess it will. it should raise your jp to 999kk upon character creation.