Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
RobMacAF
Apprentice


Joined: 09 Jun 2002
Posts: 186
Location: USA

PostPosted: Wed Jul 16, 2003 6:58 am   

EXP List in DR
 
So, you are in DR and you need to know what skills you need. This script will help with that....

It works in two ways.
#1. Type explist #
By doing this is will show you what skills you will need for circle #

#2. Type expneed #
This will tell you what skills you need to get to circle #


!!!SETUP!!!
Yes, this script needs to be set up. First off it needs a database of the skill chart you are getting this info from. This script is for MM and contains skills from 1-20. If you would like the database let me know. RobAMacAF@yahoo.com

Also. Now with the different lores and survivals different people can pick different ones that they want. This script was made for what I want. If you want different skills you will need to change the triggers under the EXP class.

This script is pretty self explainatory. It has 2 alias's to start either EXPLIST or EXPNEED and two classes. EXPMAGIC and EXP

EXPMAGIC Captures how much magic you need. Change this accordingly if you are a non magic user

EXP Captures the skills that you have and compares them to the values in the database


With this info you should be able to make the script work how you want. Hope it helps



IF YOU WANT TO CONTACT ME, CONTACT ME AT THE FOLLOWING
EMAIL: ROBAMACAF@YAHOO.COM
Y!: ROBAMACAF
MSN: ROBMACAF@MSN.COM
AIM: ROBMAC00
--------------------------------------------------------------------


#CLASS {exp}
#TRIGGER {Power Perceive: (%d)} {#VAR PP %1;#VAR NEEDEDPP %db( @record, PP);#MATH PPLEFT @NeededPP-@PP}
#TRIGGER {EXP HELP} {#ECHO ~*~*~*~* SKILLS LEFT FOR CIRCLE @recordnum ~*~*~*~*;#ECHO Magic~-@MagicLeft ~: PP~-@PPLeft ~: Astrology~-@AstLeft ~: Scholarship~-@ScholarshipLeft ~: Teaching~-@TeachingLeft ~: Mech~-@MechLeft ~: Perception~-@PercLeft;#ECHO Evasion~-@EvasionLeft ~: Stalking~-@StalkLeft ~: Skinning~-@SkinningLeft ~: Foraging~-@ForagingLeft ~: Hiding~-@HidingLeft ~: Lockpicking~-@PickingLeft ~: Disarming~-@DisarmingLeft;#T- exp}
#TRIGGER {Astrology: (%d)} {#VAR AST %1;#VAR NEEDEDAST %db( @record, Astrology);#MATH ASTLEFT @NeededAST-@AST}
#TRIGGER {Scholarship: (%d)} {#VAR Scholarship %1;#VAR NEEDEDScholarship %db( @record, Scholarship);#MATH ScholarshipLEFT @NeededScholarship-@Scholarship}
#TRIGGER {Teaching: (%d)} {#VAR Teaching %1;#VAR NEEDEDTeaching %db( @record, Teaching);#MATH TeachingLEFT @NeededTeaching-@Teaching}
#TRIGGER {Mechanical Lore: (%d)} {#VAR Mech %1;#VAR NEEDEDMech %db( @record, Mech);#MATH MechLEFT @NeededMech-@Mech}
#TRIGGER {Perception: (%d)} {#VAR Perc %1;#VAR NEEDEDPerc %db( @record, Survival1);#MATH PercLEFT @NeededPerc-@Perc}
#TRIGGER {Evasion: (%d)} {#VAR Evasion %1;#VAR NEEDEDEvasion %db( @record, Survival2);#MATH EvasionLEFT @NEEDEDEvasion-@Evasion}
#TRIGGER {Stalking: (%d)} {#VAR Stalk %1;#VAR NEEDEDStalk %db( @record, Survival3);#MATH StalkLEFT @NeededStalk-@Stalk}
#TRIGGER {Skinning: (%d)} {#VAR Skinning %1;#VAR NEEDEDSkinning %db( @record, Survival4);#MATH SkinningLEFT @NeededSkinning-@Skinning}
#TRIGGER {Foraging: (%d)} {#VAR Foraging %1;#VAR NEEDEDForaging %db( @record, Survival5);#MATH ForagingLEFT @NeededForaging-@Foraging}
#TRIGGER {Hiding: (%d)} {#VAR Hiding %1;#VAR NEEDEDHiding %db( @record, Survival6);#MATH HidingLEFT @NeededHiding-@Hiding}
#TRIGGER {Disarm Traps: (%d)} {#VAR Disarming %1;#VAR NEEDEDDisarming %db( @record, Survival7);#MATH DisarmingLEFT @NEEDEDDisarming-@Disarming}
#TRIGGER {Lockpicking: (%d)} {#VAR Picking %1;#VAR NEEDEDPicking %db( @record, Survival8);#MATH PickingLEFT @NEEDEDPicking-@Picking}
#CLASS 0

