-
-
November 7, 2009 at 10:36 pm #12340
won’t for for me, I got it to change color but it won’t let me click on anything to learn.
-
November 22, 2009 at 7:20 pm #12555
[code:2uixsynm]
<trigger
enabled="y"
group="ResearchScript"
match="^You can’t learn any more about that from books!"
regexp="y"
script="NextResearch"
send_to="10"
sequence="100"
>
</trigger>
[/code:2uixsynm]Saw this line missing and added it, needs to go in. Script gets stuck when it runs across this echo
-
April 3, 2010 at 11:24 pm #13825
Here’s a studying script that I made, very small parts of code liberated from the researching one.
[code:3gvu8165]
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE muclient (View Source for full doctype...)>
– <!– Saved on Sunday, April 04, 2010, 8:43 PM –>
– <!– MuClient version 4.40 –>
– <!– Plugin "LotJStudying" generated by Plugin Wizard –>
– <muclient>
– <plugin name="LotJStudying" author="@Ilyena" id="0b90ce53347f37f35ff36fcf" language="Lua" purpose="To make studying easier!" save_state="y" date_written="2010-04-04 20:42:01" requires="4.40" version="1.0">
– <description trim="y">
– <![CDATA[ ‘Studyhelp’ – To see the commands available in the game.The code will automatically go through the list, sliding if you don’t have enough levels to gain percentage in that science, but won’t delete it from the list.
]]>
</description>
</plugin>
– <!– Get our standard constants –>
<include name="constants.lua" />
– <!– Triggers –>
– <triggers>
<trigger enabled="y" group="Studying" match="^You don’t see anything like that nearby to study.$" name="MissingItem" regexp="y" script="SkipItem" sequence="100" />
<trigger enabled="y" group="Studying" match="^You must raise your science level before learning more about this knowledge.$" name="SlideToNextItem" regexp="y" script="SlideToNextItem" sequence="100" />
<trigger enabled="y" group="Studying" match="^What the hell is this thing anyways?$" name="BadItem" regexp="y" script="SkipItem" sequence="100" />
<trigger enabled="y" group="Studying" match="^You study it for some time, but fail to learn anything about it.$" name="StartStudying" regexp="y" script="StartStudying" sequence="100" />
<trigger enabled="y" group="Studying" match="^You may now bot again.$" name="BotStartStudying" regexp="y" script="StartBottingStudy" sequence="100" />
<trigger enabled="y" group="Studying" match="^After some time studying you feel you know more.$" name="ContinueStudying" regexp="y" script="StartStudying" sequence="100" />
<trigger enabled="y" group="Studying" keep_evaluating="y" match="^You are now an adept of (.*)! (.*)!$" name="FinishedItem" regexp="y" script="NextItem" sequence="100" />
</triggers>
– <!– Aliases –>
– <aliases>
<alias name="AddStudyItem" script="AddStudyItem" match="^studyadd (.*)$" enabled="y" group="Studying" regexp="y" sequence="100" />
<alias name="RemoveStudyItem" script="RemoveStudyItem" match="^studyrem (.*)$" enabled="y" group="Studying" regexp="y" sequence="100" />
<alias name="DisplayStudyCommands" script="DisplayStudyCommands" match="studyhelp" enabled="y" group="Studying" send_to="1" sequence="100" />
<alias name="ClearList" script="ClearList" match="studyclear" enabled="y" group="Studying" send_to="1" sequence="100" />
<alias name="SetStudyStatus" script="SetStudyStatus" match="^Setstudy (.*)$" enabled="y" group="Studying" regexp="y" ignore_case="y" sequence="100" />
<alias name="ShowStudyList" script="ShowStudyList" match="studylist" enabled="y" group="Studying" send_to="1" sequence="100" />
<alias name="StartStudying" script="StartStudying" match="study" enabled="y" group="Studying" send_to="1" ignore_case="y" sequence="100" />
<alias name="ToggleBottingStatus" script="SetBottingStatus" match="studybot" enabled="y" group="Studying" send_to="1" ignore_case="y" sequence="100" />
<alias name="SetBottingStatus" script="SetBottingStatus" match="^studybot (.*)$" enabled="y" group="Studying" regexp="y" send_to="1" ignore_case="y" sequence="100" />
<alias name="SkipItem" script="SkipItem" match="studyskip" enabled="y" group="Studying" send_to="1" sequence="100" />
<alias name="ToggleStudyStatus" script="SetStudyStatus" match="setstudy" enabled="y" group="Studying" send_to="1" ignore_case="y" sequence="100" />
</aliases>
– <!– Script –>
– <script>
– <![CDATA[ studyList = {}
scienceList = {"advanced electronics","chemistry","construction","data","destruction","edibles", "education", "electronics", "enhancement", "equipment", "forensics", "guidance", "machines", "medical", "minerals", "narcotics", "spacecraft", "transportation"}
studyStatus = true
bottingStudy = true
currentPosition = 1function ShowStudyList(name, line, wildcards)
t = #studyList
Note("Study List Contains: ")
for i = 1, t, 1 do
if (i ~= currentPosition) then
Note (studyList[i])
else
ColourNote("lime","", ">" .. studyList[i] .. "<")
end — if
end — for
end — functionfunction SetStudyStatus(name, line, wildcards)
if (wildcards[1] == "on") then
studyStatus = true
Note("Autostudy On")
else
if (wildcards[1] == "off") then
studyStatus = false
Note("Autostudy Off")
else
if(studyStatus == true) then
studyStatus = false
Note("Autostudy Off")
else
studyStatus = true
Note("Autostudy On")
end — if
end — if
end — if
end — functionfunction SetBottingStatus(name, line, wildcards)
if (wildcards[1] == "on") then
bottingStudy = true
Note("BottingStudy On")
else
if (wildcards[1] == "off") then
bottingStudy = false
Note("BottingStudy Off")
else
if(bottingStudy == true) then
bottingStudy = false
Note("BottingStudy Off")
else
bottingStudy = true
Note("BottingStudy On")
end — if
end — if
end — if
end — functionfunction DisplayStudyCommands(name, line, wildcards)
Note("Study – Begin Studying")
Note("Studyadd # – Add Object # to Study List")
Note("Studyrem # – Remove Object # from Study List")
Note("Studylist – List Study Objects")
Note("Studyskip – Skip item in Study List")
Note("Setstudy (on/off) – Turns autostudying on/off")
Note("Studybot (on/off) – Turns botting studying on/off")
end — functionfunction StartStudying(name, line, wildcards)
if (studyStatus == true) then
if studyList[1] ~= nil then — If something to study
Send("study " .. studyList[currentPosition])
Note("Studying " .. studyList[currentPosition])
else — If nothing to study
Note("Finished!")
end — if
end — if
end — functionfunction SlideToNextItem(name, line, wildcards)
t = #studyList
if (t > 1) then
if (studyList[currentPosition + 1] ~= nil) then
currentPosition = currentPosition + 1
else
currentPosition = 1
end — if
StartStudying()
end — if
end — functionfunction SkipItem(name, line, wildcards)
if (studyStatus == true) then
if (studyList[currentPosition + 1] ~= nil) then
Note("Now working on " .. studyList[2])
else
if(studyList[1] ~= nil) then
Note("Now working on " .. studyList[1])
else
Note("Study List Now Empty!")
end — if
end — if
table.remove(studyList, currentPosition)
if (studyList[currentPosition] == nil) then
currentPosition = 1
end — if
StartStudying()
end — if
end — functionfunction NextItem(name, line, wildcards)
if (studyStatus == true) then
for i, v in ipairs(scienceList) do
if (v == wildcards[1]) then
if (studyList[currentPosition + 1] ~= nil) then
Note("Now working on " .. studyList[currentPosition + 1])
else
if (studyList[1] ~= nil) then
Note("Now working on " .. studyList[1])
end — if
end — if
table.remove(studyList, currentPosition)if (studyList[currentPosition] == nil) then
currentPosition = 1
end — if
StartStudying()
end — if
end — for
end — if
end — functionfunction AddStudyItem(name, line, wildcards)
t = #studyList — Find the size of the study list
if (t == 0) then
table.insert(studyList, 1, wildcards[1]) — Make first entry
else
table.insert(studyList, wildcards[1]) — Make subsequent entries
end –if
Note(wildcards[1] .. " Added to Study List.")
end — functionfunction StartBottingStudy(name, line, wildcards)
if(bottingStudy == true) then
Send("afk")
Send("bot start")
StartStudying()
end — if
end — functionfunction RemoveStudyItem(name, line, wildcards)
t = #studyList
for i, v in ipairs(studyList) do
if (v == wildcards[1]) then
Note("Removed " .. wildcards[1] .. " From Study List.")
table.remove(studyList, i)
break
else
if (t == i) then
Note("Did Not Find Study Item In List")
end — if
end — if
end — for
end — functionfunction ClearList(name, line, wildcards)
studyList = {}
Note("Study List Cleared.")
currentPosition = 1
end — function]]>
</script>
– <!– Plugin help –>
– <aliases>
<alias script="OnHelp" match="LotJStudying:help" enabled="y" />
</aliases>
– <script>
– <![CDATA[ function OnHelp ()
world.Note (world.GetPluginInfo (world.GetPluginID (), 3))
end]]>
</script>
</muclient>
[/code:3gvu8165]Let me know if it messes up the line spacing as before.
To use it, follow the instructions of the last one. To see commands in-game, use ‘studyhelp’
-
April 4, 2010 at 9:38 pm #13826
First off Ilyena I LOVE your script. Very helpful. Secondly I found a bug in Zar’s today. Very few people will run across this bug (Engineers only) and it’s an easy fix. The problem I found was the echo is different with skills you can’t research to 80. Now most of the time it says [color=#FF0000:35c3jgmv]You can’t learn any more about that from books![/color:35c3jgmv] But with buildship it says [color=#FF0000:35c3jgmv]You can’t learn any more about that from books.[/color:35c3jgmv] I know most of you are saying Ana stfu who cares its just a period. Yes I know, yes you can reset the script when it gets caught yes blah blah blah. If you wish to patch your script here is the fix, if you don’t care you don’t care.
Find the line
[code:35c3jgmv]
match="^You can’t learn any more about that from books!$"
[/code:35c3jgmv]
replace it with
[code:35c3jgmv]
match="^You can’t learn any more about that from books(.*?)$"
[/code:35c3jgmv]
That simple. Also for those who don’t know lua at all. The spaces are important.
-
April 4, 2010 at 10:20 pm #13854
To fix the practice list wrapping weirdness of the researching code, do this…
replace
[code:23pt8zq8]
else –if it does, color the skill.
if (tonumber(percentage3) == 0) then
ColourTell("red","", skillName3..spacing3..percentage3.."%")
elseif (tonumber(percentage3) > 0) and (tonumber(percentage3) < 90) then
ColourTell("orange","", skillName3..spacing3..percentage3.."%")
else
ColourTell("lime","", skillName3..spacing3..percentage3.."%")
end –if
end –if
end
[/code:23pt8zq8]with
[code:23pt8zq8]
else –if it does, color the skill.
if (tonumber(percentage3) == 0) then
ColourTell("red","", skillName3..spacing3..percentage3.."%")
elseif (tonumber(percentage3) > 0) and (tonumber(percentage3) < 90) then
ColourTell("orange","", skillName3..spacing3..percentage3.."%")
else
ColourTell("lime","", skillName3..spacing3..percentage3.."%")
end –if
ColourTell("lime",""," ")
end –if
end
[/code:23pt8zq8]
-
April 7, 2010 at 3:52 am #13905
I made this thing to color my practice list. Unfortunately, due to limitations in mushclient, ColourNote always returns a newline and I didn’t care enough to make it fit on one line, which I could have. So anyways, it’s really not that bad. The color makes it easy to read, even with all 196 skills.
[code:1n4nryfw]
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!– Saved on Tuesday, April 06, 2010, 11:50 PM –>
<!– MuClient version 4.40 –><!– Plugin "Practice_Colorer" generated by Plugin Wizard –>
<muclient>
<plugin
name="Practice_Colorer"
author="Ccubed"
id="fce61edd7231a50357a17df3"
language="Python"
purpose="Colors the practice list of any mud."
save_state="y"
date_written="2010-04-06 23:48:17"
requires="3.00"
version="1.0"
>
<description trim="y">
<![CDATA[
Red is 0 -30, yellow is 31 – 79, green is 80+, blue is 99+.
]]>
</description></plugin>
<!– Get our standard constants –>
<include name="constants.pys"/>
<!– Triggers –>
<triggers>
<trigger
enabled="y"
lines_to_match="100"
match="* *%*"
omit_from_output="y"
script="PracTest"
send_to="12"
sequence="100"
>
<send>%0</send>
</trigger>
</triggers><!– Script –>
<script>
<![CDATA[
def PracTest (thename, theoutput, wildcards):
skills = theoutput.split("%")
if( skills[0].find("Speed") == -1 ):
final = []
for s in skills:
pre = s.split()
if( len(pre) > 0 ):
if( len(pre) > 3 ):
name = pre[0] + " " + pre[1] + " " + pre[2]
percent = pre[3]
elif( len(pre) == 3 ):
name = pre[0] + " " + pre[1]
percent = pre[2]
else:
name = pre[0]
percent = pre[1]
fout = name + " " + percent + "%"
if( int(percent) < 30 ):
world.ColourNote ("red", "", fout)
elif( int(percent) < 80 ):
world.ColourNote ("yellow", "", fout)
elif( int(percent) < 99 ):
world.ColourNote ("green", "", fout)
else:
world.ColourNote ("blue", "", fout)
else:
world.note(theoutput)
]]>
</script><!– Plugin help –>
<aliases>
<alias
script="OnHelp"
match="Practice_Colorer:help"
enabled="y"
>
</alias>
</aliases><script>
<![CDATA[
def OnHelp (sName, sLine, wildcards):
world.Note (world.GetPluginInfo (world.GetPluginID, 3))
]]>
</script></muclient>
[/code:1n4nryfw]
-
April 7, 2010 at 12:13 pm #13910
The code posted before in Lua already colourises the practice list… just not with blue for 100%…
-
April 8, 2010 at 1:09 am #13920"Ilyena":23a7wjy6 wrote:The code posted before in Lua already colourises the practice list… just not with blue for 100%…[/quote:23a7wjy6]
I thought it only colorized the practice list of science you put in.
Either way, this is in python so.
-
August 26, 2010 at 12:38 pm #15069
This is annoying th eever living **** outof me. I could get this to work on my old computer (with xP), but I can’t get it to work on this computer (vista). I even upgraded to Mushclient 4.43 or whatever. I keep running into an error. Every freaking time.
-
May 4, 2011 at 8:35 am #17223
The studying script gave me this error.
[WARNING] C:UsersTravisDesktopMUDstudyscript.xml
Line 2: Unsupported declaration inside <!DOCTYPE …> (Cannot load)
[WARNING] C:UsersTravisDesktopMUDstudyscript.xml
Line 2: Unsupported declaration inside <!DOCTYPE …> (Cannot load)
-
June 13, 2011 at 5:17 am #17445
Trying to find a TEACH script for my leader main. Anyone got one they could pass along?
-
June 19, 2011 at 5:20 am #17466
I am having problems with the study script. The first error I got says DOCTYPE error and then it says found – when < was expected and finally a parsing error.
This topic has 37 replies, 18 voices, and was last updated 12 years, 5 months ago by .
You must be logged in to reply to this topic.