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 ➜ Lua ➜ Need help converting a zmud script to LUA

Need help converting a zmud script to LUA

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


Posted by Seancho   (5 posts)  Bio
Date Tue 15 Jan 2013 08:19 AM (UTC)

Amended on Tue 15 Jan 2013 08:22 AM (UTC) by Seancho

Message
Any help would be greatly appreciated.

#CLASS {FadeScript}
#ALIAS tc {tell %1 %2 - %alias( %2)}
#ALIAS nc {nar %1 - %alias( %1)}
#ALIAS sayc {say %1 - %alias( %1)}
#ALIAS getcodes {
#say Note: This will ONLY work from TKD.
sense
#DELCLASS FadeScript|TempAliases
#T+ {FadeScript|Getter}
#VAR CurrentPosition 1
}
#ALIAS spidercodes {
#say Note: This will ONLY work from Clear Spiders.
sense
#T+ {FadeScript|Spiders}
#VARIABLE SpidersPos 1
#DELCLASS FadeScript|SpiderAliases
}
#ALIAS wbfadecodes {
#say Note: This will ONLY work from Whitebridge Fade Zone.
sense
#T+ {FadeScript|WBFade}
#VARIABLE WBFadePos 1
#DELCLASS FadeScript|WBFadeAliases
}
#ALIAS garwallcodes {
#say Note: This will ONLY work from Garens Wall Cavern Patrol (garwall3).
sense
#T+ {FadeScript|GarensWall}
#VARIABLE GarensWallPos 1
#DELCLASS FadeScript|GarensWallAliases
}
#ALIAS resetcodes {
#delclass FadeScript|TempAliases
#delclass FadeScript|SpiderAliases
#delclass FadeScript|WBFadeAliases
#delclass FadeScript|GarensWallAliases
}
#TRIGGER {- ~[(&28)~] - somewhere} {#SUB "- ~[~<send href='fade %1'~>%1~</send~>~] - somewhere"}
#TRIGGER {- ~[(&32)~] - somewhere} {#SUB "- ~[~<send href='fade %1'~>%1~</send~>~] - somewhere"}
#TRIGGER {- ~[(&36)~] - somewhere} {#SUB "- ~[~<send href='fade %1'~>%1~</send~>~] - somewhere"}
#TRIGGER {(%w) narrates '(%w) - fade (&28)'} {#SUB "%1 narrates '%2 - fade ~<send href='fade %3'~>%3~</send~>'"}
#TRIGGER {(%w) tells you '(%w) - fade (&28)'} {#SUB "%1 tells you '%2 - fade ~<send href='fade %3'~>%3~</send~>'"}
#CLASS 0
#CLASS {FadeScript|Getter} {disable}
#VAR CurrentPosition {185}
#VAR LookupTable {gap|gap2|gap3|bl|bl2|bl3|rcpatrol|rc|rc2|sg|sg2|sg3|tkd|tkd2|tkd3|ls|ls2|ls3|stedding|rootlet|rootlet2|rootlet3|keep|rk2|rk3|nspine|nspine2|nspine3|dpass|dpass2|dpass3|fdrd|fdrd2|fdrd3|dust|dust2|dust3|dog|dog2|dog3|ntv1|ntv2|ntv3|twist|twist2|twist3|slspath|slspath2|slspath3|orch|orch2|orch3|camp|camp2|camp3|liz|liz2|liz3|sm|sm2|sm3|endsnake|end2|endcave|blpass|blpass2|blpass3|lf|lf2|lf3|sh|sh2|sh3|sstrong|sstrong2|sstrong3|nkeep|nkeep2|nkeep3|lithe|4trees|ekand3|hut|waterwall|rocks|sekand4|bears|none|nest|blank10|blank11|blank12|df|df2|df3|hollow|spiders3|spiders|brfade2|brfade|brfade3|settle|settle2|settle3|rene|rene2|rene3|dkrd|dkrd2|dkrd3|bvall|bvall2|bvall3|hillkand|hillkand2|hillkand3|swsh|swsh2|swsh3|northsg|northsg2|northsg3|northcut|northcut2|northcut3|bltunnel|bltunnel2|bltunnel3|northls|northls2|northls3|maradon|maradon2|dhs|dhs2|dh3|arafel|arafel2|arafel3|rhamine|rhamine2|rhamine3|gorthel|gorthel2|gorthel3|wdog|wdog2|wdog3 |twist4|twist5|twist6|legion|legion2|legion3|negf|negf2|negf3|kreeza|kreeza2|kreeza3|srhahime|srhahime2|sdfort|sdfort2|sdfort3|cairn|cairn2|cairn3|wdkrd|wdkrd2|wkrd3|dfort|dfort2|dfort3|sdfort4|sdfort5|sdfort6|dd|sedfort|sedfort2|sedfort3|negk|negk2|negk3|chachin}
#TRIGGER {- ~[(&36)~] - somewhere} {
#IF (%item( @LookupTable, @CurrentPosition) <> "none") {
#SAY Assigned %1 to %item( @LookupTable, @CurrentPosition)
#ALIAS %item( @LookupTable, @CurrentPosition) {fade %1} {FadeScript|TempAliases}
}
#ADD CurrentPosition 1
Top

