iraciz Posted September 10, 2014 Posted September 10, 2014 Like the box of sunlight, but a mood to affect all party members, can it be done? Quote
1 Bin4ry Posted September 10, 2014 Posted September 10, 2014 (edited) function script B_Sunlight { if (getcharid(1)) { getmapxy(.@map1$, .@x1, .@y1, 0); getpartymember getcharid(1), 1; getpartymember getcharid(1), 2; for(set .@i,0; .@i < $@partymembercount; set .@i,.@i+1) { if (isloggedin($@partymemberaid[.@i], $@partymembercid[.@i])) { attachrid $@partymemberaid[.@i]; if (HP > 0) { getmapxy(.@map2$,.@x2,.@y2,0); if ((.@map1$ == .@map2$) && (distance(.@x1,.@y1,.@x2,.@y2) <= 30)) { sc_start SC_Intravision,30000,0; } } } } } else { sc_start SC_Intravision,30000,0; } end; } This should work, I can't test for you. This script will also check the range between the party member and only affect members within the screen (and alive). Change your Box of Sunlight item_db script into callfunc "B_Sunlight"; Edited September 10, 2014 by Bin4ry 2 Quote
iraciz Posted September 10, 2014 Author Posted September 10, 2014 Look this! It work like a charm! I think this function is even better than editing source and adding a new skill from 0. like the other party scrolls, assumptio, bless, or agi. I added some effects to the script as you can see, I have a last question, not priority, but can I make all the party members chat after using the item? something like using the skil, chat without names of course, just to simmulate behavior of them are using a skill, like "Wide Sight". Quote
Bin4ry Posted September 11, 2014 Posted September 11, 2014 Not possible without src edit if not mistaken, currently you can only make player talk with their name and it would make a lot unnecessary chat log in ur db. Have fun & good luck Quote
Question
iraciz
Like the box of sunlight, but a mood to affect all party members, can it be done?
3 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.