|
xenapan Wanderer
Joined: 26 May 2004 Posts: 68
|
Posted: Tue Mar 07, 2006 8:43 pm
spam proofing triggers |
I play on realms of despair and run a merchant bot (it sells items using triggers). However of late, me and other similar merchant bots have been under attack from the PK community who simply hate peacefuls. Lately, my inventory has been spammed with trash which prevents the bot from working correctly. To counter that, I compile a list of typical "trash" items commonly found and added triggers to drop and sacrifice them. However, lately the PKers are back and are now spamming me in order to cause my zmud to send too many commands at the same time. Now the question is.. is there any way to fix this? (The immortals tend to be overly lenient on the rules towards the PK community because they are few in number and constantly diminishing as... well in short PK is lame on realms. So I doubt I could get any of them to take any action against these players. )
|
|
_________________ Player on Realms of Despair. realms.game.org port 4000. Join us today! |
|
|
|
alluran Adept
Joined: 14 Sep 2005 Posts: 223 Location: Sydney, Australia
|
Posted: Wed Mar 08, 2006 2:51 am |
Code: |
#if (%ismember(%lower(%1),%lower(@pkplayers))) {say If you REALLY want to deal with me, send me a personal message} {#noop merchant bot coe here} |
Harsh, i know, but this will tell all PKplayers to talk to you privately, of course you would have to populate the PKplayers list, hell, you might choose to only add spammers to the list, and leave other, friendlier PKers off it. Just a temp fix really ;)
(Aardwolf doesn't support bots at all, though trigger abbuse IS illegal there, you should try it some time, aardmud.org 4000) |
|
_________________ The Drake Forestseer |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Wed Mar 08, 2006 5:14 am |
Depending on how the MUD works you can work with your triggers to automatically dump things given by PKillers, turn off receiving items, creating a "do no business with" player list etc.
One way is to make your bot work with "high barrier entry" ie you must pay it 10000 units of money to not ignore you. |
|
|
|
xenapan Wanderer
Joined: 26 May 2004 Posts: 68
|
Posted: Wed Mar 08, 2006 5:20 pm |
alluran wrote: |
Code: |
#if (%ismember(%lower(%1),%lower(@pkplayers))) {say If you REALLY want to deal with me, send me a personal message} {#noop merchant bot coe here} |
Harsh, i know, but this will tell all PKplayers to talk to you privately, of course you would have to populate the PKplayers list, hell, you might choose to only add spammers to the list, and leave other, friendlier PKers off it. Just a temp fix really ;)
(Aardwolf doesn't support bots at all, though trigger abbuse IS illegal there, you should try it some time, aardmud.org 4000) |
see.. problem is. a) i dont want to talk with any of em. all they ever say (have ever said) is you are lame, go away, **** you, etc. in short, they dont want to discuss anything, they just find it amusing to abuse my triggers and try to stop my bot from working.
b)adding that trigger would just cause them to walk in and out of the room till my zmud sends enough commands to force the server to disconnect me. would save them time making balls of light and giving em to me/emoting it.
c) i already implemented a blacklist to my bot. maintaining a strict code of ethics, i wont even take money from people who lie, cheat (dicing and trade is not enforced by immortals so a few people get away with stealing/not paying up) and or are just generally asses.
re: TonDiening
d) see the problem isnt that my code isnt working, for instance,
#if (%ismember( %1, @nosell)) {
say @nosellmsg
give 1m1 coins %1
} {
#if (@magirobe = 0) {
say item out of stock
give 1m1 coins %1
} {
get 'magi robe' 'magician hat'
give 'magi robe' %1
drop 'magi robe'
#add magirobe (-1)
}
}
works fine. problem is, they then spam give which forces returning. then they procede to repeat the command till i spam out. |
|
_________________ Player on Realms of Despair. realms.game.org port 4000. Join us today! |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Mar 08, 2006 5:38 pm |
One idea is to is to add a limit to receive on having received an item 3 times consecutively within a given time period. You could also identify your item's and and conditions to only keep 5 of them (for example) if their value is below a certain threshold.
If you want to be extreme you can just set the bot to kill whoever tries to sell you 5 or more of the same low value item. Issue a warning for valid customers though. |
|
_________________ Asati di tempari! |
|
|
|
xenapan Wanderer
Joined: 26 May 2004 Posts: 68
|
Posted: Wed Mar 08, 2006 5:54 pm |
Tech wrote: |
One idea is to is to add a limit to receive on having received an item 3 times consecutively within a given time period. You could also identify your item's and and conditions to only keep 5 of them (for example) if their value is below a certain threshold.
If you want to be extreme you can just set the bot to kill whoever tries to sell you 5 or more of the same low value item. Issue a warning for valid customers though. |
1.actually its less a trader and more of a sellbot (people give me money, i give them items and value is not an issue.
though i guess i could turn off the triggers to drop trash, but that would leave me stuck with items that they give me while the triggers are off. but i guess that solves the problem.. sorta.
2. the extreme does not work as well. the mud is split into peaceful and deadly.. only deadlies can kill deadlies and peacefuls cannot attack anyone (only mobs)
but thanks. i guess i have an idea of how to implement it now |
|
_________________ Player on Realms of Despair. realms.game.org port 4000. Join us today! |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: Wed Mar 08, 2006 9:22 pm |
An idea is to add your action for a certain type to an alarm trigger.
#ALARM givetrigger +5 {give @giveitem to @giveperson}
No matter how much spam you receive in 5seconds from the last call of that alarm you give something.
You can use triggers to see if they actually get it for paying customers. Sometimes you an figure out emotes by MUD colors.
You can add temp black listing to people that ask the same thing 3 times or 3 things in under 10s etc. |
|
|
|
Kuga Beginner
Joined: 21 May 2005 Posts: 24
|
Posted: Wed Mar 15, 2006 8:56 pm |
xenapan wrote: |
though i guess i could turn off the triggers to drop trash, but that would leave me stuck with items that they give me while the triggers are off. but i guess that solves the problem.. sorta. |
Why don't you make a trigger that if what they give you is not gold is instantly dropped? or Drop all and use containers you can wear? If that's possible on that mud. |
|
|
|
|
|