Posted by Seancho   (5 posts)  Bio
Date Reply #1 on Tue 15 Jan 2013 08:20 AM (UTC)
Message
#IF (@CurrentPosition > %numitems( @LookupTable)) {#T- {FadeScript|Getter}}
}
#TRIGGER {- ~[(&32)~] - somewhere} {
#IF (%item( @LookupTable, @CurrentPosition) <> "none") {
#SAY Assigned %1 to %item( @LookupTable, @CurrentPosition)
#ALIAS %item( @LookupTable, @CurrentPosition) {fade %1} {FadeScript|TempAliases}
}
#ADD CurrentPosition 1
#IF (@CurrentPosition > %numitems( @LookupTable)) {#T- {FadeScript|Getter}}
}
#TRIGGER {- ~[(&28)~] - somewhere} {
#IF (%item( @LookupTable, @CurrentPosition) <> "none") {
#SAY Assigned %1 to %item( @LookupTable, @CurrentPosition)
#ALIAS %item( @LookupTable, @CurrentPosition) {fade %1} {FadeScript|TempAliases}
}
#ADD CurrentPosition 1
#IF (@CurrentPosition > %numitems( @LookupTable)) {#T- {FadeScript|Getter}}
}
#CLASS 0
#CLASS {FadeScript|Spiders} {disable}
#VAR SpidersPos {301}
#VAR SpidersTable {caem|4k|4k2|4k3|gap|gap2|gap3|braem|braem2|braem3|rolands|rolands2|rolands3|caralain|caralain2|caralain3|obscure|bhills2|bhills3|bl|bl2|bl3|lich|rc|rc2|rc3|sg|sg2|sg3|tkd|tkd2|tkd3|caemrd|caemrd2|caemrd3|ncaem|ncaem2|ncaem3|spidercodes1|spidercodes2|spidercodes3|ls|ls2|ls3|stedding|westtv|westtv2|westtv3|tvfor|tvfor2|tvfor3|westwb|westwb2|westwb3|kdag|kdag2|kdag3|keep|rk2|rk3|insidetv|insidetv2|insidetv3|lug|lug2|lug3|nspine|nspine2|nspine3|aringill|aringill2|aringill3|dpass|dpass2|dpass3|kint|kint2|kint3|wbfade2|wbfade|wbfade3|ncara|ncara2|ncara3|wbhill|wbhill2|wbhill3|fdrd|fdrd2|fdrd3|spine|spine2|spine3|dust|dust2|dust3|gfor|gfor2|gfor3|blands|blands2|blands3|southtv|southtv2|southtv3|ngfor|ngfor2|ngfor3|northtv|northtv2|northtv3|glancour|maerone|maerone2|maerone3|banditsh|twist|twist2|twist3|lug|spidercodes13|slspath|slspath2|slspath3|orch|orch2|orch3|camp|camp2|camp3|liz|liz2|liz3|sm|sm2|sm3|endsnake|end2|endcave|blpass|blpass2|blpass 3|northwb|northwb2|northwb3|splizards|splizards2|splizards3|spreds|spreds2|spreds3|scorps|crackedslab|scorps3|livfor|livfor2|livfor3|sh|sh2|sh3|ants|ants2|ants3|imre|imre2|imre3|crh|crh2|crh3|aiel|aiel2|aiel3|aiel4|aiel5|aiel6|sstrong|sstrong2|sstrong3|nkeep|nkeep2|nkeep3|lithe|4trees|ekand3|hut|waterwall|rocks|sekand4|bears|none|nest|southsettle|southsettle2|southsettle3|ssaldaea|ssaldaea2|ssaldaea3|sunpalace|sunpalace2|sunpalace3|df|df2|df3|hollow|spiders3|spiders|sfdrd|sfdrd2|sfdrd3|settle|settle2|settle3|rene|rene2|rene3|dkrd|dkrd2|dkrd3|bvall|bvall2|bvall3|hillkand|hillkand2|hillkand3|swsh|swsh2|swsh3|northsg|northsg2|northsg3|northcut|northcut2|northcut3|bltunnel|bltunnel2|bltunnel3|northls|northls2|northls3|maradon|maradon2|maradon3|dhs|dhs2|dhs3|arafel|arafel2|arafel3|rhahime|rhahime2|rhahime3|gorthel|gorthel2|gorthel3|wdog|wdog2|wdog3|twist4|twist5|twist6|legion|legion2|legion3|negf|negf2|negf3|kreeza|kreeza2|kreeza3|nblackhills|nbl ackhills2|nblackhills3|sdfort|sdfort2|sdfort3|wdkrd|wdkrd2|wdkrd3|sdfort4|sdfort5|sdfort6|sedfort|sedfort2|sedfort3|spidercodes7|spidercodes8|spidercodes9|tvcairrd|tvcairrd2|tvcairrd3|tvcairrd4|necair1|necair2|necair3|northcair1|northcair2|northcair3|newmaze1|newmaze2|newmaze3}
#TRIGGER {- ~[(&32)~] - somewhere} {
#IF (%item( @SpidersTable, @SpidersPos) <> "none") {
#SAY Assigned %1 to %item( @SpidersTable, @SpidersPos)
#ALIAS %item( @SpidersTable, @SpidersPos) {fade %1} {FadeScript|SpiderAliases}
}
#ADD SpidersPos 1
#IF (@SpidersPos > %numitems( @SpidersTable)) {#T- {FadeScript|Spiders}}
}
#TRIGGER {- ~[(&36)~] - somewhere} {
#IF (%item( @SpidersTable, @SpidersPos) <> "none") {
#SAY Assigned %1 to %item( @SpidersTable, @SpidersPos)
#ALIAS %item( @SpidersTable, @SpidersPos) {fade %1} {FadeScript|SpiderAliases}
}
#ADD SpidersPos 1
#IF (@SpidersPos > %numitems( @SpidersTable)) {#T- {FadeScript|Spiders}}
}
#TRIGGER {- ~[(&28)~] - somewhere} {
#IF (%item( @SpidersTable, @SpidersPos) <> "none") {
#SAY Assigned %1 to %item( @SpidersTable, @SpidersPos)
#ALIAS %item( @SpidersTable, @SpidersPos) {fade %1} {FadeScript|SpiderAliases}
}
#ADD SpidersPos 1
Top

