Jump to content
  • 0

R > Party Infravision Scroll


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

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

  • 1

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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

Link to comment
Share on other sites

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.

×
×
  • Create New...