|
Rast Newbie
Joined: 11 Jun 2005 Posts: 2
|
Posted: Sat Jun 11, 2005 2:59 am
HElP PLEASE i dont know whats wrong with my script. |
OK i have been working on this script for 3 weeks it has under gone over 10 changes and nothing works. This script is for the mud Aardwolf.
What the purpose of it is to check who enters a war and send back to you over group talk who joined there level what tier they are (Tier 1-9) what race they are and what that race is vuln to. PLEASE HELP!!!
Now i know it is a mess i have fiddled with it so much its a mess.
#class Racevuln
#TRIGGER {WARFARE: (%w) [(]Level (%d) (%w) (%w)[)] has gone to war!$} {#var wplayer {%1};#var wlvl {%2};#var wrace {%3};#var wvuln {%3};#var wclass {%4};domessage;#wait 10000;cleanvar}
#alias {domessage} {gt @Wplayer a @wtier level @WlVl @Wrace @wclass has joined the war, they are weak against @wvuln}
#alias {cleanvar} {#var wclass %delitem( "%4", @wclass);#var wplayer %delitem( "%1", @wplayer);#var wlvl %delitem( "%2", @wlvl);#var wrace %delitem( "%3", @wrace);#var wvuln %delitem( "%1", @wvuln);#var wtier %delitem( "*", @wtier)
#var wplayer {}
#var wrace {}
#var wlvl {}
#var wvuln {}
#var wclass {}
#var wtier {}
#var Tnnon {Mage|Warrior|cleric|Thief|Ranger|Paladin|Psionicist}
#var Tn1 {Gladiator|Priest|Nightblade|Necromancer|Mystic|Knight|Hunter}
#var Tn2 {Barbarian|Oracle|Rogue|Lich|Telepath|Cavalier|Beastmaster}
#var Tn3 {Battlemaster|Prophet|Assassin|Wizard|Channeler|Slayer|Tracker}
#var Tn4 {Warlord|Saint|Ninja|Warlock|Dreamwalker|Avatar|Wayfinder}
#var Tn5 {Liege|Patriarch|Cutthroat|Magician|Mindflayer|Zealot|Woodsman}
#var Tn6 {Veteran|Martyr|Crimelord|Conjurer|Mentalist|Terminator|Explorer}
#var Tn7 {Berserker|Bishop|Stalker|Illusionist|Visionary|Benefactor|Strider}
#var Tn8 {Savage|Exorcist|Prowler|Sorcerer|Mindshifter|Holy Blade|Scout}
#var Tn9 {General|Crusader|Godfather|Archmage|Enlightened|Avenger|Protector}
#var wHuman {None}
#var wGiant {Mental|Sonic}
#var wHalfling {Water|Energy}
#var wGriffon {Bash|Water|Sonic}
#var wTroll {Acid|Fire|Light}
#var wSprite {Acid|Poison|Slash|Bash}
#var wQuickling {Magic|Acid|Disease}
#var wDrow {Light|Holy|Water}
#var wCentaur {Bash|Fire}
#var wVampire {Light|Holy|Fire}
#var wWolfen {Fire|Light|Sonic}
#var wRatling {Mental|Negative|Bash}
#var wDiva {Cold|Fire}
#var wShadow {Light|Air}
#var wTriton {Lightning|Sonic|Earth}
#var wLizard {Cold|Air|Pierce}
#var wEldar {Slash|Disease|Poison}
#var wDwarf {Water|Air}
#var wElf {Negative|cold|Bash}
#if (@wrace =Human) {#var wvuln @whuman}
#if (@wrace =Giant) {#var wvuln @wgiant}
#if (@wrace =Halfling) {#var wvuln @whalfling}
#if (@wrace =Half-Griffon) {#var wvuln @wgriffon}
#if (@wrace =Troll) {#var wvuln @wtroll}
#if (@wrace =Sprite) {#var wvuln @wsprite}
#if (@wrace =Quickling) {#var wvuln @wquickling}
#if (@wrace =Dark Elf) {#var wvuln @wdrow}
#if (@wrace =Centaur) {#var wvuln @wcentaur}
#if (@wrace =Vampire) {#var wvuln @wvampire}
#if (@wrace =Wolfen) {#var wvuln @wwolfen}
#if (@wrace =Ratling) {#var wvuln @wratling}
#if (@wrace =Diva) {#var wvuln @wdiva}
#if (@wrace =Shadow) {#var wvuln @wshadow}
#if (@wrace =Triton) {#var wvuln @wtriton}
#if (@wrace =Lizardmen) {#var wvuln @wlizard}
#if (@wrace =Eldar) {#var wvuln @weldar}
#if (@wrace =Dwarf) {#var wvuln @wdwarf}
#if (@wrace =Elf) {#var wvuln @welf}
#iF (%ismember(@wclass,@Tnnon)) (#var wtier Nontiered}
#if (%ismember(@wclass,@Tn1)) {#var wtier T1}
#if (%ismember(@wclass,@Tn2)) {#var wtier T2}
#if (%ismember(@wclass,@Tn3)) {#var wtier T3}
#if (%ismember(@wclass,@Tn4)) {#var wtier T4}
#if (%ismember(@wclass,@Tn5)) {#var wtier T5}
#if (%ismember(@wclass,@Tn6)) {#var wtier T6}
#if (%ismember(@wclass,@Tn7)) {#var wtier T7}
#if (%ismember(@wclass,@Tn8)) {#var wtier T8}
#if (%ismember(@wclass,@Tn9)) {#var wtier T9}
#class 0 |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Sat Jun 11, 2005 5:22 am |
Egads =) what a spam... hehe
#CLASS {Racevuln}
#VAR wplayer {}
#VAR wlvl {}
#VAR wrace {}
#VAR wclass {}
#VAR wvuln {}
#VAR wtier {}
#VAR classArray {Mage|Warrior|Cleric|Thief|Ranger|Paladin|Psionicist|Gladiator|Priest|Nightblade|Necromancer|Mystic|Knight|Hunter|Barbarian|Oracle|Rogue|Lich|Telepath|Cavalier|Beastmaster|Battlemaster|Prophet|Assassin|Wizard|Channeler|Slayer|Tracker|Warlord|Saint|Ninja|Warlock|Dreamwalker|Avatar|Wayfinder|Liege|Patriarch|Cutthroat|Magician|Mindflayer|Zealot|Woodsman|Veteran|Martyr|Crimelord|Conjurer|Mentalist|Terminator|Explorer|Berserker|Bishop|Stalker|Illusionist|Visionary|Benefactor|Strider|Savage|Exorcist|Prowler|Sorcerer|Mindshifter|Holy Blade|Scout|General|Crusader|Godfather|Archmage|Enlightened|Avenger|Protector}
#VAR tierArray {Nontiered|Nontiered|Nontiered|Nontiered|Nontiered|Nontiered|Nontiered|T1|T1|T1|T1|T1|T1|T1|T2|T2|T2|T2|T2|T2|T2|T3|T3|T3|T3|T3|T3|T3|T4|T4|T4|T4|T4|T4|T4|T5|T5|T5|T5|T5|T5|T5|T6|T6|T6|T6|T6|T6|T6|T7|T7|T7|T7|T7|T7|T7|T8|T8|T8|T8|T8|T8|T8|T9|T9|T9|T9|T9|T9|T9}
#VAR raceArray {Human|Giant|Halfling|Griffon|Troll|Sprite|Quickling|Drow|Centaur|Vampire|Wolfen|Ratling|Diva|Shadow|Triton|Lizard|Eldar|Dwarf|Elf}
#VAR weakArray {nothing|Mental and Sonic|Water and Energy|Bash, Water, and Sonic|Acid, Fire, and Light|Acid, Poison, Slash, and Bash|Magic, Acid, and Disease|Light, Holy, and Water|Bash and Fire|Light, Holy, and Fire|Fire, Light, and Sonic|Mental, Negative, and Bash|Cold and Fire|Light and Air|Lightning, Sonic, and Earth|Cold, Air, and Pierce|Slash, Disease, and Poison|Water and Air|Negative, Cold, and Bash}
#TRIGGER {^WARFARE: &%wwplayer ~(Level &%dwlvl &%wwrace &%wwclass~) has gone to war!$} {#VARIABLE wtier {%item(@tierArray,%ismember(@wclass,@classArray))};#VARIABLE wvuln {%item(@weakArray,%ismember(@wrace,@raceArray))};#ECHO {@wplayer a @wtier level @wlvl @wrace @wclass has joined the war, they are weak against @wvuln}}
#CLASS 0 |
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Sat Jun 11, 2005 5:36 am |
Oops, I left in the testing part...
Change #ECHO to gt and it should work like you want it to |
|
|
|
Rast Newbie
Joined: 11 Jun 2005 Posts: 2
|
Posted: Sat Jun 11, 2005 6:26 am |
Only one problem it wont show the tiers such as T1 T9 Nontiered
|
|
|
|
Maelstrom Apprentice
Joined: 10 Feb 2005 Posts: 158
|
Posted: Sat Jun 11, 2005 1:57 pm |
Hrph, well the basic code is correct... I tested it.
Perhaps the classes are coming through the mud as lower case? |
|
|
|
|
|
|
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
|
|