Jump to content
  • 0

+20 foods


AllHailToTheKing

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

how to fix the foods being dispell when somone use skill dispel on you..

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

use the cash food.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

use the cash food.

i tried to use the cash food and it has cooldown and this foods came from brewing how can i change that to +20 cash foods? thank you for your reply

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Or just change the item code to one of the following

SC_FOOD_STR_CASH
SC_FOOD_AGI_CASH
SC_FOOD_VIT_CASH
SC_FOOD_DEX_CASH
SC_FOOD_INT_CASH
SC_FOOD_LUK_CASH

Edited by nanakiwurtz
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try these...

inside this file

trunk/src/map/status.c

find these..

 switch (i)
 { //Type 0: PC killed -> Place here statuses that do not dispel on death.
 case SC_ELEMENTALCHANGE://Only when its Holy or Dark that it doesn't dispell on death
  if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK )
   break;

add below...

 case SC_FOOD_STR:
 case SC_FOOD_AG:
 case SC_FOOD_VIT:
 case SC_FOOD_DEX:
 case SC_FOOD_INT:
 case SC_FOOD_LUK:

or any other food name / status name....

recompile...

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

Or just change the item code to one of the following

SC_FOOD_STR_CASH
SC_FOOD_AGI_CASH
SC_FOOD_VIT_CASH
SC_FOOD_DEX_CASH
SC_FOOD_INT_CASH
SC_FOOD_LUK_CASH

thank you.

try these...

inside this file

trunk/src/map/status.c

find these..

 switch (i)
 { //Type 0: PC killed -> Place here statuses that do not dispel on death.
 case SC_ELEMENTALCHANGE://Only when its Holy or Dark that it doesn't dispell on death
  if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK )
break;

add below...

 case SC_FOOD_STR:
 case SC_FOOD_AG:
 case SC_FOOD_VIT:
 case SC_FOOD_DEX:
 case SC_FOOD_INT:
 case SC_FOOD_LUK:

or any other food name / status name....

recompile...

thanks also to emistry.

and can you guys help me here?

http://rathena.org/board/topic/78123-curse-water-and-converters/

i would really really appreciate

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

they should be in src/map/skill.c

find

//case SC_SAVAGE_STEAK: case SC_COCKTAIL_WARG_BLOOD: case SC_MINOR_BBQ:

//case SC_SIROMA_ICE_TEA: case SC_DROCERA_HERB_STEAMED: case SC_PUTTI_TAILS_NOODLES:

remove the comments and recompile

Edited by QQfoolsorellina
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   0
  • Joined:  11/22/11
  • Last Seen:  

try these...

inside this file

trunk/src/map/status.c

find these..

 switch (i)
 { //Type 0: PC killed -> Place here statuses that do not dispel on death.
 case SC_ELEMENTALCHANGE://Only when its Holy or Dark that it doesn't dispell on death
  if( sc->data[i]->val2 != ELE_HOLY && sc->data[i]->val2 != ELE_DARK )
break;

add below...

 case SC_FOOD_STR:
 case SC_FOOD_AG:
 case SC_FOOD_VIT:
 case SC_FOOD_DEX:
 case SC_FOOD_INT:
 case SC_FOOD_LUK:

or any other food name / status name....

recompile...

emistry i tried this but im getting errors when recompile..

status.c: In function 'status_change_clear':
status.c:9030: error: 'SC_FOOD_STR' undeclared (first use in this function)
status.c:9030: error: (Each undeclared identifier is reported only once
status.c:9030: error: for each function it appears in.)
status.c:9031: error: 'SC_FOOD_AG' undeclared (first use in this function)
status.c:9032: error: 'SC_FOOD_VIT' undeclared (first use in this function)
status.c:9033: error: 'SC_FOOD_DEX' undeclared (first use in this function)
status.c:9034: error: 'SC_FOOD_INT' undeclared (first use in this function)
status.c:9035: error: 'SC_FOOD_LUK' undeclared (first use in this function)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  08/04/12
  • Last Seen:  

they should be in src/map/skill.c

find

//case SC_SAVAGE_STEAK: case SC_COCKTAIL_WARG_BLOOD: case SC_MINOR_BBQ:

//case SC_SIROMA_ICE_TEA: case SC_DROCERA_HERB_STEAMED: case SC_PUTTI_TAILS_NOODLES:

remove the comments and recompile

 

It helps. Thanks! :)

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