rpherbig / dr-scripts

A series of Lich 5 (https://github.com/elanthia-online/lich-5) scripts for use with DragonRealms (http://www.play.net/dr/). Donations are welcome (http://www.paypal.me/rcuhljr)!
GNU General Public License v2.0
52 stars 177 forks source link

astrology.lic selects Ismenia when it is not visible #806

Closed jandersson closed 8 years ago

jandersson commented 8 years ago

I enabled debug on astrology and the key ismenia keeps being selected (its not seen in my observation). I cant figure out why, any ideas? It seems to put me into a loop


[astrology]>invoke my nestled armband
>;e UserVars.astrology_debug=true
--- Lich: exec1 active.
--- Lich: exec1 has exited.
>
The nestled armband pulses with Lunar energy.  You reach for its center and forge a magical link to it, readying all of its mana for your use.
Roundtime: 1 sec.
R>;varslist
--- Lich: could not find script 'varslist' in directory /home/jonas/lich/scripts
>
The world seems a little less foreboding than it did a moment ago.
You recognize these fading strands of Fate as those that influence your performance skill.
>;vars list

--- Crannach's variables:

   autostart_scripts:  []
               moons:  {"katamba"=>{"rise"=>2016-09-15 23:58:00 +0200, "timer"=>-80, "pretty"=>"katamba will rise in -80 minutes", "short"=>"[k]-(-80)"}, "yavash"=>{"set"=>2016-09-15 23:50:00 +0200, "timer"=>-88, "pretty"=>"yavash is up for -88 minutes", "short"=>"[y]+(-88)"}, "xibar"=>{"rise"=>2016-09-15 22:55:00 +0200, "timer"=>-143, "pretty"=>"xibar will rise in -143 minutes", "short"=>"[x]-(-143)"}, "visible"=>["yavash"]}
                 sun:  {"day"=>false, "night"=>true, "timer"=>-106}
             friends:  []
           athletics:  274
            scouting:  0
     crossing_timers:  {"Astrology"=>2016-09-16 01:08:34 +0200, "First Aid"=>2016-09-15 12:02:30 +0200, "Locksmithing"=>2016-09-16 00:42:34 +0200, "Athletics"=>2016-09-15 12:52:09 +0200, "Utility"=>2016-09-16 01:07:51 +0200, "Outdoorsmanship"=>2016-09-16 01:06:40 +0200, "Mechanical Lore"=>2016-09-15 13:01:46 +0200, "Attunement"=>2016-09-16 01:08:18 +0200, "Augmentation"=>2016-09-16 01:06:57 +0200, "Thievery"=>2016-09-15 12:56:48 +0200, "Warding"=>2016-09-16 01:07:24 +0200}
                song:  battle
            discerns:  {"GAF"=>{"time_stamp"=>2016-09-14 04:00:41 +0200, "mana"=>30, "cambrinth"=>[16, 16, 16]}, "pg"=>{"mana"=>5, "cambrinth"=>[2, 2, 1], "min"=>5, "more"=>6}, "cv"=>{"mana"=>2, "cambrinth"=>[2, 2, 2], "min"=>1, "more"=>8}, "maf"=>{"mana"=>5, "cambrinth"=>[1], "min"=>5, "more"=>2}}
       listen_skills:  ["Large Edged", "Twohanded Edged", "Small Blunt", "Light Thrown", "Brawling", "Offhand Weapon", "Melee Mastery", "Missile Mastery", "Life Magic", "Attunement", "Arcana", "Augmentation", "Utility", "Warding", "Athletics", "Perception", "First Aid", "Outdoorsmanship", "Scholarship", "Mechanical Lore", "Appraisal", "Performance", "Tactics", "Stealth", "Bow", "Evasion", "Parry Ability", "Small Edged", "Defending", "Light Armor", "Chain Armor", "Shield Usage", "Targeted Magic", "Debilitation", "Brigandine", "Plate Armor", "Large Blunt", "Twohanded Blunt", "Slings", "Crossbow", "Staves", "Polearms", "Heavy Thrown", "Locksmithing", "Skinning", "Forging", "Engineering", "Outfitting", "Alchemy", "Astrology", "Lunar Magic"]
     stealing_timers:  {19078=>2016-09-14 06:40:49 +0200, 8265=>2016-09-15 12:58:41 +0200, 19077=>2016-09-11 12:57:56 +0200, 19073=>2016-09-15 12:57:39 +0200, 19076=>2016-09-05 01:12:08 +0200, 19240=>2016-09-15 13:00:56 +0200, 19241=>2016-09-15 12:57:27 +0200, 19377=>2016-09-15 12:59:33 +0200, 4697=>2016-09-15 12:58:29 +0200, 19237=>2016-09-15 13:00:13 +0200, 19125=>2016-09-15 12:57:54 +0200, 19388=>2016-09-15 12:58:14 +0200, 19379=>2016-09-15 13:00:01 +0200, 19385=>2016-09-15 13:00:27 +0200, 7904=>2016-09-15 12:58:55 +0200}
     astrology_debug:  true

>;k astrology
--- Lich: astrology has exited.
>;astrology
--- Lich: astrology active.
[astrology: Buffing: {"abbrev"=>"pg", "mana"=>33, "cambrinth"=>[44]}]
[astrology]>prepare pg 33
You are already preparing the Aura Sight spell!
>
[astrology]>charge my nestled armband 44
You harness a large amount of energy and attempt to channel it into your nestled armband.
You are able to channel all the energy into the armband.
The nestled armband resists, only absorbing part of the energy while the rest dissipates harmlessly.
Roundtime: 2 sec.
R>
You feel fully prepared to cast your spell.
>
[astrology]>invoke my nestled armband
Your link to the nestled armband is intact.
Roundtime: 1 sec.
R>
[astrology]>cast
You gesture.
Your nestled armband emits a loud *snap* as it discharges all its power to aid your spell.
Your spell barely backfires.
>
[astrology: Buffing: {"abbrev"=>"aus", "mana"=>21, "cambrinth"=>[44]}]
[astrology]>prepare aus 21
That will disrupt less than a quarter of your current attunement.
You raise your head skyward, chanting the equation of the Aura Sight spell.
>
[astrology]>charge my nestled armband 44
You harness a large amount of energy and attempt to channel it into your nestled armband.
You are able to channel all the energy into the armband.
The nestled armband absorbs all of the energy.
Roundtime: 6 sec.
R>
[astrology]>invoke my nestled armband
The nestled armband pulses with Lunar energy.  You reach for its center and forge a magical link to it, readying all of its mana for your use.
Roundtime: 1 sec.
R>
The world seems a little less foreboding than it did a moment ago.
You recognize these fading strands of Fate as those that influence your debilitation skill.
>
You feel fully prepared to cast your spell.
>
The air around you shimmers with a weak yellow light that quickly disperses.
>
[astrology]>cast
You gesture.
Your nestled armband emits a loud *snap* as it discharges all its power to aid your spell.
The auras in your vision blur and dance before resolving again into clearly defined patterns.
>
[astrology]>observe sky
You gaze at the heavens, taking careful note of the current weather.  You sense the weather will progress as follows:
You predict that the sky will be overcast.
After that, the sky will be overcast.
After that, the sky will be overcast.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the sky will be overcast.
After that, light rains are on the way.
After that, light rains are on the way.
After that, a moderate rainstorm is on the way.
Roundtime: 5 sec.
R>
...wait 5 seconds.
R>
You feel fully rested.
R>
[astrology]>observe sky
>
You scan the sky from horizon to horizon.
It is completely overcast.
Some of the clouds fade away under your enhanced vision.

The following heavenly bodies are visible:
Fully half of the early afternoon sun is blocked by the clouds overhead.
Fully half of the planet Verena is blocked by the clouds overhead.
Fully half of the planet Estrilda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Durgaulda.
Fully half of the planet Durgaulda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Yoakena.
Fully half of the planet Yoakena is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Penhetia.
Fully half of the planet Penhetia is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Dawgolesh.
Fully half of the planet Dawgolesh is blocked by the clouds overhead.
Fully half of Katamba is blocked by the clouds overhead.
Fully half of Xibar is blocked by the clouds overhead.
Yavash is below the horizon.
Roundtime: 5 sec.
R>
[astrology: {"name"=>"Penhetia", "telescope"=>false, "circle"=>55, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}]
 * Tirax was just struck down! 
R>
[astrology]>get telescope
You get a simple oak telescope from inside your hand-stitched rucksack.
>
[astrology: [{"name"=>"Ismenia", "telescope"=>true, "circle"=>70, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>nil, "Survival"=>nil, "Magic"=>3, "Lore"=>1}}, {"name"=>"Amlothi", "telescope"=>true, "circle"=>80, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>nil, "Survival"=>nil, "Magic"=>1, "Lore"=>3}}, {"name"=>"Merewalda", "telescope"=>true, "circle"=>65, "constellation"=>false, "pools"=>{"Offense"=>1, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}, {"name"=>"Morleena", "telescope"=>true, "circle"=>75, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>1, "Survival"=>3, "Magic"=>nil, "Lore"=>nil}}, {"name"=>"Penhetia", "telescope"=>false, "circle"=>55, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}]]
[astrology]>center telescope on Ismenia
You put your eye to the oak telescope and attempt to center on the planet Ismenia.
Your search for the planet Ismenia turns up fruitless.
>
[astrology]>predict weather
You gaze at the heavens, taking careful note of the current weather.  You sense the weather will progress as follows:
You predict that the sky will be overcast.
After that, the sky will be overcast.
After that, the sky will be overcast.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the sky will be overcast.
After that, light rains are on the way.
After that, light rains are on the way.
After that, light rains are on the way.
Roundtime: 5 sec.
R>
[astrology]>observe sky
...wait 1 seconds.
R>
[astrology]>observe sky
>
The world seems a little less foreboding than it did a moment ago.
You recognize these fading strands of Fate as those that influence your sorcery skill.
>
You scan the sky from horizon to horizon.
It is completely overcast.
Some of the clouds fade away under your enhanced vision.

