|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed May 28, 2008 10:22 pm
[2.25] #GAGON bug? |
Here is the script I'm currently using:
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<module name="Identify" global="true" enabled="false">
<uid>{0CDDED9D-7F9B-4826-AB9A-4EB4D1E0C16A}</uid>
<class name="Identify">
<class name="AucTrigs" enabled="false">
<trigger priority="101560">
<pattern>+[-]+</pattern>
<value>#gagspace</value>
<trigger type="Within Lines" param="1">
<pattern>^~| Keywords*~|</pattern>
<value>#gagspace
#gagon
#VAR idcon 0
#VAR idstr 0
#VAR iddex 0
#VAR idint 0
#VAR idwis 0
#VAR idlck 0
#VAR iddam 0
#VAR idhit 0
#VAR idwear ""
#VAR bidstats ""</value>
</trigger>
</trigger>
<trigger priority="77190">
<pattern>Constitution%s:%s(%n)</pattern>
<value>#var idcon %1</value>
</trigger>
<trigger priority="77150">
<pattern>Damage roll%s:%s(%n)</pattern>
<value>#VAR iddam %1</value>
</trigger>
<trigger priority="77140">
<pattern>Dexterity%s:%s(%n)</pattern>
<value>#VAR iddex %1</value>
</trigger>
<trigger priority="77160">
<pattern>Hit roll%s:%s(%n)</pattern>
<value>#VAR idhit %1</value>
</trigger>
<trigger priority="77210">
<pattern>Intelligence%s:%s(%n)</pattern>
<value>#VAR idint %1</value>
</trigger>
<trigger priority="77170">
<pattern>Luck%s:%s(%n)</pattern>
<value>#VAR idlck %1</value>
</trigger>
<trigger priority="77180">
<pattern>Strength%s:%s(%n)</pattern>
<value>#VAR idstr %1</value>
</trigger>
<trigger priority="77200">
<pattern>Wisdom%s:%s(%n)</pattern>
<value>#VAR idwis %1</value>
</trigger>
<trigger priority="77220">
<pattern>^Current bid on this</pattern>
<value><![CDATA[#T- {Identify|AucTrigs}
#gagoff
$portneed=""
#IF (@idint>0) {#ADDITEM bidstats {"@C"@idint"@WInt "}}
#IF (@idwis>0) {#ADDITEM bidstats {"@C"@idwis"@WWis "}}
#IF (@idlck>0) {#ADDITEM bidstats {"@C"@idlck"@WLck "}}
#IF (@idcon>0) {#ADDITEM bidstats {"@C"@idcon"@WCon "}}
#IF (@iddex>0) {#ADDITEM bidstats {"@C"@iddex"@WDex "}}
#IF (@idstr>0) {#ADDITEM bidstats {"@C"@idstr"@WStr "}}
#IF (@idtyp="Portal") {#IF (%ismember( @iddesc, @portallist)) {$portneed="No"} {
$portneed="Yes"
#MESS 2 "Portal on auction not found in list!"
}}
echo "@WAuction Info: @RBid "@bidnum": @M"@iddesc" @G(Lvl "@idlev") @WType: @G"@idtyp%if( @idwear, " @WWear: @G"@idwear)" @W"%if( @bidstats, "Total Stats: @Y"%eval( @idint+@idlck+@idwis+@idstr+@idcon+@iddex) " @R[ "%replace( @bidstats, "|", )"@R]", "")%if( @idhit>0, " @Y"@idhit"@WHR")%if( @iddam>0, " @Y"@iddam"@WDR")~@W%if( $portneed, " Need: @G"$portneed"@w")
#ADDKEY bidadvert {@bidnum} {"@RBid "@bidnum": @M"@iddesc" @G(Lvl "@idlev") @WType: @G"@idtyp%if( @idwear, " @WWear: @G"@idwear)%if( @bidstats, " @WTotal Stats: @Y"%eval( @idint+@idlck+@idwis+@idstr+@idcon+@iddex) " @R[ "%replace( @bidstats, "|", )"@R]", "")%if( @idhit>0, " @Y"@idhit"@WHR")%if( @iddam>0, " @Y"@iddam"@WDR")%if( $portneed, " @WNeed: @G"$portneed"@w")}]]></value>
</trigger>
<trigger param="1" priority="77400">
<pattern>^~| Name%s: (*)%s~|</pattern>
<value>#VAR iddesc %trim(%string(%quote(%1)))</value>
</trigger>
<trigger priority="77450">
<pattern>^~| Type%s: (%w)%sLevel%s:%s(%d)</pattern>
<value>#VAR idtyp %trim(%1)
#VAR idlev %trim(%2)</value>
</trigger>
<trigger priority="77460">
<pattern>^~| Wearable%s: (*)~|</pattern>
<value>#VAR idwear %trim(%1)</value>
</trigger>
</class>
<trigger priority="98970">
<pattern>^%w is auctioning * ~(Level %d, Num (%d)~). Current bid is</pattern>
<value>#T+ {Identify|AucTrigs}
#gagspace
#VAR bidnum %1
bid %1</value>
</trigger>
</class>
</module>
</cmud> |
This line starts the script:
Code: |
Someone is auctioning a sugar coated donut (Level 1, Num 244). Current bid is 100 gold. |
It automatically bids on the number, giving something like this output:
Code: |
+-----------------------------------------------------------------+
| Keywords : hooker dinghy |
| Name : A o-}Hooker's{-o Tiny Dinghy |
| Type : Boat Level : 1 |
| Worth : 500 Weight : 10 |
| Flags : unique, glow, magic, burn-proof, auctioned, V3 |
| Clan Item : From The Daoine Sidhe |
+-----------------------------------------------------------------+
| Temporary Effects: |
| Fireproof : sets burn-proof flag (13:59:38) |
+-----------------------------------------------------------------+
|
My script gags the output and displays it nicely for me with a mudside echo. This is all using #gagon. However, if you go to Options -> Scripting -> Special Characters and uncheck the "Quote character" box, #gagon ceases to work. Instead, I get the following output:
Code: |
| Keywords : hooker dinghy |
| Name : A o-}Hooker's{-o Tiny Dinghy |
| Type : Boat Level : 1 |
| Worth : 500 Weight : 10 |
| Flags : unique, glow, magic, burn-proof, auctioned, V3 |
| Clan Item : From The Daoine Sidhe |
| Temporary Effects: |
| Fireproof : sets burn-proof flag (13:59:54) |
Current bid on this item is 100 gold (No bid yet). |
As you can see, the +[-]+ line is triggered, but nothing is gagged below that. Not sure what the bug would be, but that's all the steps I have that can reproduce this...
Charneus |
|
|
|
Toxic Adept
Joined: 27 May 2008 Posts: 299
|
Posted: Wed May 28, 2008 10:25 pm |
if someone doesn't find the answer I'll look at this when I get home Charneus, as I have the same triggers.
|
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Fri May 30, 2008 7:34 pm |
Anyone have an answer for this as well? Bug or not?
Charneus |
|
|
|
Toxic Adept
Joined: 27 May 2008 Posts: 299
|
Posted: Fri May 30, 2008 7:48 pm |
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<module name="Identify" global="true" enabled="false">
<uid>{0CDDED9D-7F9B-4826-AB9A-4EB4D1E0C16A}</uid>
<class name="Identify">
<class name="AucTrigs" enabled="false">
<trigger priority="101560">
<pattern>+[-]+</pattern>
<value>#gagspace</value>
<trigger type="Within Lines" param="1">
<pattern>^~| Keywords*~|</pattern>
<value>#gagspace
#gagon
#VAR idcon 0
#VAR idstr 0
#VAR iddex 0
#VAR idint 0
#VAR idwis 0
#VAR idlck 0
#VAR iddam 0
#VAR idhit 0
#VAR idwear ""
#VAR bidstats ""</value>
</trigger>
</trigger>
|
This is not a bug, when you turn off the ~ character for escaping your within 1 trigger with pattern ^~| Keywords*~| no longer fires, as it shouldnt, this is the part of the trigger that has #GAGON in it. If you put #GAGON in the +[-]+ trigger, then it would continue to work with that option off. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Fri May 30, 2008 7:52 pm |
Hahaha! Great spot! I can't believe I missed that. And there's a reason why I don't put it in the +[-]+ trigger - it's because it'll fire on any line and turn #GAGON on when it contains +[-]+. :P
Charneus |
|
|
|
Toxic Adept
Joined: 27 May 2008 Posts: 299
|
Posted: Fri May 30, 2008 7:53 pm |
Yeah, I figured that out messing with it last night heh.
|
|
|
|
|
|
|
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
|
|