Posted by Seancho   (5 posts)  Bio
Date Reply #2 on Tue 15 Jan 2013 08:21 AM (UTC)
Message
#IF (@SpidersPos > %numitems( @SpidersTable)) {#T- {FadeScript|Spiders}}
}
#CLASS 0
#CLASS {FadeScript|WBFade} {disable}
#VAR WBFadeTable {caem|4k|4k2|4k3|braem|braem2|braem3|rolands|rolands|rolands|drfade|devride|caralain|caralain2|caralain3|whalley|whattic|whponies|tf|tf|tf3|althor|ef|waterwood|waterwood2|obscure|bhills2|bhills3|lich|wbfadeblank1|wbfadeblank2|wbfadeblank3|sef|sef2|sef3|fbraem|fbraem2|fbraem3|stf|stf2|stf3|ebaerlon|ebaerlon2|ebaerlon3|ncaem|ncaem2|ncaem3|hobrion|longbottom|noose|noose2|touchan|touchan2|touchan3|wtv|wtv2|wtv3|rootlet|rootlet2|rootlet3|wwb|wwb2|wwb3|kdag|kdag2|kdag3|insidetv|insidetv2|insidetv3|lug|lug2|lug3|wmist|wmist2|wmist3|aringill|aringill2|aringill3|kint|kint2|king3|wbfade2|wbfade|wbfade3|ncara|ncara2|ncara3|volcano|volcano2|volcano3|dfo|dfo2|dfo3|sbraem|sbraem2|sbraem3|ragnor|ragnor2|ragnor3|plmiss|plmiss2|plmiss3|fdrd|fdrd2|fdrd3|mirk|mirk2|mirk3|wasteent|wasteent2|wasteent3|westlug|dust|dust2|dust3|sgf|sgf2|sgf3|gf|gf2|gf3|shady|shady2|shady3|westtv|westtv2|westtv3|maredo|maredo2|maredo3|ttc|ttc2|ttc3|ntv|ntv2|ntv3|glancour|maerone|maerone2|maerone3|namador|namador2|namador3|eastef|eastef2|eastef3|banditsh|BE|BE2|BE3|twist|twist2|twist3|lug|elug|tearfade|tearfade2|tearfade3|liz|liz2|liz3|tall|tall2|tall3|nwb|nwb2|nwb3|splizards|splizards2|splizards3|spreds|spreds2|spreds3|scorps|crackedslab|scorps3|lf|lf2|lf3|ants|ants2|ants3|crh|crh2|crh3|aiel|aiel2|aiel3|almoth|almoth2|almoth3|kl|twist4|twist5|hut|waterwall|cannibals2|cannibals|bears|none|nest|southsettle|southsettle2|southsettle3|heart|heart2|heart3|sunpalace|sunpalace2|sunpalace3|mayene|hollow|spiders3|spiders|brfade|brfade2|brfade3|settle|settle2|settle3|katar|katar2|katar3|aradmtn|aradmtn2|aradmtn3|aradpat|aradpigs|arad3|mistmtn|mistmtn2|mistmtn3|arad4|kswamp|kswamp2|kswamp3|ashen|ashen2|ashen3|mayene2|mayene3|mayene4|slug|slug2|slug3|slug4|illrd|illfade|illfade2|illn|ill2|ill3|illrd4|illrd5|illrd6|northcut|northcut2|northcut3|maradon|maradon2|dhs|dhs2|dhs3|arafel|arafel2|arafel3|westwh2|westwh3|westwh|rhahime|rhahime2|rhahime3|gorthel|gorthel2|gorthel3|wdog|wdog2|wdog3|twist4|twist5|twist6|legion|legion2|legion3|negf|negf2|negf3|kreeza|kreeza2|kreeza3|srhahime|srhahime2|srhahime3|illpalace|illpalace2|illpalace3|nremen|fm|sharaent|sharaent2|tvcairrd|tvcairrd2|tvcairrd3|tvcairrd4|tvcairrd5|swfm|swfm2|gwall|gwall2|gwallfade|gwallfade2|gwallfade3|greatvines|greatvines2|gardengate|sedr|sedr2|sedr3|passgate|passgate2|passgate3|neillian|neillian2|neillian3|nebe|nebe2|chachin}
#VAR WBFadePos {325}
#TRIGGER {- ~[(&32)~] - somewhere} {
#IF (%item( @WBFadeTable, @WBFadePos) <> "none") {
#SAY Assigned %1 to %item( @WBFadeTable, @WBFadePos)
#ALIAS %item( @WBFadeTable, @WBFadePos) {fade %1} {FadeScript|WBFadeAliases}
}
#ADD WBFadePos 1
#IF (@WBFadePos > %numitems( @WBFadeTable)) {#T- {FadeScript|WBFade}}
}
#TRIGGER {- ~[(&36)~] - somewhere} {
#IF (%item( @WBFadeTable, @WBFadePos) <> "none") {
#SAY Assigned %1 to %item( @WBFadeTable, @WBFadePos)
#ALIAS %item( @WBFadeTable, @WBFadePos) {fade %1} {FadeScript|WBFadeAliases}
}
#ADD WBFadePos 1
#IF (@WBFadePos > %numitems( @WBFadeTable)) {#T- {FadeScript|WBFade}}
}
#TRIGGER {- ~[(&28)~] - somewhere} {
#IF (%item( @WBFadeTable, @WBFadePos) <> "none") {
#SAY Assigned %1 to %item( @WBFadeTable, @WBFadePos)
#ALIAS %item( @WBFadeTable, @WBFadePos) {fade %1} {FadeScript|WBFadeAliases}
}
#ADD WBFadePos 1
#IF (@WBFadePos > %numitems( @WBFadeTable)) {#T- {FadeScript|WBFade}}
}
#CLASS 0
#CLASS {FadeScript|GarensWall} {disable}
#VAR GarensWallTable {caem|4k|4k2|4k3|braem|braem2|braem3|rolands|rolands2|rolands3|drfade|devride|caralain|caralain2|caralain3|whalley|whattic|whponies|tarenferry|tarenferry2|tarenferry3|althor|ef2|waterwood|waterwood2|garwallblank1|garwallblank2|garwallblank3|garwallblank4|ntear|ntear2|ntear3|oldrd|oldrd2|oldrd3|caemrd|caemrd2|caemrd3|northrd|northrd2|northrd3|ebaerlon|ebaerlon2|ebaerlon3|ncaem|ncaem2|ncaem3|eagles|longbottom|noose|noose2|touchan|touchan2|touchan3|westwb|westwb2|westwb3|lug|lug2|lug3|wmist|wmist2|wmist3|aringill|aringill2|aringill3|kint|kint2|kint3|wbfade2|wbfade|wbfade3|ncara|ncara2|ncara3|volcano|volcano2|volcano3|mtnking|mtnking2|mtnking3|sbraem|sbraem2|sbraem3|ragnor|ragnor2|ragnor3|plmiss|plmiss2|plmiss3|mirk|mirk2|mirk3|westlug|gfor|gfor2|gfor3|efmines|efmines2|efmines3|maredo|maredo2|maredo3|namador|namador2|namador3|inamador|inamador2|inamador3|glancour|maerone|maerone2|maerone3|amout|amout2|amout3|eastef|eastef2|eastef3|banditsh|band arpal|bandarpal2|bandarpal3|lugard|eastlug|tearrd|tearrd2|tearrd3|tallthief|tallthief2|tallthief3|northwb|northwb2|northwb3|deadwood|deadwood2|deadwood3|ants|ants2|ants3|almoth|almoth2|almoth3|tanchrd|tanchrd2|tanchrd3|katar|katar2|katar3|aradmtn|aradmtn2|aradmtn3|aradpat|aradpigs|arad3|mistmtn|mistmtn2|mistmtn3|arad4|nmayene|nmayene2|nmayene3|southlug|southlug2|southlug3|southlug4|illianrd|illianfade|illianfade2|illian|illian2|illian3|illianrd4|illianrd5|illianrx6|westwh2|westwh3|westwh|ilpalace|ilpalace2|ilpalace3|tomanhead|altara|shcoast|shcoast2|shcoast3|shcoast4|shcoast5|shcoast6|windbite|windbite2|windbite3|windbite4|windbite5|farmadding|nmayene4|nmayene5|nmayene6|samador|samador2|samador3|amaltrd|amaltrd2|amaltrd3|amwoods|amwoods2|amwoods3|altara2|altara3|altarafade|ilaltrd|ilaltrd2|ilaltrd3|alttunnel|alttunnel2|alttunnel3|altarahill|altarahill2|garwallblank7|tanchico|tanchico2|tanchico3|tanchico4|tanchico5|tanchico6|garwallblank5|garwallblank6|s outhfm|southfm2|garwall|garwall2|garwall3|garwall4|garwall5|wgarwall|wgarwall2|wgarwall3|sedevride|sedevride2|sedevride3|iltearrd|iltearrd2|iltearrd3|iltearrd4|iltearrd5|iltearrd6}
#VAR GarensWallPos {247}
#TRIGGER {- ~[(&32)~] - somewhere} {
Top