The following heavenly bodies are visible:
Fully half of the early afternoon sun is blocked by the clouds overhead.
Fully half of the planet Verena is blocked by the clouds overhead.
Fully half of the planet Estrilda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Durgaulda.
Fully half of the planet Durgaulda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Yoakena.
Fully half of the planet Yoakena is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Penhetia.
Fully half of the planet Penhetia is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Dawgolesh.
Fully half of the planet Dawgolesh is blocked by the clouds overhead.
Fully half of Katamba is blocked by the clouds overhead.
Fully half of Xibar is blocked by the clouds overhead.
Yavash is below the horizon.
Roundtime: 5 sec.
R>
[astrology: {"name"=>"Penhetia", "telescope"=>false, "circle"=>55, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}]
R>
[astrology]>get telescope
You are already holding that.
>
[astrology: [{"name"=>"Ismenia", "telescope"=>true, "circle"=>70, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>nil, "Survival"=>nil, "Magic"=>3, "Lore"=>1}}, {"name"=>"Amlothi", "telescope"=>true, "circle"=>80, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>nil, "Survival"=>nil, "Magic"=>1, "Lore"=>3}}, {"name"=>"Merewalda", "telescope"=>true, "circle"=>65, "constellation"=>false, "pools"=>{"Offense"=>1, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}, {"name"=>"Morleena", "telescope"=>true, "circle"=>75, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>1, "Survival"=>3, "Magic"=>nil, "Lore"=>nil}}, {"name"=>"Penhetia", "telescope"=>false, "circle"=>55, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}]]
[astrology]>center telescope on Ismenia
>
You put your eye to the oak telescope and attempt to center on the planet Ismenia.
Your search for the planet Ismenia turns up fruitless.
>
[astrology]>predict weather
You gaze at the heavens, taking careful note of the current weather.  You sense the weather will progress as follows:
You predict that the sky will be overcast.
After that, the sky will be overcast.
After that, the sky will be overcast.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the sky will be overcast.
After that, light rains are on the way.
After that, light rains are on the way.
After that, light rains are on the way.
Roundtime: 5 sec.
R>
[astrology]>observe sky
You scan the sky from horizon to horizon.
It is completely overcast.
Some of the clouds fade away under your enhanced vision.

