|
Synzra Beginner
Joined: 15 Dec 2005 Posts: 25
|
Posted: Wed Dec 21, 2005 1:47 pm
Converting |
Can someone plz help me turn this mushclient script over to zmud? Much appreciated =)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE muclient>
<muclient>
<plugin name="AutoXP_Ifgan"
author="Daffy"
language="jscript"
id = "54611e74584c983ca61b9a0f"
purpose = "Ifgantius XP Script"
date_written = "2004-11-13 02:30:00"
date_modified = "2004-11-13 02:30"
version = "1.0"
save_state = "y"
>
<description trim="y">
<![CDATA[
Script to XP in Ifganistan
]]>
</description>
</plugin>
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="*They aren't here.*"
name="NOT_HERE"
regexp="n"
script="DoIfgan"
sequence="100"
group="IfganXP"
>
</trigger>
<trigger
enabled="y"
keep_evaluating="y"
match="* is DEAD!!"
name="IS_DEAD"
regexp="n"
sequence="100"
group="IfganXP"
>
<send>k mob</send>
</trigger>
<trigger
enabled="y"
match="* places * into your back. OUCH!*"
name="BSALERT"
sequence="100"
sound="D:\Program Files\Windows NT\Pinball\SOUND36.WAV"
group="BsAlert"
>
</trigger>
<trigger
enabled="y"
match="* tries to backstab you, but misses!*"
name="BSALERT_MISS"
sequence="100"
sound="D:\Program Files\Windows NT\Pinball\SOUND36.WAV"
group="BsAlert"
>
</trigger>
</triggers>
<aliases>
<alias
script="reset"
match="resetifgan"
enabled="y"
ignore_case="y"
>
</alias>
<alias
script="enable"
match="enable IfganXP"
enabled="y"
ignore_case="y"
>
</alias>
<alias
script="disable"
match="disable IfganXP"
enabled="y"
ignore_case="y"
>
</alias>
</aliases>
<script>
<![CDATA[
function OnPluginInstall() {
world.note('\n\n--------------------------------');
world.note('\nNOW RUNNING IFGANTIUS!\n');
world.note('Commands: ');
world.note('\tEnable IfganXP\t| Turns XPing triggers ON.');
world.note('\tDisable IfganXP\t| Turns XPing triggers OFF.');
world.note('\tEnable BsAlert\t| Turns Backstab Alert triggers ON.');
world.note('\tDisable BsAlert\t| Turns Backstab Alert triggers OFF.');
world.note('\tresetifgan\t| Resets script\'s location pointer to beginning of Ifgantius.');
world.note('\n\nXPing AFK IS ILLEGAL! You\'ve been warned!\n');
world.note('--------------------------------\n\n');
}
var step=0;
function DoIfgan(thename, theoutput, wildcardsVB) {
var steprooms = "swwwXssssssssewnnnnn nnneeeswweswssnnesne seswwswseeneewwswswe eswswwesweswesweswes weswesnesnesnesnesne snesnewnewnewnewnewn ewnewwnwneennnssswwn ennwnnwnenesssewnnes nnXsssssssswennnnnnn nwswnwswsessesswwsss swnswunewsswenwnsees nwdssssunewsswenwnse esnwdeeeeunewsswenwn seesnwdnnnnunewsswen wnseesnwdwnswswdnews swenwnseesnwussddnew sswenwnseesnwuueeddd newsswenwnseesnwuuun nddddnewsswenwnseesn wuuuuwsXeeewwwsssssn nneeenssssXeeewwwsss sseeeXsssssXeesesssw swwnnnnneesesssXssss seeeXsssssX*";
tostep = steprooms.charAt(step);
step++;
switch(tostep){
case "X":
world.send("exam gate");
world.DoAfter(5, "kill mob");
break;
case "*":
world.note("\nSCRIPT LOOPING!\n");
step = 0;
world.send("kill mob");
break;
case " ":
world.send("kill mob");
break;
default:
world.send(tostep);
world.send("kill mob");
break;
}
}
function enable(thename, theoutput, wildcardsVB) {
wildcards = VBArray(wildcardsVB).toArray();
world.EnableTriggerGroup("IfganXP", true);
world.note("\nIfganXP trigger group enabled.\n");
}
function disable(thename, theoutput, wildcardsVB) {
wildcards = VBArray(wildcardsVB).toArray();
world.EnableTriggerGroup("IfganXP", false);
world.note("\nIfganXP trigger group disabled.\n");
}
function reset(){
step = 0;
world.note("\nRestarting location pointer. Ifgantius RESET!\n");
}
]]>
</script>
</muclient>
thank you for your time for reading this |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Fri Dec 23, 2005 1:15 am |
TRIGGER EXAMPLE:
<trigger
enabled="y"
keep_evaluating="y"
match="*They aren't here.*"
name="NOT_HERE"
regexp="n"
script="DoIfgan"
sequence="100"
group="IfganXP"
>
</trigger>
Syntax: #TR [id] pattern command [classname] [options]
#TRIGGER NOT_HERE {*They aren't here.*} {DoIfgan} {IfganXP} {}
ALIAS EXAMPLE
<alias
script="enable"
match="enable IfganXP"
enabled="y"
ignore_case="y"
>
</alias>
Syntax: #AL [aliasname] [string] [classname]
#ALIAS enable {~enable IfganXp}
The rest I think you picked up in your other bot script post. Mainly posted for others with similar mushclient plugin script conversions. |
|
|
|
Synzra Beginner
Joined: 15 Dec 2005 Posts: 25
|
Posted: Fri Dec 23, 2005 2:22 pm |
awesome Ton!! yeah I know the bot script just the rest kinda buggers me! Once again thank you for the reply!! =)
|
|
|
|
|
|
|
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
|
|