Posted by Seancho   (5 posts)  Bio
Date Reply #3 on Tue 15 Jan 2013 08:21 AM (UTC)
Message
#IF (%item( @GarensWallTable, @GarensWallPos) <> "none") {
#SAY Assigned %1 to %item( @GarensWallTable, @GarensWallPos)
#ALIAS %item( @GarensWallTable, @GarensWallPos) {fade %1} {FadeScript|GarensWallAliases}
}
#ADD GarensWallPos 1
#IF (@GarensWallPos > %numitems( @GarensWallTable)) {#T- {FadeScript|GarensWall}}
}
#TRIGGER {- ~[(&36)~] - somewhere} {
#IF (%item( @GarensWallTable, @GarensWallPos) <> "none") {
#SAY Assigned %1 to %item( @GarensWallTable, @GarensWallPos)
#ALIAS %item( @GarensWallTable, @GarensWallPos) {fade %1} {FadeScript|GarensWallAliases}
}
#ADD GarensWallPos 1
#IF (@GarensWallPos > %numitems( @GarensWallTable)) {#T- {FadeScript|GarensWall}}
}
#TRIGGER {- ~[(&28)~] - somewhere} {
#IF (%item( @GarensWallTable, @GarensWallPos) <> "none") {
#SAY Assigned %1 to %item( @GarensWallTable, @GarensWallPos)
#ALIAS %item( @GarensWallTable, @GarensWallPos) {fade %1} {FadeScript|GarensWallAliases}
}
#ADD GarensWallPos 1
#IF (@GarensWallPos > %numitems( @GarensWallTable)) {#T- {FadeScript|GarensWall}}
}
#CLASS 0
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.


13,731 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.