Jump to content
  • 0

R > Party Infravision Scroll


Question

3 answers to this question

Recommended Posts

  • 1
Posted (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 by Bin4ry
  • Upvote 2
Posted

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".  

 

screen_FF8000_Academy_Ro006.jpg

Posted

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 :P

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...