Zamthos
02-22-2013, 09:07 PM
Here you go, all the way to 85.
@SpellName10 = ("Center", "Spirit of Bear", "Feet like Cat", "Dextrous Aura", "Strengthen", "Quickness", "Breeze", "Spirit of Wolf", "Shield of Brambles", "Complete Heal");
@SpellName20 = ("Daring", "Turtle Skin", "Spirit of Cat", "Protection of Rock", "Spirit Strength", "Alacrity", "Clarity", "Spirit of Wolf", "Shield of Spikes", "Complete Heal");
@SpellName30 = ("Bravery", "Spirit of Ox", "Spirit of Cat", "Rising Dexterity", "Raging Strength", "Augmentation", "Clarity II", "Spirit of the Shrew", "Shield of Thorns", "Complete Heal");
@SpellName40 = ("Valor", "Health", "Nimble", "Deftness", "Furious Strength", "Celerity", "Boon of the Clear Mind", "Pack Spirit", "Legacy of Spike", "Complete Heal");
@SpellName50 = ("Blessing of Temperance", "Stamina", "Agility", "Dexterity", "Strength", "Swift like the Wind", "Gift of Pure Thought", "Spirit of Eagle", "Shield of Blades", "Complete Heal");
@SpellName60 = ("Aegolism", "Talisman of the Brute", "Talisman of the Cat", "Mortal Deftness", "Talisman of the Rhino", "Augment", "Koadic's Endless Intellect", "Spirit of Eagle", "Legacy of Thorn", "Complete Heal");
@SpellName65 = ("Virtue", "Focus of the Seventh", "Sylvan Infusion", "Protection of the Nine", "Visions of Grandeur", "Tranquility", "Circle of Seasons", "Spirit of Eagle", "Shield of Bracken", "Complete Heal");
@SpellName70 = ("Hand of Virtue", "Talisman of Wunshi", "Chlorotrope", "Steeloak Skin", "Vallon's Quickening", "Clairvoyance", "Protection of Seasons", "Flight of Eagles", "Nettle Shield", "Complete Heal");
@spellID10 = ("219", "279", "269", "266", "40", "39", "697", "278", "46", "129", "13");
@spellID20 = ("89", "283", "148", "2512", "147", "170", "174", "278", "46", "432", "13");
@spellID30 = ("244", "149", "148", "349", "151", "10", "1693", "4054", "356", "13");
@spellID40 = ("312", "161", "160", "152", "153", "171", "1694", "169", "1727", "13");
@spellID50 = ("4053", "158", "154", "157", "159", "172", "1695", "2517", "1560", "13");
@spellID60 = ("1447", "1580", "1579", "1596", "1581", "1729", "2570", "2517", "1561", "13");
@spellID65 = ("3467", "3397", "4883", "3234", "1710", "3350", "2519", "2517", "3448", "13");
@spellID70 = ("3479", "5415", "5355", "5352", "3178", "5513", "3444", "3185", "5358", "13");
sub EVENT_SAY
{
my $Buff = quest::saylink("buffs", 1);
my $heal = quest::saylink("heal", 1);
my $cure = quest::saylink("cure", 1);
my $speed = quest::saylink("speed", 1);
my $KEI = quest::saylink("KEI", 1);
my $NPCName = $npc->GetCleanName();
my $total = 11;
my $n = 0;
my $Group = $client->GetGroup();
if($text=~/Hail/i)
{
$client->Message(315, "$NPCName whispers to you, 'Hello, $name. Do you need $Buff? If you're in a Group you will get Group Buffs, if you're alone you will get Solo Buffs. Or maybe you need a $cure, $speed, $KEI, or a $heal?'");
}
if($text=~/Heal/i)
{
quest::selfcast(13);
$client->Message(315, "$NPCName whispers to you, 'You have been healed! Enjoy!'");
}
if($text=~/Cure/i)
{
quest::selfcast(11274);
$client->Message(315, "$NPCName whispers to you, 'You have been cured! Enjoy!'");
}
if($text=~/Speed/i)
{
quest::selfcast(1212);
$client->Message(315, "$NPCName whispers to you, 'Enjoy!'");
}
if($text=~/KEI/i)
{
quest::selfcast(2570);
$client->Message(315, "$NPCName whispers to you,' Enjoy!");
}
if($text=~/Buffs/i)
{
if($Group)
{
if($ulevel<=10)
{
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID10[$n]);
$n++;
}
if($ulevel>=11 && $ulevel<=20)
{
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID20[$n]);
$n++;
}
if($ulevel>=21 && $ulevel<=30)
{
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID30[$n]);
$n++;
}
if($ulevel>=31 && $ulevel<=40)
{
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID40[$n]);
$n++;
}
if($ulevel>=41 && $ulevel<=50)
{
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID50[$n]);
$n++;
}
if($ulevel>=51 && $ulevel<=60)
{
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID60[$n]);
$n++;
}
if($ulevel>=61 && $ulevel<=65)
{
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID65[$n]);
$n++;
}
if($ulevel>=66 && $ulevel<=85)
{
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
$Group->CastGroupSpell($npc, $spellID70[$n]);
$n++;
}
}
else
{
if ($ulevel <= 10)
{
quest::selfcast(5415);
quest::selfcast(5312);
quest::selfcast(5405);
quest::selfcast(5409);
quest::selfcast(5521);
quest::selfcast(5365);
quest::selfcast(278);
quest::selfcast(939);
quest::selfcast(3391);
quest::selfcast(5390);
$client->Message(315, "$NPCName whispers to you, 'Enjoy!'");
}
if (($ulevel > 10) && ($ulevel < 25))
{
quest::selfcast(5415);
quest::selfcast(5312);
quest::selfcast(5405);
quest::selfcast(5409);
quest::selfcast(5521);
quest::selfcast(5365);
quest::selfcast(278);
quest::selfcast(939);
quest::selfcast(3391);
quest::selfcast(5390);
$client->Message(315, "$NPCName whispers to you, 'Enjoy!'");
}
if (($ulevel >= 25) && ($ulevel < 51))
{
quest::selfcast(5278);
quest::selfcast(5415);
quest::selfcast(5312);
quest::selfcast(5405);
quest::selfcast(5409);
quest::selfcast(5521);
quest::selfcast(5365);
quest::selfcast(278);
quest::selfcast(939);
quest::selfcast(3391);
quest::selfcast(5390);
$client->Message(315, "$NPCName whispers to you, 'Enjoy!'");
}
if ($ulevel >= 51)
{
quest::selfcast(5278);
quest::selfcast(5415);
quest::selfcast(5312);
quest::selfcast(5405);
quest::selfcast(5409);
quest::selfcast(5521);
quest::selfcast(5365);
quest::selfcast(278);
quest::selfcast(939);
quest::selfcast(3391);
quest::selfcast(5390);
$client->Message(315, "$NPCName whispers to you, 'Enjoy!'");
}
}
}
}
}
Zamthos
02-23-2013, 10:42 PM
If the roll is what you said you get back five times what you put in.
Here you go:
sub EVENT_SAY
{
my $NPCNAME = $npc->GetCleanName();
if($text=~/hail/i)
{
$client->Message(315, "$NPCNAME whispers to you, 'Hey there $name, up for some gambling? Pick a number from 1-10 by saying \"number #\", give me some money and if you're lucky and I roll your number you will get back five times the amount of money you put in.'");
}
elsif($text=~/number ([0-9]+)/i)
{
$numbers{$name} = $1;
$client->Message(315, "$NPCNAME whispers to you, 'Ok, you picked $1... Hand me your bet and let me grab my dice...'");
}
}
sub EVENT_ITEM
{
my $NPCNAME = $npc->GetCleanName();
if(defined($numbers{$name}))
{
$client->Message(315, "$NPCNAME whispers to you, 'Ok, your bet is $platinum pp, $gold gp, $silver sp, $copper cp. Rolling my dice!'");
$client->Message(315, "$NPCNAME tosses his dice on the ground and looks at the number that comes up.");
$roll = int(rand(9)+0.5) + 1;
plugin::Whisper("The roll is $roll!");
if($roll == $numbers{$name})
{
quest::givecash($copper*5,$silver*5,$gold*5,$plati num*5);
}
else
{
$client->Message(315, "$NPCNAME whispers to you, 'Oh, too bad, you lose, oh well, let me know if you want to try again.'");
}
}
else
{
$client->Message(315, "$NPCNAME whispers to you, 'You have to pick a number first!'");
quest::givecash($copper, $silver, $gold, $platinum);
plugin::return_items(\%itemcount);
}
}
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.