The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
How make Script on Ammunition (Arrow) works?
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
kyenard
Title.
I understand that eAthena has some kind of setting that won't read the script line attached to any Arrow/Ammunition Item. I found this line on Status.c but can't really find a way to make it work.
if(sd->equip_index[EQI_AMMO] >= 0) { index = sd->equip_index[EQI_AMMO]; if(sd->inventory_data[index]) { // Arrows sd->bonus.arrow_atk += sd->inventory_data[index]->atk; sd->param_equip,sd->param_bonus,sizeof(sd->param_equip); sd->param_bonus, 0, sizeof(sd->param_bonus); sd->state.lr_flag = 2; if( !itemdb_group_item_exists(IG_THROWABLE, sd->inventory_data[index]->nameid) ) // Don't run scripts on throwable items run_script(sd->inventory_data[index]->script,0,sd->bl.id,0); sd->state.lr_flag = 0; if (!calculating) // Abort, run_script retriggered status_calc_pc. [Skotlex] return 1; } }
Maybe is not a simples change 0 to 1, I understand, but If you can read better than I do, I would like to hear from you where could I change to make it happen. Thank you guys in advance for the help.
Link to comment
Share on other sites
2 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.