EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Quests (https://www.eqemulator.org/forums/forumdisplay.php?f=624)
-   -   Reset Spell Specialization? (https://www.eqemulator.org/forums/showthread.php?t=15210)

sotonin 08-07-2004 05:33 AM

Reset Spell Specialization?
 
Is there a function out there to reset a players spell specialization? I am working on "Ostorm"'s quest at the moment and am at a loss. here's what i've got so far.

Code:

sub EVENT_SAY {
if($text=~/Hail/i){
quest::say("I am Ostorm of the Temple of Solusek Ro. guardian of the sacred crystal of Kintaz.  Be wary and keep your distance. lest the proximity of the crystal [steal] your [memories].");
}
if($text=~/steal/i){
quest::say("It is the nature of the crystal of Kintaz to steal the memories of those around it. Only I am safe, and then only because of the strong wardings placed on me by Solusek Ro himself.  Are you interested in [losing] any [memories]?");
}
if($text=~/losing/i){
quest::say("Recently, I have been experimenting with the crystal, and have found that those exposed to ruby light filtered through it tend to lose the memories of their most specialized arcane skills.  Are you sure you want to [lose advanced memory] of specialization?");
}
if($text=~/lose advanced memory/i){
quest::say("Be warned that once exposed to the crystal, I can not reverse the effects.  If you desire exposure, fetch me a ruby.");
}
}
sub EVENT_ITEM {
        if($itemcount{10031} == 2 && $itemcount{10000} == 1){
                quest::say("Well done, $name, here is your Lambent Fire Opal.");
                quest::summonitem("10128");
        } elsif($itemcount{10035} == 1){
                quest::idontknowhowtodoit("");
        } else {
                quest::say("I don't need this.");
                if($item1 > 0){quest::summonitem("$item1");}
                if($item2 > 0){quest::summonitem("$item2");}
                if($item3 > 0){quest::summonitem("$item3");}
                if($item4 > 0){quest::summonitem("$item4");}
                if($platinum != 0 || $gold !=0 || $silver != 0 || $copper != 0) {quest::givecash($platinum, $gold, $silver, $copper);}
        }
}

#END of FILE Zone:soltemple  ID:80012 -- Ostorm


Charmy 08-07-2004 06:51 AM

Hmm i think there is a command to set a single skill..

quest::setskill maybe? i could be wrong i don't remember...

I know that there is the quest::setallskill and i know that bush wrote some scripts for his "skill skeles" that set single skills, so i know its possible give me a min to serach for it.

Charmy 08-07-2004 06:54 AM

Here we go

Code:

# Skills:

#quest::setskill(6,5); # Apply Poison
#quest::setskill(7,5); # Archery
#quest::setskill(8,5); # Backstab
#quest::setskill(10,5); # Bash
#quest::setskill(11,5); # Block
#quest::setskill(12,5); # Brass Instruments
#quest::setskill(16,5); # Disarm
#quest::setskill(17,5); # Disarm Traps
#quest::setskill(19,5); # Dodge
#quest::setskill(20,5); # Double Attack
#quest::setskill(21,5); # Dragon Punch
#quest::setskill(22,5); # Dual Wield
#quest::setskill(23,5); # Eagle Strike
#quest::setskill(25,5); # Feign Death
#quest::setskill(26,5); # Flying Kick
#quest::setskill(27,5); # Forage
#quest::setskill(29,5); # Hide
#quest::setskill(30,5); # Kick
#quest::setskill(31,5); # Meditate
#quest::setskill(32,5); # Mend
#quest::setskill(34,5); # Parry
#quest::setskill(35,5); # Pick Lock
#quest::setskill(37,5); # Riposte
#quest::setskill(38,5); # Round Kick
#quest::setskill(39,5); # Safe Fall
#quest::setskill(42,5); # Sneak
#quest::setskill(43,5); # Specialize Abjuration
#quest::setskill(44,5); # Specialize Alteration
#quest::setskill(45,5); # Specialize Conjuration
#quest::setskill(46,5); # Specialize Divination
#quest::setskill(47,5); # Specialize Evocation
#quest::setskill(48,5); # Pick Pockets
#quest::setskill(49,5); # Stringed Instruments
#quest::setskill(52,5); # Tiger Claw
#quest::setskill(53,5); # Tracking
#quest::setskill(54,5); # Wind Instruments
#quest::setskill(56,5); # Make Poison
#quest::setskill(58,5); # Research
#quest::setskill(59,5); # Alchemy
#quest::setskill(62,5); # Sense Traps
#quest::setskill(70,5); # Percussion Instruments
#quest::setskill(71,5); # Intimidation
#quest::setskill(73,5); # Taunt

Thanks bUsH wherever he is....


so to reset the skills you would do this

Code:

if($itemcount {10035} == 1)
 {
  quest::setskill(43,0); # Specialize Abjuration
  quest::setskill(44,0); # Specialize Alteration
  quest::setskill(45,0); # Specialize Conjuration 
  quest::setskill(46,0); # Specialize Divination
  quest::setskill(47,0); # Specialize Evocation
  }


sotonin 08-07-2004 08:43 AM

Nice. )

thanks

Charmy 08-07-2004 04:02 PM

Np. Just make a note when using the setskill ability, giving a mage 252 in flying kick doesn't work. which is to bad =( but its still fun =)

sotonin 08-07-2004 04:37 PM

hehe. im only using it to reset specializations ) fun idea though

animepimp 08-08-2004 02:55 AM

It doesn't work to give them 252 in a skill that needs to be activated, but you can give them 252 in other skills and have it work. Like if you give them 252 in dual weild and then use #equip to equip another weapon in their right hand they will dual weild them :)

Charmy 08-08-2004 02:00 PM

Bah.....h....h..... hmm well a dual weilding gnome mage would be rather fun...


All times are GMT -4. The time now is 08:16 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.