Located under repo https://github.com/unisharpUO/StealthUO-Scripts
DancerDojo.py
helpers.py
py_stealth
DancerDojo Example:
This script will sit within given coordinates, use Honor virtue and kill Fan Dancers, alert when a player is near, use confidence when needed, use primary ability when plenty of mana is available, loot corpses for +20 splintering non-cursed non-antique weapons. It also insures the item.
Line 14 DancerDojo.py (commented)
Code: Select all
# entrance 79, 97, 326, 344 - bloodyroom 104, 115, 640, 660
There are 2 coordinate checks:
Line 101 DancerDojo.py
Code: Select all
if 79 <= GetX(_monsters[0]) <= 97 and\
326 <= GetY(_monsters[0]) <= 344:
Line 128 DancerDojo.py
Code: Select all
if 79 <= GetX(_corpse) <= 97 and\
326 <= GetY(_corpse) <= 344:
LOOTING:
This is rather easy to change.
Code: Select all
def LootCorpse(_corpse):
UseObject(_corpse)
Wait(1500)
_lootList = NewFind([0xFFFF], [0xFFFF], [_corpse], True)
for _loot in _lootList:
_tooltipRec = GetTooltipRec(_loot)
if GetParam(_tooltipRec, 1112857) >= 20 and not\
ClilocIDExists(_tooltipRec, 1152714) and not\
ClilocIDExists(_tooltipRec, 1049643):
AddToSystemJournal(f'Looting Item: {_loot}')
MoveItem(_loot, 1, LootBag, 0, 0, 0)
InsureItem(_loot)
return
You can pull codes from here: https://github.com/unisharpUO/XScript/b ... ributes.cs and here https://github.com/unisharpUO/XScript/b ... ensions.cs and here https://github.com/unisharpUO/XScript/b ... ributes.cs
With this information you should be able to easily create your own loot filters.
HEALING:
The only method I added was for confidence:
Line 115 DancerDojo.py
Code: Select all
if GetHP(Self()) <= 90 and not Confidence:
Cast('Confidence')
Code: Select all
def OnClilocSpeech(_param1, _param2, _param3, _message):
global Confidence
if 'exude' in _message:
Confidence = True
elif 'wanes' in _message:
Confidence = False
return
I'll add more areas upon request.