version 1.5 | | version 1.6 |
---|
| | |
activatorname=activator.Name | | activatorname=activator.Name |
whoami=Crossfire.WhoAmI() | | whoami=Crossfire.WhoAmI() |
| | |
boardname=Crossfire.ScriptParameters() # 6 is say event | | boardname = Crossfire.ScriptParameters() |
print "Activated %s" %boardname | | if boardname: |
| | |
if (boardname): | | |
| | |
text = string.split(Crossfire.WhatIsMessage(), ' ', 1) | | text = string.split(Crossfire.WhatIsMessage(), ' ', 1) |
| | |
| | |
| | |
elif text[0] == 'remove': | | elif text[0] == 'remove': |
if len(text)==2: | | if len(text)==2: |
if board.getauthor(boardname,int(text[1]))==activatorname or activator.IsDungeonMaster: | | index = int(text[1]) |
if board.delete(boardname, int(text[1])): | | if board.getauthor(boardname, index) == activatorname or activator.DungeonMaster: |
| | if board.delete(boardname, index): |
activator.Write('Removed from %s'%boardname) | | activator.Write('Removed from %s'%boardname) |
else: | | else: |
activator.Write('Doesn\'t exist on %s'%boardname) | | activator.Write('Doesn\'t exist on %s'%boardname) |