#CLASS {expmagic}
#TRIGGER {Total: (*) in * included} {#VAR Magic %1;#VAR NeededMagic %db( @record, Magic);#Math MagicLeft @NeededMagic-@Magic;exp all}
#TRIGGER {Showing all your skills above rank} {#T+ exp;#T- expmagic}
#CLASS 0

#ALIAS explist {#VAR recor %dbget( %1);#ECHO ~*~*~*~* SKILLS NEEDED FOR CIRCLE %1 ~*~*~*~*;#ECHO Magic~-%db( %1, Magic) ~: PP~-%db( %1, PP) ~: Astrology~-%db( %1, Astrology) ~: Scholarship~-%db( %1, Scholarship) ~: Teaching~-%db( %1, Teaching) ~: Mech~-%db( %1, Lore1) ~: Lore2~-%db( %1, Lore2);#ECHO Perception~-%db( %1, Survival1) ~: Evasion~-%db( %1, Survival2) ~: Stalking~-%db( %1, Survival3) ~: Skinning~-~-%db( %1, Survival4) ~: Foraging~-%db( %1, Survival5) ~: Hiding~-%db( %1, Survival6) ~: Disarm~-%db( %1, Survival7) ~: Picking~-%db( %1, Survival8);#ECHO Spell this level: %db( %1, Spell)}
#ALIAS expneed {#VAR RecordNum %1;#VAR record %dbget( %1);#T+ expmagic;exp magic}


---------------------------------------------
Reply with quote
RobMacAF
Apprentice


Joined: 09 Jun 2002
Posts: 186
Location: USA

PostPosted: Wed Jul 16, 2003 8:43 am   
 
Found a small bug in the scholarship trigger. Seemed I was one space off on it. Here is the updated version
Sorry about that

---------------------------------------------------------
#CLASS {expmagic}
#TRIGGER {Total: (*) in * included} {#VAR Magic %1;#VAR NeededMagic %db( @record, Magic);#Math MagicLeft @NeededMagic-@Magic;exp all}
#TRIGGER {Showing all your skills above rank} {#T+ exp;#T- expmagic}
#CLASS 0

