This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Random companion pokemon macro
Post Reply
Return to board index
Post by
ashful
i used to have one but it doesn't work anymore. it would summon a random companion pet and /s "(pet's name), I choose you!"
the old one looked like this
/run t=”CRITTER”i=random(GetNumCompanions(t))c,n=GetCompanionInfo(t,i)SendChatMessage (n..”, I choose you!”)CallCompanion(t,i)
can someone make me a new one that works or show me where i can find it?
thanks
Post by
Ketho
There was this old
thread
about it
/run local t,p,r={},C_PetJournal for i=1,select(2,p.GetNumPets(false))do local a,_,b,c,_,_,_,d=p.GetPetInfoByIndex(i)if b then tinsert(t,{a,c or d})end end r=random(#t)p.SummonPetByID(t)SendChatMessage(t..", I Choose You!")
(Not sure if this still works though, or if there is a more elegant solution, since I don't play wow anymore)
Post by
ashful
it doesn't work for me.
this is what i get, sorry i have no idea what any of this kind of stuff means.
Date: 2013-03-02 22:47:56
ID: 2
Error occured in: Global
Count: 1
Message: line 1:
attempt to call field 'SummonPetByID' (a nil value)
Debug:
:1: in main chunk
: RunScript()
..\FrameXML\ChatFrame.lua:2158: ?()
..\FrameXML\ChatFrame.lua:4388: ChatEdit_ParseText()
..\FrameXML\ChatFrame.lua:4082: ChatEdit_SendText()
..\FrameXML\ChatFrame.lua:2747:
..\FrameXML\ChatFrame.lua:2740
: UseAction()
..\FrameXML\SecureTemplates.lua:275: handler()
..\FrameXML\SecureTemplates.lua:560:
..\FrameXML\SecureTemplates.lua:508
Locals:
t = <table> {
1 = <table> {
}
2 = <table> {
}
3 = <table> {
}
4 = <table> {
}
5 = <table> {
}
6 = <table> {
}
7 = <table> {
}
8 = <table> {
}
9 = <table> {
}
10 = <table> {
}
11 = <table> {
}
12 = <table> {
}
13 = <table> {
}
14 = <table> {
}
15 = <table> {
}
16 = <table> {
}
17 = <table> {
}
18 = <table> {
}
19 = <table> {
}
20 = <table> {
}
21 = <table> {
}
22 = <table> {
}
23 = <table> {
}
24 = <table> {
}
25 = <table> {
}
26 = <table> {
}
27 = <table> {
}
28 = <table> {
}
29 = <table> {
}
30 = <table> {
}
31 = <table> {
}
32 = <table> {
}
33 = <table> {
}
34 = <table> {
}
35 = <table> {
}
36 = <table> {
}
37 = <table> {
}
38 = <table> {
}
39 = <table> {
}
40 = <table> {
}
41 = <table> {
}
42 = <table> {
}
43 = <table> {
}
44 = <table> {
}
45 = <table> {
}
46 = <table> {
}
47 = <table> {
}
48 = <table> {
}
49 = <table> {
}
50 = <table> {
}
51 = <table> {
}
52 = <table> {
}
53 = <table> {
}
54 = <table> {
}
55 = <table> {
}
56 = <table> {
}
57 = <table> {
}
58 = <table> {
}
59 = <table> {
}
60 = <table> {
}
61 = <table> {
}
62 = <table> {
}
63 = <table> {
}
64 = <table> {
}
65 = <table> {
}
66 = <table> {
}
67 = <table> {
}
68 = <table> {
}
69 = <table> {
}
70 = <table> {
}
71 = <table> {
}
72 = <table> {
}
73 = <table> {
}
74 = <table> {
}
75 = <table> {
}
76 = <table> {
}
77 = <table> {
}
78 = <table> {
}
79 = <table> {
}
80 = <table> {
}
81 = <table> {
}
82 = <table> {
}
83 = <table> {
}
84 = <table> {
}
85 = <table> {
}
86 = <table> {
}
87 = <table> {
}
88 = <table> {
}
89 = <table> {
}
90 = <table> {
}
91 = <table> {
}
92 = <table> {
}
93 = <table> {
}
94 = <table> {
}
95 = <table> {
}
96 = <table> {
}
97 = <table> {
}
98 = <table> {
}
99 = <table> {
}
100 = <table> {
}
101 = <table> {
}
102 = <table> {
}
103 = <table> {
}
104 = <table> {
}
105 = <table> {
}
106 = <table> {
}
107 = <table> {
}
108 = <table> {
}
109 = <table> {
}
110 = <table> {
}
111 = <table> {
}
112 = <table> {
}
113 = <table> {
}
114 = <table> {
}
115 = <table> {
}
116 = <table> {
}
117 = <table> {
}
118 = <table> {
}
119 = <table> {
}
120 = <table> {
}
121 = <table> {
}
122 = <table> {
}
123 = <table> {
}
124 = <table> {
}
125 = <table> {
}
126 = <table> {
}
127 = <table> {
}
128 = <table> {
}
129 = <table> {
}
130 = <table> {
}
131 = <table> {
}
132 = <table> {
}
133 = <table> {
}
134 = <table> {
}
135 = <table> {
}
136 = <table> {
}
137 = <table> {
}
138 = <table> {
}
139 = <table> {
}
140 = <table> {
}
141 = <table> {
}
142 = <table> {
}
143 = <table> {
}
144 = <table> {
}
145 = <table> {
}
146 = <table> {
}
147 = <table> {
}
148 = <table> {
}
149 = <table> {
}
150 = <table> {
}
151 = <table> {
}
152 = <table> {
}
153 = <table> {
}
154 = <table> {
}
155 = <table> {
}
156 = <table> {
}
157 = <table> {
}
158 = <table> {
}
159 = <table> {
}
160 = <table> {
}
161 = <table> {
}
162 = <table> {
}
163 = <table> {
}
164 = <table> {
}
165 = <table> {
}
166 = <table> {
}
167 = <table> {
}
168 = <table> {
}
169 = <table> {
}
170 = <table> {
}
171 = <table> {
}
172 = <table> {
}
173 = <table> {
}
174 = <table> {
}
175 = <table> {
}
176 = <table> {
}
177 = <table> {
}
178 = <table> {
}
179 = <table> {
}
180 = <table> {
}
181 = <table> {
}
182 = <table> {
}
183 = <table> {
}
184 = <table> {
}
185 = <table> {
}
186 = <table> {
}
187 = <table> {
}
188 = <table> {
}
189 = <table> {
}
190 = <table> {
}
191 = <table> {
}
192 = <table> {
}
193 = <table> {
}
194 = <table> {
}
195 = <table> {
}
196 = <table> {
}
197 = <table> {
}
198 = <table> {
}
199 = <table> {
}
200 = <table> {
}
201 = <table> {
}
202 = <table> {
}
203 = <table> {
}
204 = <table> {
}
205 = <table> {
}
206 = <table> {
}
207 = <table> {
}
208 = <table> {
}
209 = <table> {
}
210 = <t
Post by
Ketho
Oh .. seems it was renamed to
SummonPetByGUID
This one should work
/run local t,p,r={},C_PetJournal for i=1,select(2,p.GetNumPets(false))do local a,_,b,c,_,_,_,d=p.GetPetInfoByIndex(i)if b then tinsert(t,{a,c or d})end end r=random(#t)p.SummonPetByGUID(t)SendChatMessage(t..", I Choose You!")
Post by
912358
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.