Skip to content

Instantly share code, notes, and snippets.

@Kronos11
Created January 13, 2012 06:21
Show Gist options
  • Save Kronos11/1604899 to your computer and use it in GitHub Desktop.
Save Kronos11/1604899 to your computer and use it in GitHub Desktop.
# 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))
# 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()
# 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'])
# 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