[Help] Hunterholic Point Usage [lua]

12/17/2013 15:45 monoedge#1
Hello. I have a question. I'd like to add GM buff to players if player use 3,000 hunterholic point but it doesn't work. How can I write lua script for that? Please someone help me. Thank you very much for your help.

I think "update_huntaholic_point()" must be wrong.
12/17/2013 18:06 AngelOwns#2
Try this way

12/17/2013 18:23 monoedge#3
Quote:
Originally Posted by AngelOwns View Post
Try this way

Thank you for your advice but it also doesn't work:(

The error message is
...Resource\Script\e807c2c918077a79cbf683aa80edc6e 9.lua:180: attempt to call global `update_huntaholic_point` (a nil value)
12/18/2013 01:37 AngelOwns#4
sv("huntaholic_point","-3000")
12/18/2013 05:26 wisp66#5
i dont have time right this min busy with development but send me skype in pm maybe i can help a bit
angel is correct with the syntex there telling u tho
12/20/2013 06:56 Stongx#6
I think that the update_huntaholic_poinst necessary
use the code that AngelOwns give for you and I think that it's will work
the problem that the code that you put unknown for the game
so delete it and put the code and try
I hope that I helped you
good luck
12/20/2013 09:06 pprfds#7
try this

12/20/2013 13:48 monoedge#8
Quote:
Originally Posted by AngelOwns View Post
sv("huntaholic_point","-3000")
Thank you very much. Unfortunately it won't work. However, I solved the problem:)

Quote:
Originally Posted by wisp66 View Post
i dont have time right this min busy with development but send me skype in pm maybe i can help a bit
angel is correct with the syntex there telling u tho
I appreciate that you are trying to help me but I solved the problem. Thank you.

Quote:
Originally Posted by Stongx View Post
I think that the update_huntaholic_poinst necessary
use the code that AngelOwns give for you and I think that it's will work
the problem that the code that you put unknown for the game
so delete it and put the code and try
I hope that I helped you
good luck
Thank you very much. I solved the problem:)

Quote:
Originally Posted by pprfds View Post
try this

I appreciate your help. I got the clue from your script. Like this...
Why I added 'sv( "huntaholic_point", huntaholic_point - cost )' is because the holic point won't reflect to the players' point if only add 'set_huntaholic_point'. Anyway thank you very much:)