Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Plugins ➜ How do I?

How do I?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Shuttlekilla   (4 posts)  Bio
Date Sat 20 Dec 2008 02:11 PM (UTC)
Message
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>

<muclient>
<plugin
name="Qmob"
author="Zantiln"
id="80c036c5f01fba4b286634cc"
language="Lua"
purpose="Automatically attacks quest mob"
date_written="2008-11-08"
requires="4.33"
version="1.0"
>
<description trim="y">
<![CDATA[

]]>
</description>

</plugin>

<triggers>

<trigger
name="att_qmob"
enabled="n"
match="\[TARGET\]$"
regexp="y"
omit_from_output="n"
script="attack_qmob"
sequence="100"
>
</trigger>

<trigger
name="stor_qmob"
enabled="y"
match="^You are on a quest to slay (?<qmobname>.*)\!$"
regexp="y"
omit_from_output="n"
script="store_qmob"
sequence="100"
>
</trigger>

<trigger
name="turnon_qmob"
enabled="y"
match="^You ask A QuestoR for a quest\.$"
regexp="y"
omit_from_output="n"
send_to="12"
sequence="100"
>
<send>
EnableTrigger( "att_qmob",true )
SendNoEcho ( "run 2w" )
SendNoEcho ( "quest info" )
</send>
</trigger>

<trigger
name="compl_qmob"
enabled="y"
match="^Return to the questmaster before your time runs out\.$"
regexp="y"
omit_from_output="n"
script="complete_qmob"
sequence="100"
>
</trigger>

<trigger
name="qmob_failsafe_who"
enabled="n"
match="^Who are you trying to kill\?$"
regexp="y"
omit_from_output="n"
script="failsafe"
sequence="100"
>
</trigger>

<trigger
name="qmob_failsafe_notthere"
enabled="n"
match="^They aren't here\.$"
regexp="y"
omit_from_output="n"
script="failsafe"
sequence="100"
>
</trigger>

<trigger
name="qmob_failsafe_bs"
enabled="n"
match="^Backstab whom\?$"
regexp="y"
omit_from_output="n"
script="failsafe"
sequence="100"
>
</trigger>

<trigger
name="display_bonuses"
enabled="y"
match="^\*\* (?<bonus>.*) \*\*"
regexp="y"
omit_from_output="n"
script="bonuses"
sequence="100"
>
</trigger>

<trigger
name="quest_on"
enabled="y"
match="^QUEST\: You may now quest again\.$"
regexp="y"
omit_from_output="n"
send_to="12"
sequence="100"
>
<send>
EnableTrigger( "camp_on",true )
can_quest = true
</send>
</trigger>

<trigger
name="camp_on"
enabled="n"
match="^Congratulations, that was one of your CAMPAIGN mobs\!$"
regexp="y"
omit_from_output="n"
send_to="12"
sequence="100"
>
<send>
EnableTrigger( "camp_on",false )
if can_quest = true then
SendNoEcho( "recall" )
SendNoEcho( "run 2e" )
SendNoEcho( "quest request" )
can_quest = false
end -- if can_quest
</send>
</trigger>

<trigger
name="qr1"
enabled="y"
match="^A QuestoR tells you 'of .+ which is in the general area'"
regexp="y"
omit_from_output="n"
send_to="12"
sequence="100"
>
<send>
EnableTrigger ( "qr2",true )
</send>
</trigger>

<trigger
name="qr2"
enabled="n"
match="^A QuestoR tells you 'of (?<qarea>.*)\.'"
regexp="y"
omit_from_output="n"
script="quest_req"
sequence="100"
>
</trigger>

</triggers>

<aliases>

<alias
name="change_att"
match="^qmob attack (?<qmobattack>.*)$"
regexp="y"
enabled="y"
omit_from_output="n"
script="change_attack"
sequence="100"
>
</alias>

<alias
name="show_att"
match="^qmob attack$"
regexp="y"
enabled="y"
omit_from_output="n"
send_to="12"
sequence="100"
>
<send>
Note ( "Attack skill is set to: '",attack,"'" )
Note ( "" )
</send>
</alias>

</aliases>
Top

Posted by Shuttlekilla   (4 posts)  Bio
Date Reply #1 on Sat 20 Dec 2008 02:13 PM (UTC)
Message
how do I safely get rid of this part
I deleted it then a error showed up
so I fixed that error and another error showed up
so I fixed that error and 4 more errors showed up
all I wanna do is get rid of this useless trigger



<send>
EnableTrigger( "camp_on",true )
can_quest = true
</send>
</trigger>

<trigger
name="camp_on"
enabled="n"
match="^Congratulations, that was one of your CAMPAIGN mobs\!$"
regexp="y"
omit_from_output="n"
send_to="12"
sequence="100"
>
<send>
EnableTrigger( "camp_on",false )
if can_quest = true then
SendNoEcho( "recall" )
SendNoEcho( "run 2e" )
SendNoEcho( "quest request" )
can_quest = false
end -- if can_quest
</send>
</trigger>
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Sat 20 Dec 2008 07:23 PM (UTC)
Message
To delete a trigger you need to delete the lines from:


<trigger


up to the next:


</trigger>



... inclusive (and of course everything inbetween).


From what you pasted you have deleted about halfway through a trigger.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,926 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.