Created
January 13, 2012 06:21
-
-
Save Kronos11/1604899 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All command scripts have a context that contains a reference to | |
# the object that initiated the command, the target of the command, | |
# a string containing any parameters, and finally a dictionary containing | |
# information about the command. | |
# | |
# anh.context.object | |
# anh.context.target | |
# anh.context.command_string | |
# anh.context.command_info | |
import random | |
object = context['object'] | |
target = context['target'] | |
command = context['command_string'] | |
#conceal shot | |
object.Conceal() | |
if combat.Hit(target): | |
# Apply Random Dot So this can't be done AFK | |
if random.randrange(1,99) == 99: | |
combat.AddDot(target, random.randrange(25,50)) | |
combat.RandomPoolDamage(random.randrange(35, 255)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All command scripts have a context that contains a reference to | |
# the object that initiated the command, the target of the command, | |
# a string containing any parameters, and finally a dictionary containing | |
# information about the command. | |
# | |
# anh.context.object | |
# anh.context.target | |
# anh.context.command_string | |
# anh.context.command_info | |
object = context['object'] | |
target = context['target'] | |
command = context['command_string'] | |
if object.HasConsent(target): | |
target.position = object.position | |
elif object.InGroup(target): | |
target.position = object.position | |
else: | |
SendConsentRequestMessage() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All command scripts have a context that contains a reference to | |
# the object that initiated the command, the target of the command, | |
# a string containing any parameters, and finally a dictionary containing | |
# information about the command. | |
# | |
# anh.context.object | |
# anh.context.target | |
# anh.context.command_string | |
# anh.context.command_info | |
import re | |
def rotateleft(object, degrees): | |
object.rotate(degrees) | |
return | |
rotateleft(context['object'], context['command_string']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# All command scripts have a context that contains a reference to | |
# the object that initiated the command, the target of the command, | |
# a string containing any parameters, and finally a dictionary containing | |
# information about the command. | |
# | |
# anh.context.object | |
# anh.context.target | |
# anh.context.command_string | |
# anh.context.command_info | |
import random | |
object = context['object'] | |
target = context['target'] | |
command = context['command_string'] | |
#conceal shot | |
object.Conceal() | |
if combat.Hit(target): | |
combat.RandomPoolDamage(random.randrange(35, 255)) | |
combat.RandomPoolDamage(random.randrange(35, 255)) | |
combat.RandomPoolDamage(random.randrange(35, 255)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment