ThyroDree 3 Posted April 3, 2020 { Id: 30000 AegisName: "Level1BuffScroll" Name: "Level 1 All-in-One Buff Scroll" Type: "IT_USABLE" Buy: 2 Weight: 10 EquipLv: 1 Trade: { nodrop: true notrade: true noselltonpc: true nocart: true nogstorage: true nomail: true noauction: true } Script: <" itemskill(AL_BLESSING, 10, ISF_INSTANTCAST | ISF_CASTONSELF), itemskill(AL_INCAGI, 10, ISF_INSTANTCAST | ISF_CASTONSELF); "> }, Why it doesn't buff Agi and Blessing? if i removed 1 itemskill, Scroll works perfectly but if 2 item skill i doesn't work.. Quote Share this post Link to post Share on other sites
0 ThyroDree 3 Posted April 4, 2020 If anyone gets interested with this, i got alternate solution i used callfunc heres the script //== Starter Scroll Buffs ====================================== function script R_Scroll1 { specialeffect(EF_INCAGILITY, AREA, playerattached()); sc_start SC_INC_AGI,240000,10; specialeffect(EF_BLESSING, AREA, playerattached()); sc_start SC_BLESSING,240000,10; end; } function script R_Scroll100 { specialeffect(EF_INCAGILITY, AREA, playerattached()); sc_start SC_INC_AGI,240000,10; specialeffect(EF_BLESSING, AREA, playerattached()); sc_start SC_BLESSING,240000,10; specialeffect(EF_CONCENTRATION, AREA, playerattached()); sc_start SC_CONCENTRATION,240000,10; end; } function script R_Scroll200 { specialeffect(EF_INCAGILITY, AREA, playerattached()); sc_start SC_INC_AGI,240000,10; specialeffect(EF_BLESSING, AREA, playerattached()); sc_start SC_BLESSING,240000,10; specialeffect(EF_CONCENTRATION, AREA, playerattached()); sc_start SC_CONCENTRATION,240000,10; specialeffect(EF_ASSUMPTIO, AREA, playerattached()); sc_start SC_ASSUMPTIO,200000,10; end; } item_db2 { Id: 30000 AegisName: "Level200BuffScroll" Name: "Level 200 All-in-One Buff Scroll" Type: "IT_USABLE" Buy: 2 Weight: 10 EquipLv: 200 Trade: { nodrop: true notrade: true noselltonpc: true nocart: true nogstorage: true nomail: true noauction: true } Nouse: { sitting: true } Script: <" callfunc "R_Scroll200",1; "> }, Quote Share this post Link to post Share on other sites
0 Zero Human 0 Posted April 3, 2020 1 hour ago, ThyroDree said: itemskill(AL_BLESSING, 10, ISF_INSTANTCAST | ISF_CASTONSELF), itemskill(AL_INCAGI, 10, ISF_INSTANTCAST | ISF_CASTONSELF); Change it to itemskill(AL_BLESSING, 10, ISF_INSTANTCAST | ISF_CASTONSELF); itemskill(AL_INCAGI, 10, ISF_INSTANTCAST | ISF_CASTONSELF); Quote Share this post Link to post Share on other sites
0 ThyroDree 3 Posted April 3, 2020 6 minutes ago, Zero Human said: Change it to itemskill(AL_BLESSING, 10, ISF_INSTANTCAST | ISF_CASTONSELF); itemskill(AL_INCAGI, 10, ISF_INSTANTCAST | ISF_CASTONSELF); Script: <" itemskill(AL_BLESSING, 10, ISF_INSTANTCAST | ISF_CASTONSELF); itemskill(AL_INCAGI, 10, ISF_INSTANTCAST | ISF_CASTONSELF); "> ^ here whats on my script now. also tried your sample. still not working 😕 Quote Share this post Link to post Share on other sites
0 Zero Human 0 Posted April 3, 2020 Hmm.. Looks like it's a problem from hercules. All items with more as one itemskill not working, like Angelus Scroll what contains itemskill(AL_BLESSING, 5, ISF_INSTANTCAST | ISF_CASTONSELF); itemskill(AL_ANGELUS, 5); Quote Share this post Link to post Share on other sites
0 ThyroDree 3 Posted April 4, 2020 6 hours ago, Zero Human said: Hmm.. Looks like it's a problem from hercules. All items with more as one itemskill not working, like Angelus Scroll what contains itemskill(AL_BLESSING, 5, ISF_INSTANTCAST | ISF_CASTONSELF); itemskill(AL_ANGELUS, 5); itemskill(AL_BLESSING, 5, ISF_INSTANTCAST | ISF_CASTONSELF); itemskill(AL_ANGELUS, 5); Yes. the first itemskill will not work too, scroll will be consumed without getting any buffs Quote Share this post Link to post Share on other sites
0 Kenpachi 65 Posted April 4, 2020 Hi. More than one itemskill() invocation per item is not support due to the mechanics of server-client-communication. When using the item, the first itemskill() invocation makes the server send a packet (ZC_AUTORUN_SKILL) to the client. Now the item's script isn't attached to the character anymore and thus the second itemskill() invocation can't be executed. Use sc_start() for the first skill, to "fix" this. I have to investigate how Aegis handles this, since there are official items which cast more than one skill. For example Angeling Potion (ID=12350). item Angeling_Potion event OnConsume: SkillToMe AL_BLESSING 5 Skill AL_ANGELUS 5 return ~Kenpachi 1 ThyroDree reacted to this Quote Share this post Link to post Share on other sites
0 ThyroDree 3 Posted April 4, 2020 Thank you for this. I will just make separate item scroll then 🤩 Quote Share this post Link to post Share on other sites
Why it doesn't buff Agi and Blessing? if i removed 1 itemskill, Scroll works perfectly but if 2 item skill i doesn't work..
Share this post
Link to post
Share on other sites