#CLASS {exp}
#TRIGGER {EXP HELP} {#ECHO ~*~*~*~* SKILLS LEFT FOR CIRCLE @recordnum ~*~*~*~*;#ECHO Magic~ @MagicLeft ~: PP~ @PPLeft ~: Astrology~ @AstLeft ~: Scholarship~ @ScholarshipLeft ~: Teaching~ @TeachingLeft ~: Mech~ @MechLeft ~: Perception~ @PercLeft;#ECHO Evasion~ @EvasionLeft ~: Stalking~ @StalkLeft ~: Skinning~ @SkinningLeft ~: Foraging~ @ForagingLeft ~: Hiding~ @HidingLeft ~: Lockpicking~ @PickingLeft ~: Disarming~ @DisarmingLeft;#T- exp}
#TRIGGER {Astrology: (%d)} {#VAR AST %1;#VAR NEEDEDAST %db( @record, Astrology);#MATH ASTLEFT @NeededAST-@AST;#IF (@ASTLEFT<0) {#VAR ASTLEFT 0}}
#TRIGGER {Scholarship: (%d) *} {#VAR Scholarship %1;#VAR NEEDEDScholarship %db( @record, Scholarship);#MATH ScholarshipLEFT @NeededScholarship-@Scholarship;#IF (@ScholarshipLEFT<0) {#VAR ScholarshipLEFT 0}}
#TRIGGER {Teaching: (%d)} {#VAR Teaching %1;#VAR NEEDEDTeaching %db( @record, Teaching);#MATH TeachingLEFT @NeededTeaching-@Teaching;#IF (@TeachingLEFT<0) {#VAR TeachingLEFT 0}}
#TRIGGER {Mechanical Lore: (%d)} {#VAR Mech %1;#VAR NEEDEDMech %db( @record, Lore1);#MATH MechLEFT @NeededMech-@Mech;#IF (@MechLEFT<0) {#VAR MechLEFT 0}}
#TRIGGER {Perception: (%d)} {#VAR Perc %1;#VAR NEEDEDPerc %db( @record, Survival1);#MATH PercLEFT @NeededPerc-@Perc;#IF (@PercLEFT<0) {#VAR PercLEFT 0}}
#TRIGGER {Evasion: (%d)} {#VAR Evasion %1;#VAR NEEDEDEvasion %db( @record, Survival2);#MATH EvasionLEFT @NEEDEDEvasion-@Evasion;#IF (@EvasionLEFT<0) {#VAR EvasionLEFT 0}}
#TRIGGER {Stalking: (%d)} {#VAR Stalk %1;#VAR NEEDEDStalk %db( @record, Survival3);#MATH StalkLEFT @NeededStalk-@Stalk;#IF (@StalkLEFT<0) {#VAR StalkLEFT 0}}
#TRIGGER {Skinning: (%d)} {#VAR Skinning %1;#VAR NEEDEDSkinning %db( @record, Survival4);#MATH SkinningLEFT @NeededSkinning-@Skinning;#IF (@SkinningLEFT<0) {#VAR SkinningLEFT 0}}
#TRIGGER {Foraging: (%d)} {#VAR Foraging %1;#VAR NEEDEDForaging %db( @record, Survival5);#MATH ForagingLEFT @NeededForaging-@Foraging;#IF (@ForagingLEFT<0) {#VAR ForagingLEFT 0}}
#TRIGGER {Hiding: (%d)} {#VAR Hiding %1;#VAR NEEDEDHiding %db( @record, Survival6);#MATH HidingLEFT @NeededHiding-@Hiding;#IF (@HidingLEFT<0) {#VAR HidingLEFT 0}}
#TRIGGER {Disarm Traps: (%d)} {#VAR Disarming %1;#VAR NEEDEDDisarming %db( @record, Survival7);#MATH DisarmingLEFT @NEEDEDDisarming-@Disarming;#IF (@DisarmingLEFT<0) {#VAR DisarmingLEFT 0}}
#TRIGGER {Lockpicking: (%d)} {#VAR Picking %1;#VAR NEEDEDPicking %db( @record, Survival8);#MATH PickingLEFT @NEEDEDPicking-@Picking;#IF (@PickingLEFT<0) {#VAR PickingLEFT 0}}
#TRIGGER {Power Perceive: (%d)} {#VAR PPP %1;#VAR NEEDEDPP %db( @record, PP);#MATH PPLEFT @NeededPP-@PPP;#IF (@PPLEFT<0) {#VAR PPLEFT 0}}
#CLASS 0

#CLASS {exp|PP}
#TRIGGER {Power Perceive: (%d)} {#VAR PPP %1;#VAR NEEDEDPP %db( @record, PP);#MATH PPLEFT @NeededPP-@PPP;#IF (@PPLEFT<0) {#VAR PPLEFT 0};#ECHO PP NEEDED~: @PPLEFT;#T- {exp|PP};#T- exp}
#CLASS 0

#CLASS {exp|Astrology}
#TRIGGER {Astrology: (%d)} {#VAR AST %1;#VAR NEEDEDAST %db( @record, Astrology);#MATH ASTLEFT @NeededAST-@AST;#IF (@ASTLEFT<0) {#VAR ASTLEFT 0};#ECHO ASTROLOGY NEEDED: @ASTLEFT;#T- {exp|Astrology};#T- exp}
#CLASS 0

#CLASS {exp|Teaching}
#TRIGGER {Teaching: (%d)} {#VAR Teaching %1;#VAR NEEDEDTeaching %db( @record, Teaching);#MATH TeachingLEFT @NeededTeaching-@Teaching;#IF (@TeachingLEFT<0) {#VAR TeachingLEFT 0};#ECHO TEACHING NEEDED~: @TeachingLEFT;#T- {exp|Teaching};#T- exp}
#CLASS 0

#CLASS {exp|Mech}
#TRIGGER {Mechanical Lore: (%d)} {#VAR Mech %1;#VAR NEEDEDMech %db( @record, Lore1);#MATH MechLEFT @NeededMech-@Mech;#IF (@MechLEFT<0) {#VAR MechLEFT 0};#ECHO MECH LORE NEEDED~: @MechLEFT;#T- {exp|Mech};#T- exp}
#CLASS 0

