|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Jun 25, 2010 1:57 am
[3.20 Pro]buttons and menus not being imported correctly |
It's not related to JSON and it has probably been reported before, but:
1)buttons
2)menus
3)submenu classes
Are not being correctly imported in a multi-package situation. The first thing happening is that they are not being copied into the package the import was applied to. So, if you tried to import into Package #2 these settings would instead be listed on the Package #1 tab. Secondly, when copied to this first package the affected settings are put on the module/window level instead of inside a module/window.
It doesn't appear that importing into the first/only package is thusly affected, and all the XML files I have available to import are all correctly written with the settings tags and data in the correct placements. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Jun 25, 2010 4:14 pm |
Can you give me some XML and a step-by-step procedure for this? I couldn't reproduce it when I tried it with my own buttons.
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Jun 25, 2010 5:35 pm |
the steps:
1)prior to upgrading from 3.17 (the starting version for my untainted backups), export every package to XML.
2)remove CMud completely (including all your package files, but not map/db files or userfiles for notes and stuff), reinstall a fresh copy of CMud to avoid any leftover junk from prior versions
3)create a new session with same name as the old one
4)open up Package Editor
5)import main-package xml
6)add new package
7)import xml with button/menu objects into Package #2
8)at this point you should notice that the buttons/menus didn't make it into the package you just imported into. They appeared in my Aardwolf package and appeared outside of any of the windows/modules in the Aardwolf package:
Code: |
Aardwolf window
| |
| |
| |--various settings
|
|
CommonFuncs module
| |
| |
| |--various functions
|
|
ChannelsMenu class (from the AardNotes package, supposed to be in the Channels window there)
| |
| |
| |--various menu items
|
|
Channels button (from the AardNotes package, supposed to be in the Channels window there)
|
|
Ratings button (from the AardNotes package, supposed to be in the Channels window there)
|
|
Search button (from the AardNotes package, supposed to be in the Channels window there)
|
[code]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<module name="AardNotes" global="true">
<uid>{231C87D2-748E-443C-93AB-4A51CED05944}</uid>
<packages>AardTelopts|AardBestiary|AardStats|AardMap|AardSkies|AardQuests|AardSpellups|Aardwolf</packages>
<class name="Messages">
<class name="Tells">
<trigger priority="300">
<pattern>^~{tell~}%w ({tell|tells}) %w '*'$</pattern>
<value>#if (%1 = "tells") {
//this is a tell from someone else
//or the third person version of a self tell
#if (%item(@Tells,1) = "YES") {
Tells = %replaceitem((%item(@Tells,2) + 1),2,@Tells)
#raise onMessageUpdate
#gagspace
} {
#psub %concat("[",%time("h:nn:ssampm"),"]") 0 5
}
} {
//this is a first-person self-tell
#gagspace
}</value>
</trigger>
<trigger priority="970">
<pattern>You have no tells to replay.</pattern>
<value>Tells = %replaceitem("0",2,@Tells)
#raise onMessageUpdate</value>
</trigger>
<trigger priority="1010">
<pattern>^%d %w %d:%d - %w tells you '*'</pattern>
<trigger>
<pattern>^$</pattern>
<value>Tells = %replaceitem("0",2,@Tells)
#raise onMessageUpdate</value>
</trigger>
</trigger>
<trigger priority="340">
<pattern>^You are now catching tells.</pattern>
<value>Tells = %replaceitem("YES",1,@Tells)
#raise onMessageUpdate</value>
</trigger>
<trigger priority="350">
<pattern>^You are no longer catching tells.</pattern>
<value>replay
Tells = %replaceitem("NO",1,@Tells)
Tells = %replaceitem("0",2,@Tells)</value>
</trigger>
<var name="Tells" type="StringList">
<value>YES|0</value>
<json>["YES","0"]</json>
</var>
<trigger priority="970">
<pattern>^%w just sent you a tell.$</pattern>
<value>#gagspace</value>
</trigger>
</class>
<event event="onMessageUpdate" priority="1010">
<value><![CDATA[#clr Messages
#local $sendtag $colortag $subscribe $posts $format $line
//line 1
#forall "Announce|Mudinfo|General|Misc|Claninfo|Clan" {
#call %match(@Boards.%i,"(%w)|(%d)",$subscribe,$posts)
#if ($line != "") {
$format = " <send &s><color &s>&8s</color></send> <color &s>&-4s</color>"
} {
$format = "<send &s><color &s>&8s</color></send> <color &s>&-4s</color>"
}
#if (%i != @CurrentBoard) {
$sendtag = %concat("'#execwin Aardwolf {board ",%i,"}|#execwin Aardwolf {subscribe ",%i,"}' 'right-click for board options|Change to this board|",%if($subscribe="YES","Unsubscribe","Subscribe")," to this board'")
$colortag = "cyan"
} {
$sendtag = %concat("'#execwin Aardwolf {subscribe ",%i,"}' 'right-click for board options|",%if($subscribe="YES","Unsubscribe","Subscribe")," to this board'")
$colortag = "white"
}
$line = %concat($line,%format($format,$sendtag,$colortag,%i,%if(%ismember($posts,"0|na"),"gray","yellow"),%if($subscribe = "YES",$posts,"na")))
}
$line = %concat($line,%format(" <send '#execwin Aardwolf {note list}'><color magenta>&7s</color></send>","list"))
#window Messages {%trimright($line)}
//line 2
$line = ""
#forall "Tech|Ideas|Feedback|Forsale|Roleplay|Art" {
#call %match(@Boards.%i,"(%w)|(%d)",$subscribe,$posts)
#if ($line != "") {
$format = " <send &s><color &s>&8s</color></send> <color &s>&-4s</color>"
} {
$format = "<send &s><color &s>&8s</color></send> <color &s>&-4s</color>"
}
#if (%i != @CurrentBoard) {
$sendtag = %concat("'#execwin Aardwolf {board ",%i,"}|#execwin Main {subscribe ",%i,"}' 'right-click for board options|Change to this board|",%if($subscribe="YES","Unsubscribe","Subscribe")," to this board'")
$colortag = "cyan"
} {
$sendtag = %concat("'#execwin Aardwolf {subscribe ",%i,"}' 'right-click for board options|",%if($subscribe="YES","Unsubscribe","Subscribe")," to this board'")
$colortag = "white"
}
$line = %concat($line,%format($format,$sendtag,$colortag,%i,%if(%ismember($posts,"0|na"),"gray","yellow"),%if($subscribe = "YES",$posts,"na")))
}
$line = %concat($line,%format(" <send '#execwin Aardwolf {note}'><color magenta>&7s</color></send>","read"))
#window Messages {%trimright($line)}
//line 3
$line = ""
#forall "Games|Typos|Bugs|Upgrades|Personal|Lottery" {
#call %match(@Boards.%i,"(%w)|(%d)",$subscribe,$posts)
#if ($line != "") {
$format = " <send &s><color &s>&8s</color></send> <color &s>&-4s</color>"
} {
$format = "<send &s><color &s>&8s</color></send> <color &s>&-4s</color>"
}
#if (%i != @CurrentBoard) {
$sendtag = %concat("'#execwin Aardwolf {board ",%i,"}|#execwin Main {subscribe ",%i,"}' 'right-click for board options|Change to this board|",%if($subscribe="YES","Unsubscribe","Subscribe")," to this board'")
$colortag = "cyan"
} {
$sendtag = %concat("'#execwin Aardwolf {subscribe ",%i,"}' 'right-click for board options|",%if($subscribe="YES","Unsubscribe","Subscribe")," to this board'")
$colortag = "white"
}
$line = %concat($line,%format($format,$sendtag,$colortag,%i,%if(%ismember($posts,"0|na"),"gray","yellow"),%if($subscribe = "YES",$posts,"na")))
}
$line = %concat($line,%format(" <send '#execwin Aardwolf {note write}'><color magenta>&7s</color></send>","write"))
#window Messages {%trimright($line)}
//line 4
$line = ""
#forall "Lasertag|Jokes|Raiding|Voting" {
#call %match(@Boards.%i,"(%w)|(%d)",$subscribe,$posts)
#if ($line != "") {
$format = " <send &s><color &s>&8s</color></send> <color &s>&-4s</color>"
} {
$format = "<send &s><color &s>&8s</color></send> <color &s>&-4s</color>"
}
#if (%i != @CurrentBoard) {
$sendtag = %concat("'#execwin Aardwolf {board ",%i,"}|#execwin Aardwolf {subscribe ",%i,"}' 'right-click for board options|Change to this board|",%if($subscribe="YES","Unsubscribe","Subscribe")," to this board'")
$colortag = "cyan"
} {
$sendtag = %concat("'#execwin Aardwolf {subscribe ",%i,"}' 'right-click for board options|",%if($subscribe="YES","Unsubscribe","Subscribe")," to this board'")
$colortag = "white"
}
$line = %concat($line,%format($format,$sendtag,$colortag,%i,%if(%ismember($posts,"0|na"),"gray","yellow"),%if($subscribe = "YES",$posts,"na")))
}
$line = %concat($line,%repeat(" ",15),%format("<send '#execwin Aardwolf {replay}' 'Show unseen Tells'><color yellow>&8s</color></send> <color gray>","Tells"))
#if (%item(@tells,1) = "YES") {
$line = %concat($line,%format("&-4.0f</color>",%item(@tells,2)))
} {
$line = %concat($line,%format("&-4s</color>","na"))
}
$line = %concat($line,%format(" <send '#execwin Aardwolf {note catchup}'><color magenta>&7s</color></send>","catchup"))
#window Messages {%trimright($line)}]]></value>
</event>
<class name="Boards">
<trigger priority="870">
<pattern>^~|%s%d ~|%s(%w) ~|%s(%d) ~|*~|$</pattern>
<value>#addkey Boards %1 %concat("YES|",%2)</value>
</trigger>
<trigger priority="880">
<pattern>Your current forum is (%w).</pattern>
<value>currentboard = %1
#raise onMessageUpdate</value>
</trigger>
<trigger priority="890">
<pattern>^Forum%s: (%w) - #%d$</pattern>
<value>#local $posts
#T- tSuppressBlanks
#call %match(@Boards.%1,"%w|(%d)",$posts)
#add $posts -1
#addkey Boards %1 %concat("YES|",$posts)
#raise onMessageUpdate</value>
<trigger>
<pattern>^~[prompt~] ></pattern>
<value>#T+ tSuppressBlanks</value>
</trigger>
</trigger>
<trigger priority="900">
<pattern>All new posts in this forum skipped.</pattern>
<value>#local $sub
#call %match(%db(@boards,@CurrentBoard),"(%w)|%d",$sub)
#addkey Boards @Currentboard %concat($sub,"|0")
#raise onMessageUpdate</value>
</trigger>
<trigger priority="750">
<pattern>Current forum changed to (%w).</pattern>
<value>CurrentBoard = %1
#raise onMessageUpdate</value>
</trigger>
<trigger priority="930">
<pattern>INFO: New post #%d in forum (%w) from *</pattern>
<value>#gagspace
#local $sub $posts
#call %match(@Boards.%1,"(%w)|(%d)",$sub,$posts)
#if ($sub = "YES") {
#add $posts 1
#addkey Boards %1 %concat($sub,"|",$posts)
#raise onMessageUpdate
}</value>
</trigger>
<trigger priority="940">
<pattern>Note posted in the (%w) forum.</pattern>
<value>#local $sub $posts
#call %match(@Boards.%1,"(%w)|(%d)",$sub,$posts)
#add $posts 1
#addkey Boards %1 %concat($sub,"|",$posts)
#gagspace
#raise onMessageUpdate</value>
</trigger>
<trigger priority="950">
<pattern>^Lasertag: {Lasertag has ended in a 0 point DRAW|%w has led the Green team*|%w has led the Red team*}!$</pattern>
<value>#local $sub $posts
#call %match(@Boards.lasertag,"(%w)|(%d)",$sub,$posts)
#gagspace
#if ($sub = "YES") {
#add $posts 1
#addkey Boards Lasertag %concat($sub,"|",$posts)
#raise onMessageUpdate
}</value>
</trigger>
<trigger priority="960">
<pattern>There are no new posts in any subscribed forum.$</pattern>
<value>#local $sub
$boards = "Announce|Mudinfo|General|Misc|Claninfo|Clan|Tech|Ideas|Feedback|Forsale|Roleplay|Art|Games|Typos|Bugs|Upgrades|Personal|Lottery|Lasertag|Jokes|Raiding|Voting"
#forall $boards {
#call %match(@Boards.%i,"(%w)|%d",$sub)
#addkey Boards %1 %concat($sub,"|0")
}
#raise onMessageUpdate</value>
</trigger>
<var name="Boards" type="Record">
<value>Art="YES|0"|Claninfo="YES|0"|Roleplay="YES|0"|Personal="YES|0"|Announce="YES|0"|Jokes="YES|0"|Upgrades="YES|0"|Mudinfo="YES|0"|Feedback="YES|0"|Ideas="YES|0"|General="YES|0"|Games="YES|0"|Raiding="YES|0"|Typos="YES|0"|Tech="YES|0"|Clan="YES|0"|Bugs="YES|0"|Voting="YES|0"</value>
<json>{"Art":["YES",0],"Claninfo":["YES",0],"Roleplay":["YES",0],"Personal":["YES",0],"Announce":["YES",0],"Jokes":["YES",0],"Upgrades":["YES",0],"Mudinfo":["YES",0],"Feedback":["YES",0],"Ideas":["YES",0],"General":["YES",0],"Games":["YES",0],"Raiding":["YES",0],"Typos":["YES",0],"Tech":["YES",0],"Clan":["YES",0],"Bugs":["YES",0],"Voting":["YES",0]}</json>
</var>
<var name="CurrentBoard">Bugs</var>
<class name="Subscribed">
<trigger priority="740">
<pattern>You are ({now|no longer}) subscribed to forum (%w).</pattern>
<value>#local $sub $posts
#call %match(@Boards.%2,"(%w)|(%d)",$sub,$posts)
#if (%1 = "now") {
$sub = "YES"
$posts = 0
} {
$sub = "NO"
$posts = "0"
}
#addkey Boards %2 %concat($sub,"|",$posts)
#raise onMessageUpdate</value>
</trigger>
<trigger priority="1090">
<pattern>^~|%s%d ~|%s(%w) ~|%s({YES|NO})%s~| [%x%s]~|$</pattern>
<value>#call %match(@Boards.%1,"(%w)|(%d)",$sub,$posts)
#if (%2 = "NO") {
#addkey Boards %1 %concat(%2,"|0")
} {
#addkey Boards %1 %concat(%2,"|",$posts)
}</value>
</trigger>
</class>
<trigger priority="1130">
<pattern>^Changed to &%wCurrentBoard - %d unread {post|posts} for you in this forum.$</pattern>
<value>#raise onMessageUpdate</value>
</trigger>
</class>
</class>
<class name="Channels">
<trigger name="tChannels" priority="490" ansi="true">
<pattern>~{chan ch=(%w)~}(*)$</pattern>
<value><![CDATA[#local $name $text
#gagspace
//format the channel text
$text = %format("<color gray>[&10s]:</color>&s",%time("h:nn:ssampm"),%2)
//validate the channel name and update history
#switch (%ismember(%1,"question|answer")) {
$name = "qna"
Qna = %additem($text,@qna)
}
(%ismember(%1,"inform|commune|chant|telepathy|grapevine|cant|wardrums")) {
$name = "classchan"
Classchan = %additem($text,@ClassChan)
}
(1) {
$name = %1
#variable %1 %additem($text,@{%1})
}
//determine where to display it
#if ((@CurChan.name = $name) or (@CurChan.name = "all")) {#execwin Channels {#print $text}} {#print $text}]]></value>
</trigger>
<var name="CurChan" type="Record">
<value>rating=Varied|history=NA|name=all</value>
<json>{"rating":"Varied","history":"NA","name":"all"}</json>
</var>
<event event="onChannelChange" priority="1880">
<value>$profane = "clantalk|curse|cebate|ftalk|gclan|gtell|helper|immtalk|music|pokerinfo|spouse"
#switch (@CurChan.name = %1) {
//do nothing
}
(%1 != "all") {
//enable the search button and set the values in @CurChan
#call %btnenable(btnChanSearch,1)
//set the rating and history values for @CurChan
#if (%ismember(%1,$profane)) {
CurChan.rating = "X rated"
} {
CurChan.rating = "PG13 rated"
}
CurChan.history = %numitems(@{%1})
}
(%1 = "all") {
//disable the search button and set the values in @CurChan
#call %btnenable(btnChanSearch,0)
CurChan.rating = "Varied"
CurChan.history = "NA"
}
Curchan.name = %1
#clr Channels
#window Channels {%expandlist(@{%1},%cr)}</value>
</event>
<trigger name="tRemortChan" priority="1920" ansi="true">
<pattern>(%e~[1;33mRemort Auction*)$</pattern>
<value><![CDATA[#gagspace
//figure out what to do with the line
$chan = %format("<color gray>[&10s]:</color>&s",%time("h:nn:ssampm"),%1)
#switch (%ismember(@CurChan.name,"all|rauction")) {#execwin Channels {#print $chan}}
(1) {#print $chan}
//record the result to the rauction history variable
Rauction = %additem(%1,@Rauction)]]></value>
</trigger>
<class name="History">
<var name="Wangrp" type="StringList">
<value><![CDATA[<color gray>[ 2:42:12AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m166, Lord of Ruin[1;35m) Tikuranari offers to tank![0m|<color gray>[ 5:52:12AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m75, Lord of Ruin[1;35m) Nefertiti: anyone?[0m|<color gray>[ 6:13:41AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m117, Lord of Ruin[1;35m) Jexebelle: Anyone lovely want a group or [0m[1;35mdrag? Aligns don't matter a bit to me. SC preferred and no retards. Please. Send [0m[1;35mtells.[0m|<color gray>[ 6:14:12AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m176, Lord of Ruin[1;35m) Stutz: "no retards" - guess I'm out. :([0m|<color gray>[ 6:14:44AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m201, Lord of Angels[1;35m) [1;37mStutz falls off the [1;33mshortbus[1;37m scraping [0m[1;37mhis knees and Semoene laughs its ass off at him![0m|<color gray>[ 8:40:25AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m33, Lord of Angels[1;35m) Mordron: someone wanna group ?[0m|<color gray>[ 8:46:18AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m69, Lord of Ruin[1;35m) Baralia: anybody?[0m|<color gray>[ 8:56:29AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m69, Lord of Ruin[1;35m) Baralia: anybody?[0m|<color gray>[ 8:56:39AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m21, Lord of Angels[1;35m) Tikuranari raises his hand.[0m|<color gray>[ 9:07:02AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m69, Lord of Ruin[1;35m) Baralia: anybody for a group not a drag?[0m|<color gray>[10:07:40AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m53, Lord of Angels[1;35m) Frozone . o O ( levels :( )[0m|<color gray>[10:07:56AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m77, Lord of Angels[1;35m) Hane: Get bigger.[0m|<color gray>[10:08:30AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m36, Lord of Angels[1;35m) Mordron: lets group frozone ?[0m|<color gray>[10:08:40AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m122, Lord of Ruin[1;35m) Panzer: lets eat grandma[0m|<color gray>[10:08:51AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m23, Good[1;35m) Aleks is agreeing with that Panzer person again...[0m|<color gray>[10:08:51AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m58, Lord of Angels[1;35m) Gonf perks up, something must have [0m[1;35mgrabbed his attention.[0m|<color gray>[10:08:52AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m36, Lord of Angels[1;35m) Mordron: good ideia[0m|<color gray>[10:29:08AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m114, Lord of Ruin[1;35m) Holliday: sure ya can drag me a bit, i [0m[1;35mmake for good company[0m|<color gray>[10:31:29AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m165, Lord of Angels[1;35m) Limunious: anyone? i lead[0m|<color gray>[11:15:32AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m62, Wicked[1;35m) Mnmchilo: anyone wanna group?[0m|<color gray>[11:23:40AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m62, Wicked[1;35m) Mnmchilo: anyone want to group?[0m|<color gray>[11:55:16AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m173, Avatar of Darkness[1;35m) Spiritz: wang?[0m|<color gray>[11:59:31AM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m133, Avatar of Darkness[1;35m) Sindayne: anyone care to group? :P[0m|<color gray>[12:00:30PM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m23, Avatar of Light[1;35m) Marhan: I would, but I'm about to be [0m[1;35mheaded out, but givven your level, could you use me or would I seriously die?[0m|<color gray>[12:16:13PM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m173, Lord of Ruin[1;35m) Spiritz: wang?[0m|<color gray>[12:43:48PM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m60, Lord of Angels[1;35m) Frozone: anyone needs a group ?[0m|<color gray>[12:44:32PM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m175, Lord of Ruin[1;35m) Spiritz: anyone?[0m|<color gray>[ 6:39:57PM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m54, Neutral[1;35m) ElementPyros: Anyone want to group?[0m|<color gray>[ 7:08:12PM]:</color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m107, Lord of Angels[1;35m) Misfit: <---------------[0m]]></value>
<json><![CDATA:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m166, Lord of Ruin[1;35m) Tikuranari offers to tank![0m","<color gray>[ 5:52:12AM:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m75, Lord of Ruin[1;35m) Nefertiti: anyone?[0m","<color gray>[ 6:13:41AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m117, Lord of Ruin[1;35m) Jexebelle: Anyone lovely want a group or [0m[1;35mdrag? Aligns don't matter a bit to me. SC preferred and no retards. Please. Send [0m[1;35mtells.[0m","<color gray>[ 6:14:12AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m176, Lord of Ruin[1;35m) Stutz: "no retards" - guess I'm out. :([0m","<color gray>[ 6:14:44AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m201, Lord of Angels[1;35m) [1;37mStutz falls off the [1;33mshortbus[1;37m scraping [0m[1;37mhis knees and Semoene laughs its ass off at him![0m","<color gray>[ 8:40:25AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m33, Lord of Angels[1;35m) Mordron: someone wanna group ?[0m","<color gray>[ 8:46:18AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m69, Lord of Ruin[1;35m) Baralia: anybody?[0m","<color gray>[ 8:56:29AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m69, Lord of Ruin[1;35m) Baralia: anybody?[0m","<color gray>[ 8:56:39AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m21, Lord of Angels[1;35m) Tikuranari raises his hand.[0m","<color gray>[ 9:07:02AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m69, Lord of Ruin[1;35m) Baralia: anybody for a group not a drag?[0m","<color gray>[10:07:40AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m53, Lord of Angels[1;35m) Frozone . o O ( levels :( )[0m","<color gray>[10:07:56AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m77, Lord of Angels[1;35m) Hane: Get bigger.[0m","<color gray>[10:08:30AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m36, Lord of Angels[1;35m) Mordron: lets group frozone ?[0m","<color gray>[10:08:40AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m122, Lord of Ruin[1;35m) Panzer: lets eat grandma[0m","<color gray>[10:08:51AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m23, Good[1;35m) Aleks is agreeing with that Panzer person again...[0m","<color gray>[10:08:51AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m58, Lord of Angels[1;35m) Gonf perks up, something must have [0m[1;35mgrabbed his attention.[0m","<color gray>[10:08:52AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m36, Lord of Angels[1;35m) Mordron: good ideia[0m","<color gray>[10:29:08AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m114, Lord of Ruin[1;35m) Holliday: sure ya can drag me a bit, i [0m[1;35mmake for good company[0m","<color gray>[10:31:29AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m165, Lord of Angels[1;35m) Limunious: anyone? i lead[0m","<color gray>[11:15:32AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m62, Wicked[1;35m) Mnmchilo: anyone wanna group?[0m","<color gray>[11:23:40AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m62, Wicked[1;35m) Mnmchilo: anyone want to group?[0m","<color gray>[11:55:16AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m173, Avatar of Darkness[1;35m) Spiritz: wang?[0m","<color gray>[11:59:31AM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m133, Avatar of Darkness[1;35m) Sindayne: anyone care to group? :P[0m","<color gray>[12:00:30PM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m23, Avatar of Light[1;35m) Marhan: I would, but I'm about to be [0m[1;35mheaded out, but givven your level, could you use me or would I seriously die?[0m","<color gray>[12:16:13PM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m173, Lord of Ruin[1;35m) Spiritz: wang?[0m","<color gray>[12:43:48PM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m60, Lord of Angels[1;35m) Frozone: anyone needs a group ?[0m","<color gray>[12:44:32PM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m175, Lord of Ruin[1;35m) Spiritz: anyone?[0m","<color gray>[ 6:39:57PM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m54, Neutral[1;35m) ElementPyros: Anyone want to group?[0m","<color gray>[ 7:08:12PM]:<\/color>[1;36m([1;35mWanGrp?![1;36m)[1;35m ([0;37m107, Lord of Angels[1;35m) Misfit: <---------------[0m"]]]></json>
</var>
</class>
<trigger priority="1160">
<pattern>^Hold'Em> (%w) has created a No-Limit Tournament game ~((%d)~) with a (*) gold buy-in.$</pattern>
<value><![CDATA[#gagspace
//figure out what to do with the line
$chan = %format("<color gray>[&10s]:</color><color yellow>Hold</color><color red>'Em></color> <color #00FF00>&s has created a No-Limit Tournament game (</color><color yellow>&0.0f</color><color #00FF00>) with a</color> <color yellow>&s</color> <color #00FF00>gold buy-in.</color>",%time("h:nn:ssampm"),%1,%2,%3)
#switch (%ismember(@CurChan.name,"all|pokerinfo")) {#execwin Channels {#print $chan}}
(1) {#print $chan}
//record the result to the rauction history variable
Pokerinfo = %additem(%1,@Pokerinfo)]]></value>
</trigger>
</class>
<event event="onMidnight" priority="290">
<value>Auction = ""
Barter = ""
Clantalk = ""
ClassChan = ""
Curse = ""
Debate = ""
Ftalk = ""
Gametalk = ""
Gclan = ""
Gossip = ""
Gratz = ""
Gsocial = ""
Gtell = ""
Helper = ""
Immtalk = ""
Lasertag = ""
Market = ""
Music = ""
Newbie = ""
Nobletalk = ""
Pokerinfo = ""
QnA = ""
Quote = ""
Racetalk = ""
Rauction = ""
Rp = ""
Snewbie = ""
Spouse = ""
Tech = ""
Tiertalk = ""
Trivia = ""
Wangrp = ""
Says = ""
Whispers = ""</value>
</event>
<class name="Locals">
<trigger priority="1310">
<pattern>^~{say~}(%w) %w '(*)'$</pattern>
<value><![CDATA[#psub "" 0 4
Says = %additem(%format("[&s]&s:&s",%time("h:nnampm"),%1,%2),@says)
#if (%numitems(@Says) > 100) {#delnitem Says 1}]]></value>
</trigger>
<var name="Says" type="StringList">
<value>[5:48AM]Crnogorac:wtf :P|[5:56AM]Vladiblood:voos complete|[9:14AM]Ohyeahohyeah:the shame|[9:38AM]Braber:hi|[11:07AM]Shadowmaker:are you gonna take that from him questor?|[11:07AM]Shadowmaker:coz if someone just slapped me like that i would be pissed</value>
<json>["[5:48AM]Crnogorac:wtf :P","[5:56AM]Vladiblood:voos complete","[9:14AM]Ohyeahohyeah:the shame","[9:38AM]Braber:hi","[11:07AM]Shadowmaker:are you gonna take that from him questor?","[11:07AM]Shadowmaker:coz if someone just slapped me like that i would be pissed"]</json>
</var>
<trigger priority="1330">
<pattern>^(%w) {whisper|whispers} to %w '(*)'$</pattern>
<value><![CDATA[Whispers = %additem(%format("[&s]&s:&s",%time("h:nnampm"),%1,%2),@whispers)
#if (%numitems(@Whispers) > 100) {#delnitem Whispers 1}]]></value>
</trigger>
<var name="Whispers" type="Literal"/>
</class>
</module>
<window name="Messages" commandline="false" statusbar="false" visible="false" splitscreen="false" scrollbars="false" left="0" top="110" width="450" height="200" host="none">
<uid>{5CC9C258-CFE2-406B-9216-45D2D2C11125}</uid>
<packages>AardTelopts|English Keypad|AardBestiary|AardNotes|AardStats|English Directions|AardMap|AardSkies|AardQuests|Clickable URLs|AardSpellups|Aardwolf</packages>
</window>
<window name="Channels" commandline="false" statusbar="false" visible="false" scrollbars="false" left="0" top="110" width="450" height="200" host="none">
<uid>{FA1F30F4-43CA-46A3-8399-E6AF4773B0EA}</uid>
<packages>AardTelopts|English Keypad|AardBestiary|AardStats|English Directions|AardMap|AardSkies|AardQuests|Clickable URLs|AardSpellups|Aardwolf</packages>
<class name="ChannelsMenu" submenu="true">
<menu priority="205">
<caption>Pokerinfo</caption>
<value>#raise onChannelChange pokerinfo</value>
</menu>
<menu priority="140">
<caption>Gametalk</caption>
<value>#raise onChannelChange gametalk</value>
</menu>
<menu priority="255">
<caption>Trivia</caption>
<value>#raise onChannelChange trivia</value>
</menu>
<menu priority="180">
<caption>Lasertag</caption>
<value>#raise onChannelChange lasertag</value>
</menu>
<menu priority="105">
<caption>Auction</caption>
<value>#raise onChannelChange auction</value>
</menu>
<menu priority="185">
<caption>Market</caption>
<value>#raise onChannelChange market</value>
</menu>
<menu priority="225">
<caption>Remort auction</caption>
<value>#raise onChannelChange rauction</value>
</menu>
<menu priority="110">
<caption>Barter</caption>
<value>#raise onChannelChange barter</value>
</menu>
<menu priority="115">
<caption>Clantalk</caption>
<value>#raise onChannelChange clantalk</value>
</menu>
<menu priority="145">
<caption>GClan</caption>
<value>#raise onChannelChange gclan</value>
</menu>
<menu priority="240">
<caption>Spouse</caption>
<value>#raise onChannelChange spouse</value>
</menu>
<menu priority="165">
<caption>Gtell</caption>
<value>#raise onChannelChange gtell</value>
</menu>
<menu priority="135">
<caption>Ftalk</caption>
<value>#raise onChannelChange ftalk</value>
</menu>
<menu priority="130">
<caption>Debate</caption>
<value>#raise onChannelChange debate</value>
</menu>
<menu priority="210">
<caption>Question and Answer</caption>
<value>#raise onChannelChange qna</value>
</menu>
<menu priority="260">
<caption>Wangrp</caption>
<value>#raise onChannelChange wangrp</value>
</menu>
<menu priority="245">
<caption>Tech</caption>
<value>#raise onChannelChange tech</value>
</menu>
<menu priority="120">
<caption>Class Channel</caption>
<value>#raise onChannelChange classchan</value>
</menu>
<menu priority="125">
<caption>Curse</caption>
<value>#raise onChannelChange curse</value>
</menu>
<menu priority="150">
<caption>Gossip</caption>
<value>#raise onChannelChange gossip</value>
</menu>
<menu priority="155">
<caption>Gratz</caption>
<value>#raise onChannelChange gratz</value>
</menu>
<menu priority="160">
<caption>Gsocial</caption>
<value>#raise onChannelChange gsocial</value>
</menu>
<menu priority="170">
<caption>Helper</caption>
<value>#raise onChannelChange helper</value>
</menu>
<menu priority="175">
<caption>Immtalk</caption>
<value>#raise onChannelChange immtalk</value>
</menu>
<menu priority="190">
<caption>Music</caption>
<value>#raise onChannelChange music</value>
</menu>
<menu priority="195">
<caption>Newbie</caption>
<value>#raise onChannelChange newbie</value>
</menu>
<menu priority="200">
<caption>Nobletalk</caption>
<value>#raise onChannelChange nobletalk</value>
</menu>
<menu priority="215">
<caption>Quote</caption>
<value>#raise onChannelChange quote</value>
</menu>
<menu priority="220">
<caption>Racetalk</caption>
<value>#raise onChannelChange racetalk</value>
</menu>
<menu priority="230">
<caption>Rp</caption>
<value>#raise onChannelChange rp</value>
</menu>
<menu priority="235">
<caption>Snewbie</caption>
<value>#raise onChannelChange snewbie</value>
</menu>
<menu priority="250">
<caption>Tiertalk</caption>
<value>#raise onChannelChange tiertalk</value>
</menu>
<menu priority="100">
<caption>All Channels</caption>
<value>#raise onChannelChange all</value>
</menu>
</class>
<button type="Menu" autosize="false" width="68" height="18" autopos="false" left="0" top="0" toolbar="3" priority="1390">
<caption>@CurChan.name</caption>
<value>ChannelsMenu</value>
</button>
<button name="btnChanHistory" type="Separator" autosize="false" width="68" height="18" autopos="false" left="0" top="34" toolbar="3" priority="1410">
<caption>Hist: %format("&5s",%if(@CurChan.name = "all","NA",%numitems(@{@CurChan.name})))</caption>
<value>#print %numitems(@{@CurChan.name})</value>
</button>
<button name="btnChanRating" type="Separator" autosize="false" width="68" height="18" autopos="false" left="0" top="17" toolbar="3" priority="1460">
<caption>@CurChan.rating</caption>
</button>
<button name="btnChanSearch" autosize="false" width="68" height="18" autopos="false" left="0" top="68" toolbar="3" btnenabled="false" priority="1450">
<caption>Search</caption>
<value>#local $search
#switch (@curchan.name = "qna") {$search = "question"}
(@curchan.name = "classchan") {
$search = %case(%ismember(@Character.class,"|Mage|Cleric|Paladin|Psionicist|Ranger|Thief|Warrior"),"no class","inform","commune","chant","telepathy","grapevine","cant","wardrums")
#print $search
}
(1) {$search = @curchan.name}
$search = %concat($search," -h ",%prompt(,"Enter the phrase to search for or the number of lines of history to show."))
#execwin Main {$search}</value>
</button>
</window>
</cmud>
[code]
While this package is still working correctly as written, it's still in the 3.17 form so I haven't done anything to it to take advantage of the 3.18-3.20 fixes. Also, I only left in one channel-capture variable as an example of the many variables I have (one for each channel in Aard, and they are all stringlists full of ansi/mxp tags and they don't get reset until midnight). I'll send the file off to you and put it on my website, if you need the whole thing. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|
|
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
|
|