Buff Scroll

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
{
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..

 
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 😕

 
Hmm.. Looks like it's a problem from hercules.
All items with more as one itemskill not working, like Angelus Scroll what contains

Code:
itemskill(AL_BLESSING, 5, ISF_INSTANTCAST | ISF_CASTONSELF);
itemskill(AL_ANGELUS, 5);
 
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

 
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

 
Last edited by a moderator:
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

Code:
{
	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;
		">
},
 
Back
Top