#CLASS {exp|Perception}
#TRIGGER {Perception: (%d)} {#VAR Perc %1;#VAR NEEDEDPerc %db( @record, Survival1);#MATH PercLEFT @NeededPerc-@Perc;#IF (@PercLEFT<0) {#VAR PercLEFT 0};#ECHO PERCEPTION NEEDED~: @PercLEFT;#T- {exp|Perception};#T- exp}
#CLASS 0

#CLASS {exp|Evasion}
#TRIGGER {Evasion: (%d)} {#VAR Evasion %1;#VAR NEEDEDEvasion %db( @record, Survival2);#MATH EvasionLEFT @NEEDEDEvasion-@Evasion;#IF (@EvasionLEFT<0) {#VAR EvasionLEFT 0};#ECHO EVASION NEEDED~: @EvasionLEFT;#T- {exp|Evasion};#T- exp}
#CLASS 0

#CLASS {exp|Stalking}
#TRIGGER {Stalking: (%d)} {#VAR Stalk %1;#VAR NEEDEDStalk %db( @record, Survival3);#MATH StalkLEFT @NeededStalk-@Stalk;#IF (@StalkLEFT<0) {#VAR StalkLEFT 0};#ECHO STALKING NEEDED~: @StalkLEFT;#T- {exp|Stalking};#T- exp}
#CLASS 0

#CLASS {exp|Skinning}
#TRIGGER {Skinning: (%d)} {#VAR Skinning %1;#VAR NEEDEDSkinning %db( @record, Survival4);#MATH SkinningLEFT @NeededSkinning-@Skinning;#IF (@SkinningLEFT<0) {#VAR SkinningLEFT 0};#ECHO SKINNING NEEDED~: @SKINNINGLEFT;#T- {exp|Skinning};#T- exp}
#CLASS 0

#CLASS {exp|Foraging}
#TRIGGER {Foraging: (%d)} {#VAR Foraging %1;#VAR NEEDEDForaging %db( @record, Survival5);#MATH ForagingLEFT @NeededForaging-@Foraging;#IF (@ForagingLEFT<0) {#VAR ForagingLEFT 0};#ECHO FORAGING NEEDED~: @ForagingLEFT;#T- {exp|Foraging};#T- exp}
#CLASS 0

#CLASS {exp|Hiding}
#TRIGGER {Hiding: (%d)} {#VAR Hiding %1;#VAR NEEDEDHiding %db( @record, Survival6);#MATH HidingLEFT @NeededHiding-@Hiding;#IF (@HidingLEFT<0) {#VAR HidingLEFT 0};#ECHO HIDING NEEDED~: @HidingLEFT;#T- {exp|Hiding};#T- exp}
#CLASS 0

#CLASS {exp|Disarm}
#TRIGGER {Disarm Traps: (%d)} {#VAR Disarming %1;#VAR NEEDEDDisarming %db( @record, Survival7);#MATH DisarmingLEFT @NEEDEDDisarming-@Disarming;#IF (@DisarmingLEFT<0) {#VAR DisarmingLEFT 0};#ECHO DISARM NEEDED~: @DisarmingLEFT;#T- {exp|Disarm};#T- exp}
#CLASS 0

#CLASS {exp|Lockpicking}
#TRIGGER {Lockpicking: (%d)} {#VAR Picking %1;#VAR NEEDEDPicking %db( @record, Survival8);#MATH PickingLEFT @NEEDEDPicking-@Picking;#IF (@PickingLEFT<0) {#VAR PickingLEFT 0};#ECHO LOCKPICKING NEEDED~: @PickingLEFT;#T- {exp|Lockpicking};#T- exp}
#CLASS 0

#CLASS {exp|expmagic1}
#TRIGGER {Showing magic skills} {#VAR Magic %1;#VAR NeededMagic %db( @record, Magic);#Math MagicLeft @NeededMagic-@Magic;#IF (@MagicLEFT<0) {#VAR MagicLEFT 0};#ECHO MAGIC NEEDED: @MagicLEFT;#T- {exp|expmagic1};#T- exp}
#CLASS 0

#CLASS {exp|Scholarship}
#TRIGGER {Scholarship: (%d)} {#VAR Scholarship1 %1;#VAR NEEDEDScholarship %db( @record, Scholarship);#MATH ScholarshipLEFT @NEEDEDScholarship-@Scholarship1;#IF (@ScholarshipLEFT<0) {#VAR ScholarshipLEFT 0} {};#ECHO SCHOLARSHIP NEEDED~: @ScholarshipLEFT;#T- {exp|Scholarship};#T- exp}
#CLASS 0
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net