Issue information

Issue ID
#7233
Status
Unable to Reproduce
Severity
None
Started
Judas
May 10, 2013 13:34
Last Post
Judas
May 15, 2013 21:53
Confirmation
N/A

Judas - May 10, 2013 13:34

Basically hunger is 0 on my homunculus and it's not being deleted

Ind - May 10, 2013 22:47

I wasn't able to reproduce oo

Judas - May 11, 2013 0:46

in the src, is hom->delete the delete part is underlined in red? is that okay,
it says expected a member name,

Judas - May 11, 2013 0:49

i think because delete is a keyword, should change it to something else
Hmm nvm , i still get that problem

EDIT:
What lines control when the homun will leave due to hungry in the homunculus.c file?

This post has been edited by Judas on May 11, 2013 1:02

Ind - May 15, 2013 21:25

if it were a keyword problem, it'd give you a warning or error during compile time.
its here:[code=auto:0] int homunculus_hunger_timer(int tid, unsigned int tick, int id, intptr_t data) { struct map_session_data *sd; struct homun_data *hd; if(!(sd=map_id2sd(id)) || !sd->status.hom_id || !(hd=sd->hd)) return 1; if(hd->hungry_timer != tid){ ShowError("homunculus_hunger_timer %d != %d\n",hd->hungry_timer,tid); return 0; } hd->hungry_timer = INVALID_TIMER; hd->homunculus.hunger-- ; if(hd->homunculus.hunger <= 10) { clif->emotion(&hd->bl, E_AN); } else if(hd->homunculus.hunger == 25) { clif->emotion(&hd->bl, E_HMM); } else if(hd->homunculus.hunger == 75) { clif->emotion(&hd->bl, E_OK); } if(hd->homunculus.hunger < 0) { hd->homunculus.hunger = 0; // Delete the homunculus if intimacy <= 100 if ( !homun->consume_intimacy(hd, 100) ) return homun->delete(hd, E_OMG); clif->send_homdata(sd,SP_INTIMATE,hd->homunculus.intimacy / 100); } clif->send_homdata(sd,SP_HUNGRY,hd->homunculus.hunger); hd->hungry_timer = add_timer(tick+hd->homunculusDB->hungryDelay,homun->hunger_timer,sd->bl.id,0); //simple Fix albator return 0; } [/code]

Judas - May 15, 2013 21:53

alright thanks for the info Ind =D