Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <class name="areapk" id="2375">
- <alias name="whopk" language="Lua" id="2376">
- <value>--dono how you will get this info in mush :P
- local low = zs.gmcp.char.status.level-10
- local high = zs.gmcp.char.status.level+10
- if 1>low then
- low = 1
- end
- if high>201 then
- high = 201
- end
- send("clantags")
- send("swho 12 "..low.." "..high.." clan area")
- zs.getclass("clantriggers").enabled = 1 --enables</value>
- </alias>
- <alias name="setclan" language="Lua" id="2377">
- <value>clanpk={}
- local clan=zs.param(1)
- if clan==nil then
- print("You need to input the name of a clan")
- else
- clanpk.myclan=clan
- print("Clan set to: "..clan)
- end</value>
- </alias>
- <alias name="getpklist" language="Lua" id="2378">
- <value>clanstatus={}
- zs.getclass("pkpagesize").enabled = 1 --enables the class pkpagesize
- send("pagesize")</value>
- </alias>
- <class name="clanallies" enabled="false" id="2379">
- <trigger name="test1" priority="62200" language="Lua" id="6220">
- <pattern>^(%w)%s(%w)%s%d:%d%s(%w)*</pattern>
- <value><![CDATA[local clan = zs.param(1)
- local status = zs.param(2)
- local nopk={"Seekers","Bard","Tao","Tanelorn","Gaardian","Touchstone","Crusader"}
- if status=="allied" then
- clanstat="<color teal>Allied</color>"
- elseif status=="friendly" then
- clanstat="<color cyan>Friendly</color>"
- elseif status=="hostile" then
- clanstat="<color red>HOSTILE!!!!</color>"
- elseif status=="neutral" then
- clanstat="<color white>Neutral</color>"
- elseif status=="none" then
- clanstat="<color white>Neutral</color>"
- end
- clanstatus[clan]=clanstat
- if string.lower(clan)=="rogues" then
- for k,v in pairs(nopk) do
- clanstatus[v]="<color white>No Pk :(</color>"
- end
- clanstatus[clanpk.myclan]="<color yellow>Clanmember</color>"
- zs.getclass("clanallies").enabled = 0 --disables the class
- send("pagesize "..clanpk.pagesize)
- end]]></value>
- <notes><![CDATA[#local $clanstat
- // %1 == clan, %2 == our status, %3 == their status
- #switch (%2)
- ("allied") {$clanstat="<color teal>Allied</color>"}
- ("friendly") {$clanstat="<color cyan>Friendly</color>"}
- ("hostile") {$clanstat="<color red>HOSTILE</color>"}
- ("neutral") {$clanstat=neutral}
- ("none") {$clanstat=neutral}
- {$clanstat=something went wrong}
- #addkey clanstatus %1 $clanstat
- #if (%lower(%1)=="rogues") {
- #forall "seekers|bard|tao|tanelorn|gaardian|touchstone" {#addkey clanstatus %i "No PK :("}
- #addkey clanstatus boot "<color green>Clan</color><color white>Member</color>"
- #t- clanallies
- }]]></notes>
- </trigger>
- </class>
- <class name="clantriggers" enabled="false" id="2381">
- <trigger priority="24160" language="Lua" id="2416">
- <pattern>^Players invis: ~[*~], Max on ever: ~[*~]</pattern>
- <value>send("clantags")
- zs.getclass("clantriggers").enabled = 0 --disables</value>
- </trigger>
- <trigger priority="1" language="Lua" id="6219">
- <pattern>~[({@clanstatus})~]</pattern>
- <value>local clan=zs.param(1)
- local status=clanstatus[clan]
- zs.substitute(status.."-"..clan)</value>
- </trigger>
- </class>
- <class name="pkvars" id="2417">
- <var name="clanstatus" type="StringList" sorted="1" id="6221">
- <value>Amazon|Baal|bard|boot|Cabal|Chaos|Crimson|Daoine|Doh|Dominion|Dragon|Druid|Emerald|gaardian|Hook|Imperium|Light|Loqui|Masaki|Perdition|Pyre|Retribution|Rhabdo|Rogues|Romani|seekers|Shadokil|tanelorn|tao|touchstone|Twinlobe|Vanir|Watchmen|Wolf|Xunti</value>
- <json>["Amazon","Baal","bard","boot","Cabal","Chaos","Crimson","Daoine","Doh","Dominion","Dragon","Druid","Emerald","gaardian","Hook","Imperium","Light","Loqui","Masaki","Perdition","Pyre","Retribution","Rhabdo","Rogues","Romani","seekers","Shadokil","tanelorn","tao","touchstone","Twinlobe","Vanir","Watchmen","Wolf","Xunti"]</json>
- </var>
- </class>
- <class name="pkpagesize" enabled="false" id="7058">
- <trigger priority="70590" language="Lua" id="7059">
- <pattern>^You currently display (%d) lines per page.</pattern>
- <value>clanpk.pagesize=30
- send("pagesize 0")
- zs.getclass("clanallies").enabled = 1 --enables the class clanallies
- send("clanall")
- zs.getclass("pkpagesize").enabled = 0</value>
- </trigger>
- <trigger priority="70600" language="Lua" id="7060">
- <pattern>^You do not page long messages.</pattern>
- <value>clanpk.pagesize=0
- zs.getclass("clanallies").enabled = 1 --enables the class clanallies
- send("clanall")
- zs.getclass("pkpagesize").enabled = 0</value>
- </trigger>
- </class>
- <alias name="pkhelp" language="Lua" id="7061">
- <value>print("not pretty but quick helpfile")
- print("setclan <clanname> sets what clan you are in")
- print("getpklist - updates the list if your clanallies change")
- print("whopk - sends a swho 12 -10 +10 clan area")</value>
- </alias>
- </class>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement