i did it like that but it gives errorFairly certain this works with transcendence as well:
this.DropItem (new ScrollofAlacrity (PowerScroll.Skills [Utility.Random (PowerScroll.Skills.Count)]));
scroll of alacrity works but it doesnt show the name of the skill it drop anyway to fix that too?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.
ty both of you it worksWell 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));
tyvm pyre it worksAdd 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)); }
i used this.getname and it worked tytyvm
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()));
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.