v00m3r Posted July 27, 2012 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 291 Reputation: 4 Joined: 04/24/12 Last Seen: January 30, 2014 Share Posted July 27, 2012 (edited) How can i make food buffs when the player die the food buff is still there? Edited July 28, 2012 by v00m3r Quote Link to comment Share on other sites More sharing options...
Euphy Posted July 27, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted July 27, 2012 Use the cash foods. Quote Link to comment Share on other sites More sharing options...
v00m3r Posted July 28, 2012 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 291 Reputation: 4 Joined: 04/24/12 Last Seen: January 30, 2014 Author Share Posted July 28, 2012 (edited) Use the cash foods. i mean. the +20 foods that creator class makes. is this possible? anyone? Edited July 27, 2012 by v00m3r Quote Link to comment Share on other sites More sharing options...
Wafflebutt Posted July 28, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 234 Reputation: 19 Joined: 06/15/12 Last Seen: November 28, 2023 Share Posted July 28, 2012 i mean. the +20 foods that creator class makes. is this possible? You are asking us without even trying? Euphy already gave you the answer. These are the item scripts. Maybe you will be able to figure it out? Dragon Breath Cocktail: sc_start SC_INTFOOD, 1200000, 10; CS Dragon Breath Cocktail: sc_start SC_FOOD_INT_CASH,1800000,10; Cocktail Warg Blood: sc_start SC_COCKTAIL_WARG_BLOOD, 300000, 20; Quote Link to comment Share on other sites More sharing options...
v00m3r Posted July 28, 2012 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 291 Reputation: 4 Joined: 04/24/12 Last Seen: January 30, 2014 Author Share Posted July 28, 2012 ok sorry for that.. just that i dont know what is cash he means thank you ill try this one Quote Link to comment Share on other sites More sharing options...
Jezu Posted July 30, 2012 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 566 Reputation: 34 Joined: 11/17/11 Last Seen: January 24 Share Posted July 30, 2012 (edited) The foods that created by Geneticist/Creator will gone upon death. That is not a 'cash' foods. Same with official servers out there. Edited July 30, 2012 by Jezu Quote Link to comment Share on other sites More sharing options...
Wafflebutt Posted July 30, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 234 Reputation: 19 Joined: 06/15/12 Last Seen: November 28, 2023 Share Posted July 30, 2012 The foods that created by Geneticist/Creator will gone upon death. That is not a 'cash' foods. Same with official servers out there. Yes, the effect will be gone on death. Because it is no cash food. But he wanted the foods to last even after death. And we pointed him to the solution -> itemscript. Ofc the genetic food isn´t cash shop food... Also this topic is already solved. Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 30, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 16 hours ago Share Posted July 30, 2012 if you want to make the effect stay even after death.. you have to do src modification https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/status.c add inside here.. int status_change_clear(struct block_list* bl, int type) { struct status_change* sc; int i; sc = status_get_sc(bl); if (!sc || !sc->count) return 0; for(i = 0; i < SC_MAX; i++) { if(!sc->data[i]) continue; if(type == 0) 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; case SC_WEIGHT50: case SC_WEIGHT90: case SC_EDP: case SC_MELTDOWN: case SC_XMAS: case SC_SUMMER: case SC_NOCHAT: case SC_FUSION: case SC_EARTHSCROLL: case SC_READYSTORM: case SC_READYDOWN: case SC_READYCOUNTER: case SC_READYTURN: case SC_DODGE: case SC_JAILED: case SC_EXPBOOST: case SC_ITEMBOOST: case SC_HELLPOWER: case SC_JEXPBOOST: case SC_AUTOTRADE: case SC_WHISTLE: case SC_ASSNCROS: case SC_POEMBRAGI: case SC_APPLEIDUN: case SC_HUMMING: case SC_DONTFORGETME: case SC_FORTUNE: case SC_SERVICE4U: case SC_FOOD_STR_CASH: case SC_FOOD_AGI_CASH: case SC_FOOD_VIT_CASH: case SC_FOOD_DEX_CASH: case SC_FOOD_INT_CASH: case SC_FOOD_LUK_CASH: case SC_DEF_RATE: case SC_MDEF_RATE: case SC_INCHEALRATE: case SC_INCFLEE2: case SC_INCHIT: case SC_ATKPOTION: case SC_MATKPOTION: case SC_S_LIFEPOTION: case SC_L_LIFEPOTION: case SC_PUSH_CART: continue; } status_change_end(bl, (sc_type)i, INVALID_TIMER); if( type == 1 && sc->data[i] ) { //If for some reason status_change_end decides to still keep the status when quitting. [skotlex] (sc->count)--; if (sc->data[i]->timer != INVALID_TIMER) delete_timer(sc->data[i]->timer, status_change_timer); ers_free(sc_data_ers, sc->data[i]); sc->data[i] = NULL; } } sc->opt1 = 0; sc->opt2 = 0; sc->opt3 = 0; sc->option &= OPTION_MASK; if( type == 0 || type == 2 ) clif_changeoption(bl); return 1; } Quote Link to comment Share on other sites More sharing options...
Question
v00m3r
How can i make food buffs when the player die the food buff is still there?
Edited by v00m3rLink to comment
Share on other sites
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.