/run add_creature_value( get_creature_handle(0),"jp",1)
i think this should work
no you should read carefully
Quote:
Originally Posted by stivenson2005
Good day all,
i have used /run set_creature_value( get_creature_handle(0),"jp",1)
it will set the JP to 1 and wont increase it by 1.
He wants to increase the jp and don't want to set the jp to 1. Your command will set the JP to 1 my command will add 1 JP to the current JP of the pet.
Explanation:
set_creature_value = will set the value of a pet
get_creature_handle = pointer to the correct pet (0 = formation slot 1, 1 = formation slot 2...)
get_creature_value = will return the current value of a pet
get_creature_value( get_creature_handle(0),"jp")+1
This part will read the current JP of the pet and will add 1 JP to the current value
I don't know but no need to discuss! his question was how to add 1 point!
Trying to push your postcounter?^^
Edit to Thelxinoe:
You are calling yourself a Lua DEV and don't know that it's more important to do things like that instead of using the learn_all_skill() function which is good for gms only. I'm not allowed to flame anymore so i won't comment on this point^^
He wants to increase the jp and don't want to set the jp to 1. Your command will set the JP to 1 my command will add 1 JP to the current JP of the pet.
Explanation:
set_creature_value = will set the value of a pet
get_creature_handle = pointer to the correct pet (0 = formation slot 1, 1 = formation slot 2...)
get_creature_value = will return the current value of a pet
get_creature_value( get_creature_handle(0),"jp")+1
This part will read the current JP of the pet and will add 1 JP to the current value
don't think that my code will set the jp to 1
i think that it will add 1 jp to the value
because it's an add_value code
also i used the code before when adding exp to the character
/run av("exp", 2837928)
and it worked but never used it with creatures
don't think that my code will set the jp to 1
i think that it will add 1 jp to the value
because it's an add_value code
also i used the code before when adding exp to the character
/run av("exp", 2837928)
and it worked but never used it with creatures
Sry didn't read your post clearly because there are only 2 creature value commands! Your command don't even exist
[Helping Topic] 24/7 Helping Services! 08/27/2008 - EO PServer Hosting - 31 Replies stucked on anything while setuping your server?
post your problem here and you will get answer as fast as possible better than spamming with posts :cool:
first of all try reading Ahmedpotop's Pserver All thing guide.
if your couldn't solve it out post your problem down here
""That includes PHP rankings pages / registrations pages / Status pages""