Fairly certain this works with transcendence as well:

this.DropItem (new ScrollofAlacrity (PowerScroll.Skills [Utility.Random (PowerScroll.Skills.Count)]));
 
Fairly certain this works with transcendence as well:

this.DropItem (new ScrollofAlacrity (PowerScroll.Skills [Utility.Random (PowerScroll.Skills.Count)]));
i did it like that but it gives error
public override void OnDeath(Container c)
{
base.OnDeath(c);

if (Utility.RandomDouble() <= 0.90)
c.DropItem(new ScrollofAlacrity(PowerScroll.Skills[Utility.Random(PowerScroll.Skills.Count)]));

if (Utility.RandomDouble() <= 0.90)
c.DropItem(new ScrollofTranscendence(PowerScroll.Skills[Utility.Random(PowerScroll.Skills.Count)]));
}



Errors:
+ Mobiles/Normal/Unicorn.cs:
CS1502: Line 189: The best overloaded method match for 'Server.Items.Scrollo
fTranscendence.ScrollofTranscendence(Server.Serial)' has some invalid arguments
CS1503: Line 189: Argument 1: cannot convert from 'Server.SkillName' to 'Ser
ver.Serial'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 
Well thats because you didnt put the amount of the scroll in. I mean you could also just do this
Code:
c.DropItem(ScrollofTranscendence.CreateRandom(1, 10));
 
i did it like that but it gives error
public override void OnDeath(Container c)
{
base.OnDeath(c);

if (Utility.RandomDouble() <= 0.90)
c.DropItem(new ScrollofAlacrity(PowerScroll.Skills[Utility.Random(PowerScroll.Skills.Count)]));

if (Utility.RandomDouble() <= 0.90)
c.DropItem(new ScrollofTranscendence(PowerScroll.Skills[Utility.Random(PowerScroll.Skills.Count)]));
}



Errors:
+ Mobiles/Normal/Unicorn.cs:
CS1502: Line 189: The best overloaded method match for 'Server.Items.Scrollo
fTranscendence.ScrollofTranscendence(Server.Serial)' has some invalid arguments
CS1503: Line 189: Argument 1: cannot convert from 'Server.SkillName' to 'Ser
ver.Serial'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
scroll of alacrity works but it doesnt show the name of the skill it drop anyway to fix that too?
Well thats because you didnt put the amount of the scroll in. I mean you could also just do this
Code:
c.DropItem(ScrollofTranscendence.CreateRandom(1, 10));
ty both of you it works
i have 1more question when i one click on those scrolls it doesnt say the skill it dropped it just say scroll of alacrity and scroll of transcendence how can i make it display skill name too? when i one click on scroll im pre aos
[doublepost=1531680505][/doublepost]i did this to make it show but it gives followin error

public override void OnSingleClick(Mobile from)

{
if (this.Value == 1)
list.Add(1076759, "{0}\t{1}.0 Skill Points", this.GetName(), this.Value);
else
list.Add(1076759, "{0}\t{1} Skill Points", this.GetName(), this.Value);
}

error: list does not exist in current content
 
Add this to the ScrollofTranscendence class
Code:
        public override void OnSingleClick(Mobile from)
        {
            base.OnSingleClick(from);

            LabelTo(from, 1076759, String.Format("{0}\t{1} Skill Points", GetName(), Value));
        }
 
tyvm
Add this to the ScrollofTranscendence class
Code:
        public override void OnSingleClick(Mobile from)
        {
            base.OnSingleClick(from);

            LabelTo(from, 1076759, String.Format("{0}\t{1} Skill Points", GetName(), Value));
        }
tyvm pyre it works
im trying to do same for alacrity like this, but it says "skill name" :d

public override void OnSingleClick(Mobile from)
{
base.OnSingleClick(from);

LabelTo(from, 1071345, String.Format("Skill Name", GetName()));
}
[doublepost=1531682088][/doublepost]
tyvm

tyvm pyre it works
im trying to do same for alacrity like this, but it says "skill name" :d

public override void OnSingleClick(Mobile from)
{
base.OnSingleClick(from);

LabelTo(from, 1071345, String.Format("Skill Name", GetName()));
}
i used this.getname and it worked ty :)
 
Back