Jump to content
  • 0
ThyroDree

Buff Scroll

Question

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

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

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;
		">
},

 

Share this post


Link to post
Share on other sites
  • 0
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);

Share this post


Link to post
Share on other sites
  • 0
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 😕

Share this post


Link to post
Share on other sites
  • 0

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);

 

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.