Difference between pages "File talk:Breakable equipment.jpg" and "Proxy Records"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
(→‎oqNpkWoecHwzmsh: new section)
 
imported>Bale
 
Line 1: Line 1:
== THIS! IS! SPAMBOT! ==
+
Proxy Records is a way for KoLmafia to pass additional information to the scripter. Many datatypes contain these proxy records. such as items, skills, effects and coinmasters. This information is referred to as proxy records because the manner of reference is similar to a field of a [[Data_Structures#Records|record]].
  
Times this page has been spammed: 3
 
  
Now we know what happens when we protect the page that spambots like. This seems to be the new spambot page. ;) --Bale 21:29, 17 August 2010 (UTC)
+
{{CodeSample|
 +
description=This is an example of how to retrieve proxy record information in a script. Notice it uses the same notation as if the item datatype is a record.|
 +
code=<syntaxhighlight>
 +
item it = $item[coffee pixie stick];
 +
print("You can buy a "+ it +" at the "+ it.seller);
 +
print(it +" will cost "+ it.spleen +" and give "+ it.adventures +" adventures.");
 +
</syntaxhighlight>}}
  
Times this page has been spammed: 5 --[[User:Bale|Bale]] 06:56, 18 August 2010 (UTC)
 
  
Times this page has been spammed: 7 --[[User:Heeheehee|Heeheehee]] 23:54, 20 August 2010 (UTC)
+
Here's an example of displaying a proxy record in the CLI. Note that it displays all fields associated with that datatype.
 +
<pre>
 +
> ash $item[coffee pixie stick]
  
Times this page has been spammed: 9 --[[User:Bale|Bale]] 19:14, 21 August 2010 (UTC)
+
Returned: coffee pixie stick
 +
plural => coffee pixie sticks
 +
descid => 936288573
 +
image => cpstick.gif
 +
levelreq => 4
 +
quality =>
 +
adventures => 5-10
 +
muscle => 0
 +
mysticality => 0
 +
moxie => 0
 +
fullness => 0
 +
inebriety => 0
 +
spleen => 4
 +
notes =>
 +
combat => false
 +
reusable => false
 +
usable => false
 +
multi => true
 +
seller => Arcade Ticket Counter
 +
buyer => none
  
Times this page has been spammed: 10 --[[User:Heeheehee|Heeheehee]] 04:13, 22 August 2010 (UTC)
+
> ash $coinmaster[Arcade Ticket Counter]
  
Times this page has been spammed: 11 (That's ridiculous. It's not even funny. Seriously it isn't)----[[User:Icon315|Icon315&#9813;]] ([[User talk:Icon315|&#9742;]]|[[Special:Contributions/Icon315|♤]]) 23:22, 23 August 2010 (UTC)
+
Returned: Arcade Ticket Counter
 +
token => ticket
 +
item => Game Grid ticket
 +
property =>
 +
available_tokens => 10
 +
buys => false
 +
sells => true
  
* You're right that it really isn't funny, but thanks to your "seriously it isn't" comment, I spit tea out my nose. So I guess it was funny after all. Either that or I just have a bad case of reverse-schadenfreude where I take delight in my own misery. --[[User:Bale|Bale]] 23:31, 23 August 2010 (UTC)
+
> ash $location[Palindome]
  
Times this page has been spammed: 12. Ok first of all, why would you spam here? Secondly, should we block this page?----[[User:Icon315|Icon315&#9813;]] ([[User talk:Icon315|&#9742;]]|[[Special:Contributions/Icon315|♤]]) 19:54, 24 August 2010 (UTC)
+
Returned: Palindome
 +
nocombats => false
 +
zone => Plains
 +
parent => Plains
 +
parentdesc => Nearby Plains
  
* NO! We should not block this page. There was another page on this wiki (whose name escapes me since it was weird) which was spammed exclusively. We didn't use that page for anything, so we deleted it every time the spambot created it. We finally decided to protect that page 3 days before this page became the new spam lightening rod. If we protected this page, the new spambot favorite page might be one that actually gets used. That would be BAD! --[[User:Bale|Bale]] 20:53, 24 August 2010 (UTC)
+
> ash $skill[empathy of the newt]
** '''(ASHRM) String Handling Routines''' or something like that? But yeah, I had originally protected the page but was convinced to unprotect it because of the cool analogy (lightning rod!). It was eventually StD who reprotected it because he got sick of the spam problem. But since it's resurfaced, we really should learn to stop protecting pages. If it spreads to a new page while this one's still unprotected, then we might consider protecting pages en masse (alternative solution, pester Fewyn to restrict editing to logged-in users only, but we'd have to wait for him to respond). But okay, it's been hit 12 times in a row without any other targets coming into sight. Guess we'll have to wait another 25 before being really sure that spambots won't target any other pages. --[[User:Heeheehee|Heeheehee]] 21:23, 24 August 2010 (UTC)
 
***Isn't there a way to make it so that only registered users can edit pages? That would keep away lots of spam bots----[[User:Icon315|Icon315&#9813;]] ([[User talk:Icon315|&#9742;]]|[[Special:Contributions/Icon315|♤]]) 22:00, 24 August 2010 (UTC)
 
***It seems that only fewyn can change [[Special:ListGroupRights|permissions]]. --[[User:Bale|Bale]] 23:49, 24 August 2010 (UTC)
 
*** Yep. "(alternative solution, pester Fewyn to restrict editing to logged-in users only, but we'd have to wait for him to respond)" --[[User:Heeheehee|Heeheehee]] 05:56, 25 August 2010 (UTC)
 
*** We try not to bother fewyn about the wiki as much as we can get away with. Not making fewyn work except for something important is one of our guiding principles. However I think that this may be important. But what does StDoodle think? --[[User:Bale|Bale]] 07:07, 25 August 2010 (UTC)
 
  
Sorry guys, been busy lately. Here's my take:
+
Returned: Empathy of the Newt
# The original "protect this page" was equal parts frustration & experiment. The experiment was fruitful, in that we learned something, but unfortunately not what we wanted to. IE it didn't stop the spam, it just moved it. So unless anyone can think of something useful to add to that process, we should think carefully about that option. (Note: this does NOT apply if the spam moves on its own to a useful page).
+
level => 8
# As mentioned above, this page isn't all that useful. I mean, yeah, kinda, but it's easy to make a new one for the content, and just leave this one here as a spam honeypot. (Plus, it's name isn't one that represents what I was trying to move the wiki away from, as the ASHRM one did.)
+
traincost => 6500
# Long-term solution would be to bug fewyn to make the changes mentioned above. I think I'm going to go ahead and do that, since we all seem to agree that it's the best idea. But I'm not going to pressure him to hurry; it looks like you guys have stayed on top of things fairly well, so no major need to have it done RIGHT NAOO.
+
class => Turtle Tamer
# I'm likely to be busy for the near-to-mid future with personal junk. (Possible divorce, ew.) From this point on, I'd like to designate Bale as being officially, 100% in charge of day-to-day operations (fewyn of course keeping the "final say," when he wants it). Thanks for all of your efforts!
+
libram => false
-- [[User:StDoodle|StDoodle]] 07:27, 25 August 2010 (UTC)
+
passive => false
 +
buff => true
 +
combat => false
 +
permable => true
  
== oqNpkWoecHwzmsh ==
+
> ash $familiar[slimeling]
  
http://www.viagra-advice.com viagra 0858 http://www.viagra-advice.com/ viagra yziavs http://www.meridiapills.com/ meridia online without prescription 387088 http://www.phentermine-hcl.org/ phentermine np 6829
+
Returned: Slimeling
 +
combat => true
 +
hatchling => squirming Slime larva
 +
image => slimeling.gif
 +
name => Princess Vina
 +
 
 +
> ash $effect[sugar rush]
 +
 
 +
Returned: Sugar Rush
 +
default => use either 1 Angry Farmer candy, 1 Tasty Fun Good rice candy, 1 Crimbo candied pecan,
 +
Crimbo fudge, Crimbo peppermint bark, 1 Breath mint
 +
note =>
 +
all => aggregate boolean [string]
 +
  use 1 Angry Farmer candy => true
 +
  use 1 Tasty Fun Good rice candy => true
 +
  use 1 Crimbo candied pecan => true
 +
  use Crimbo fudge => true
 +
  use Crimbo peppermint bark => true
 +
  use 1 Breath mint => true
 +
image => http://images.kingdomofloathing.com/itemimages/hoppedup.gif
 +
descid => 83695b70e0470a36125feca3198a16b4
 +
</pre>

Revision as of 05:06, 10 August 2011

Proxy Records is a way for KoLmafia to pass additional information to the scripter. Many datatypes contain these proxy records. such as items, skills, effects and coinmasters. This information is referred to as proxy records because the manner of reference is similar to a field of a record.


This is an example of how to retrieve proxy record information in a script. Notice it uses the same notation as if the item datatype is a record.

item it = $item[coffee pixie stick];
print("You can buy a "+ it +" at the "+ it.seller);
print(it +" will cost "+ it.spleen +" and give "+ it.adventures +" adventures.");


Here's an example of displaying a proxy record in the CLI. Note that it displays all fields associated with that datatype.

> ash $item[coffee pixie stick]

Returned: coffee pixie stick
plural => coffee pixie sticks
descid => 936288573
image => cpstick.gif
levelreq => 4
quality =>
adventures => 5-10
muscle => 0
mysticality => 0
moxie => 0
fullness => 0
inebriety => 0
spleen => 4
notes =>
combat => false
reusable => false
usable => false
multi => true
seller => Arcade Ticket Counter
buyer => none

> ash $coinmaster[Arcade Ticket Counter]

Returned: Arcade Ticket Counter
token => ticket
item => Game Grid ticket
property =>
available_tokens => 10
buys => false
sells => true

> ash $location[Palindome]

Returned: Palindome
nocombats => false
zone => Plains
parent => Plains
parentdesc => Nearby Plains

> ash $skill[empathy of the newt]

Returned: Empathy of the Newt
level => 8
traincost => 6500
class => Turtle Tamer
libram => false
passive => false
buff => true
combat => false
permable => true

> ash $familiar[slimeling]

Returned: Slimeling
combat => true
hatchling => squirming Slime larva
image => slimeling.gif
name => Princess Vina

> ash $effect[sugar rush]

Returned: Sugar Rush
default => use either 1 Angry Farmer candy, 1 Tasty Fun Good rice candy, 1 Crimbo candied pecan,
 Crimbo fudge, Crimbo peppermint bark, 1 Breath mint
note =>
all => aggregate boolean [string]
  use 1 Angry Farmer candy => true
  use 1 Tasty Fun Good rice candy => true
  use 1 Crimbo candied pecan => true
  use Crimbo fudge => true
  use Crimbo peppermint bark => true
  use 1 Breath mint => true
image => http://images.kingdomofloathing.com/itemimages/hoppedup.gif
descid => 83695b70e0470a36125feca3198a16b4