Jump to content
  • 0
Sign in to follow this  
Kei

can someone help me with this?

Question

i have this patch from annieruru but i'm having an error

 

when i recompile i have this warning 

 

status.c: In function 'status_calc_pc_':status.c:2460: warning: implicit declaration of function 'npc_script_event'

 

this is the script i'm having to have the stats but i don't get any

 

-	script	kjfhsdfkjhsd	-1,{OnPCStatCalcEvent:    if ( strcharinfo(3) == "prontera" ) // permanently increase 100 str as long as staying in prontera        bonus bstr, 100;    if ( strcharinfo(0) == "Admin" ) // permanently increase 200 agi if the player name Annieruru (me xD)        bonus bagi, 200;    end;}

OnPCStatCalcEvent.patch

Edited by Kei

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

just change

 

 

npc_script_event( sd, NPCE_STATCALC ); 

 

 

 

to

 

 

 

npc->script_event( sd, NPCE_STATCALC ); 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.