The following heavenly bodies are visible:
Fully half of the early afternoon sun is blocked by the clouds overhead.
Fully half of the planet Verena is blocked by the clouds overhead.
Fully half of the planet Estrilda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Durgaulda.
Fully half of the planet Durgaulda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Yoakena.
Fully half of the planet Yoakena is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Penhetia.
Fully half of the planet Penhetia is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Dawgolesh.
Fully half of the planet Dawgolesh is blocked by the clouds overhead.
Fully half of Katamba is blocked by the clouds overhead.
Fully half of Xibar is blocked by the clouds overhead.
Yavash is below the horizon.
Roundtime: 5 sec.
R>
[astrology: {"name"=>"Penhetia", "telescope"=>false, "circle"=>55, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}]
R>
[astrology]>get telescope
You are already holding that.
>
[astrology: [{"name"=>"Ismenia", "telescope"=>true, "circle"=>70, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>nil, "Survival"=>nil, "Magic"=>3, "Lore"=>1}}, {"name"=>"Amlothi", "telescope"=>true, "circle"=>80, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>nil, "Survival"=>nil, "Magic"=>1, "Lore"=>3}}, {"name"=>"Merewalda", "telescope"=>true, "circle"=>65, "constellation"=>false, "pools"=>{"Offense"=>1, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}, {"name"=>"Morleena", "telescope"=>true, "circle"=>75, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>1, "Survival"=>3, "Magic"=>nil, "Lore"=>nil}}, {"name"=>"Penhetia", "telescope"=>false, "circle"=>55, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}]]
[astrology]>center telescope on Ismenia
You put your eye to the oak telescope and attempt to center on the planet Ismenia.
Your search for the planet Ismenia turns up fruitless.
>
[astrology]>predict weather
You gaze at the heavens, taking careful note of the current weather.  You sense the weather will progress as follows:
You predict that the sky will be overcast.
After that, the sky will be overcast.
After that, the sky will be overcast.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the sky will be overcast.
After that, light rains are on the way.
After that, light rains are on the way.
After that, a moderate rainstorm is on the way.
Roundtime: 5 sec.
R>
jandersson commented 8 years ago

