as you can see, sling item equips the food as ammunition and then you can sling it to another player to give them the buff effects of the food
i need help doing the same thing with slim potion pitcher. i already know how to make items into ammo, so the only thing i need help with is the source code aspect and make it search for whatever ammo you have equipped instead of whatever it's doing. i have highlighted the suspected culprits
case CR_SLIMPITCHER:
if (sd) {
int i = skill_lv%11 - 1;
int j = pc->search_inventory(sd,skill->db[skill_id].itemid);
please note that i will not be using any values specified in the skill_require_db, i will be opting for a hard code of each individual item id that is valid for ammo.
other info from previous attempts:
when getting help before, they suggested me to use this code(which is basically sling item's)
but the problem is that not only does the ammunition provide its buffs to the wielder like this when it gets equipped, but it doesn't even use the ammunition at all and opts to search for the item requirement defined in skill_require_db anyways.
alright so simply put
as you can see, sling item equips the food as ammunition and then you can sling it to another player to give them the buff effects of the food
i need help doing the same thing with slim potion pitcher. i already know how to make items into ammo, so the only thing i need help with is the source code aspect and make it search for whatever ammo you have equipped instead of whatever it's doing. i have highlighted the suspected culprits
Share this post
Link to post
Share on other sites