iraciz Posted September 10, 2014 Group: Members Topic Count: 140 Topics Per Day: 0.03 Content Count: 562 Reputation: 111 Joined: 10/05/12 Last Seen: February 12, 2024 Share Posted September 10, 2014 Like the box of sunlight, but a mood to affect all party members, can it be done? Quote Link to comment Share on other sites More sharing options...
1 Bin4ry Posted September 10, 2014 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share 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 Link to comment Share on other sites More sharing options...
iraciz Posted September 10, 2014 Group: Members Topic Count: 140 Topics Per Day: 0.03 Content Count: 562 Reputation: 111 Joined: 10/05/12 Last Seen: February 12, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
Bin4ry Posted September 11, 2014 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share 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 Link to comment Share on other sites More sharing options...
Question
iraciz
Like the box of sunlight, but a mood to affect all party members, can it be done?
Link to comment
Share on other sites
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.