Jump to content
  • 0

adding new bonuses failed to compile, map session data error.


arby89

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  04/20/16
  • Last Seen:  

Hi, thank you for your excellent server. its running well. Btw, im trying to add new custom bonus. Tried to follow this guide "https://github.com/rathena/rathena/wiki/Adding-New-Bonuses" but after compile it gave map_session_data error. Im using rAthena-15 from ur package. Where can i get the latest guide/tutorial on how to add new custom bonus type?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

37 minutes ago, arby89 said:

Hi, thank you for your excellent server. its running well. Btw, im trying to add new custom bonus. Tried to follow this guide "https://github.com/rathena/rathena/wiki/Adding-New-Bonuses" but after compile it gave map_session_data error. Im using rAthena-15 from ur package. Where can i get the latest guide/tutorial on how to add new custom bonus type?

Provide error output to understand where is the problem. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  04/20/16
  • Last Seen:  

13 hours ago, Anacondaqq said:

Provide error output to understand where is the problem. 

HI Anacondaqq, 

here the screenshot of where i put the code, n the error msg.

battle.c.png

map.h.png

pc.c.png

pc.h.png

status.c.png

error1.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

sd->skip_ammo

replace to

 sd->bonus.skip_ammo

(everywhere in the code above, just the part)

Edited by Anacondaqq
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  04/20/16
  • Last Seen:  

2 minutes ago, Anacondaqq said:

sd->skip_ammo

replace to


 sd->bonus.skip_ammo

(everywhere in the code above, just the part)

ok i will try it. Thank you.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   1
  • Joined:  04/20/16
  • Last Seen:  

39 minutes ago, arby89 said:

ok i will try it. Thank you.

Im able to compile,

but i receive this error in mapserv

image.png.e308138d40714ee1b4c3750477862850.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

3 hours ago, arby89 said:

Im able to compile,

but i receive this error in mapserv

image.png.e308138d40714ee1b4c3750477862850.png

find and open script_constants.h

after

export_constant2("bAddStealRate",SP_ADD_STEAL_RATE);

add

export_constant2("bSkipAmmo",SP_SKIPAMMO);

 

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...