-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreply_scripts
More file actions
120 lines (120 loc) · 2.46 KB
/
reply_scripts
File metadata and controls
120 lines (120 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.001">
<ScriptPackage>
<ScriptGroup isActive="yes" isFolder="yes">
<name>Reply</name>
<packageName>Reply</packageName>
<script></script>
<eventHandlerList />
<Script isActive="yes" isFolder="no">
<name>mob_name</name>
<packageName></packageName>
<script>mob_name = {
"Lairesur",
"Hrivesur",
"Thelion",
"Anak",
"Amanrandil",
"Anarwen",
"Angdil",
"Barliman",
"Celeborn",
"Ciryariel",
"Curundil",
"Celebrindal ",
"Duinhir",
"Daegil",
"Ecthelion",
"Eoghha",
"Dagnir's ghost",
"Erestor",
"Erienal",
"Elrond",
"Galadriel",
"Nordri",
"Orophin",
"Sarion",
"Sauron",
"Tom",
"ranger",
"Katerine",
"Quenaire",
"Drom",
"Sigismond",
"Janice",
"Arandir",
"Tom Bombadil",
"Thrakghash",
"Treebeard the Ent",
"Grinder",
"Hobert",
"lamp-lighter",
"The aloof hobbit",
"Harle the Hobbit",
"Harle the Hobbit (hal)",
"Beechbone the Ent",
"pCackle",
"Andalos",
"pRisneth",
"Evoques",
"Hoobert",
"Jess"
}</script>
<eventHandlerList />
</Script>
<Script isActive="yes" isFolder="no">
<name>contains</name>
<packageName></packageName>
<script>function contains(tbl, item)
for key, value in pairs(tbl) do
if value == item then return true end
end
return false
end</script>
<eventHandlerList />
</Script>
<Script isActive="yes" isFolder="no">
<name>WordsFromLine</name>
<packageName></packageName>
<script>function WordsFromLine(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={} ; i=0
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
i = i + 1
t[i] = str
end
return t
end</script>
<eventHandlerList />
</Script>
<Script isActive="yes" isFolder="no">
<name>findnth</name>
<packageName></packageName>
<script>function findnth(str, nth)
local t={} ; i=0
for word in string.gmatch(str, "%a+") do
i = i + 1
t[i] = word
end
return t[nth]
end</script>
<eventHandlerList />
</Script>
<Script isActive="yes" isFolder="no">
<name>RemoveFirstLastSymbol</name>
<packageName></packageName>
<script>function RemoveFirstLastSymbol(inputstr, sep)
local sp = string.gsub(inputstr,sep,"",1)
sp = string.reverse(sp)
sp = string.gsub(sp,sep,"",1)
--sp = string.reverse(sp)
return string.reverse(sp)
end</script>
<eventHandlerList />
</Script>
</ScriptGroup>
</ScriptPackage>
</MudletPackage>