I let this run for a bit (15 minutes-ish), eventually the loop got broken


[astrology]>observe sky
You scan the sky from horizon to horizon.
It is completely overcast.
Some of the clouds fade away under your enhanced vision.

The following heavenly bodies are visible:
Fully half of the mid-afternoon sun is blocked by the clouds overhead.
Fully half of the planet Verena is blocked by the clouds overhead.
Fully half of the planet Estrilda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Durgaulda.
Fully half of the planet Durgaulda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Penhetia.
Fully half of the planet Penhetia is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Dawgolesh.
Fully half of the planet Dawgolesh is blocked by the clouds overhead.
Fully half of Katamba is blocked by the clouds overhead.
Fully half of Xibar is blocked by the clouds overhead.
Yavash is below the horizon.
Roundtime: 5 sec.
R>
[astrology: {"name"=>"Penhetia", "telescope"=>false, "circle"=>55, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}]
R>
[astrology]>get telescope
You are already holding that.
>
[astrology: [{"name"=>"Ismenia", "telescope"=>true, "circle"=>70, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>nil, "Survival"=>nil, "Magic"=>3, "Lore"=>1}}, {"name"=>"Amlothi", "telescope"=>true, "circle"=>80, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>nil, "Survival"=>nil, "Magic"=>1, "Lore"=>3}}, {"name"=>"Merewalda", "telescope"=>true, "circle"=>65, "constellation"=>false, "pools"=>{"Offense"=>1, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}, {"name"=>"Morleena", "telescope"=>true, "circle"=>75, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>1, "Survival"=>3, "Magic"=>nil, "Lore"=>nil}}, {"name"=>"Penhetia", "telescope"=>false, "circle"=>55, "constellation"=>false, "pools"=>{"Offense"=>nil, "Defense"=>3, "Survival"=>nil, "Magic"=>nil, "Lore"=>nil}}]]
[astrology]>center telescope on Ismenia
You put your eye to the oak telescope and attempt to center on the planet Ismenia.
Your search for the planet Ismenia turns up fruitless.
>
[astrology]>predict weather
You gaze at the heavens, taking careful note of the current weather.  You sense the weather will progress as follows:
You predict that the sky will be overcast.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the skies will be mostly cloudy.
After that, the sky will be overcast.
After that, light rains are on the way.
After that, light rains are on the way.
After that, light rains are on the way.
After that, a moderate rainstorm is on the way.
After that, the sky will be overcast.
Roundtime: 5 sec.
R>
[astrology]>observe sky
You scan the sky from horizon to horizon.
It is completely overcast.
Some of the clouds fade away under your enhanced vision.

The following heavenly bodies are visible:
Fully half of the late afternoon sun is blocked by the clouds overhead.
Fully half of the planet Verena is blocked by the clouds overhead.
Fully half of the planet Estrilda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Durgaulda.
Fully half of the planet Durgaulda is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Penhetia.
Fully half of the planet Penhetia is blocked by the clouds overhead.
Fully half of the planet Szeldia is blocked by the clouds overhead.
You focus your enhanced sight, through some of the cloud cover, upon the planet Dawgolesh.
Fully half of the planet Dawgolesh is blocked by the clouds overhead.
Fully half of Katamba is blocked by the clouds overhead.
Fully half of Xibar is blocked by the clouds overhead.
Yavash is below the horizon.
Roundtime: 5 sec.
R>
[astrology: {"name"=>"Szeldia", "telescope"=>false, "circle"=>60, "constellation"=>false, "pools"=>{"Offense"=>3, "Defense"=>nil, "Survival"=>1, "Magic"=>nil, "Lore"=>nil}}]
R>
[astrology]>get telescope
You are already holding that.
>
[astrology: [{"name"=>"Szeldia", "telescope"=>false, "circle"=>60, "constellation"=>false, "pools"=>{"Offense"=>3, "Defense"=>nil, "Survival"=>1, "Magic"=>nil, "Lore"=>nil}}]]
[astrology]>center telescope on Szeldia
You put your eye to the oak telescope and attempt to center on the planet Szeldia.
>
[astrology]>peer telescope
You focus your enhanced sight, through some of the cloud cover, upon the planet Szeldia.
Fully half of the planet Szeldia is blocked by the clouds overhead.
You struggle to make your observation through the clouds, but you manage to pinpoint the planet Szeldia with the help of your telescope.
Szeldia appears almost as a serpent's eye in the sky above, its bright white atmosphere glowing ferally about a malevolent black core.
You learned something useful from your observation.
Roundtime: 6 sec.
R>
[astrology]>stow telescope
You put your telescope in your hand-stitched rucksack.
>
[astrology]>align Offense
You focus internally and align yourself for a prediction on a random offense skill.
Roundtime: 2 sec.
R>
[astrology]>predict future
You look inside yourself in an attempt to see beyond the now.
After a few moments, the mists of time begin to part.
You see a bed heavily piled with luxurious furs.
You see a summer storm battering a small town.
A woman stands in darkness armed with two slender moonblades.
A shiver runs through your spine.
Roundtime: 10 sec.
R>
[astrology]>align Survival
You focus internally and align yourself for a prediction on a random survival skill.
Roundtime: 2 sec.
R>
[astrology]>predict future
You look inside yourself in an attempt to see beyond the now.
After a few moments, the mists of time begin to part.
You see a bed heavily piled with luxurious furs.
You see a bird warbling to its mate.
A man stands in darkness over a freshly slain deer.
A sudden feeling of warmth pervades your soul.
Roundtime: 10 sec.
R>
[astrology]>predict anal
The world around you fades from sight as you turn your gaze inward.  A few images materialize before your mind's eye and you pick out the following:

A translucent sapphire (good polarity) tree that disappears and is replaced by a bear hide.  It pops out of existence the moment you notice it.  A Human man stands immediately before you.  Something about him seems strangely familiar.

A luminous fiery (bad polarity) moonblade that transforms into a pair of parallel daggers.  It seems to vanish almost immediately.  A Human man stands immediately before you.  Something about him seems strangely familiar.

Roundtime: 5 sec.
R>
--- Lich: astrology has exited.
rcuhljr commented 8 years ago

hopefully fixed.