Scripting Resources & Utilities > Razor Enhanced

Trying enhanced..... failing a bit, could use a hand

(1/2) > >>

Scorpio:
I trying to make a macro for:

set ability wirlwind
get nearest non friendly target
attack last
clear target

In the old days id set hot keys for each action in razor and record the sequence, but enhanced has alot let hot key targeting options. And i can by no means write raw new scripts lol

bendel:
Try something like this:


--- Code: ---from System.Collections.Generic import List
from System import Byte
fil = Mobiles.Filter()
fil.Enabled = True
fil.RangeMax = 10
fil.Notorieties = List[Byte](bytes([3,4]))

enemies = Mobiles.ApplyFilter(fil)
Mobiles.Select(enemies,'Nearest')
for enemy in enemies:
    if not Player.HasSpecial:
        Player.WeaponSecondarySA()
    Player.Attack(enemy)
    Target.ClearLast()
--- End code ---

Scorpio:
it works thanks! what coding type is this so i can go learn how to add pauses and simple edits?

bendel:
actually it's IronPython.

If you need another examples, don't hesitate to ask :)

Scorpio:

--- Quote from: bendel on October 27, 2018, 06:58:11 PM ---actually it's IronPython.

If you need another examples, don't hesitate to ask :)

--- End quote ---

Honestly most of what i need is simple in game macros, im decent at making small edits and fixing some easy uo scripts but that is all the proficiency i ever gained. I made my living testing scripts for people over the years lol But all my buddies seem to have quit the game and do not want to make me scripts anymore :P

That being said if anyone is looking for challenges i have some ideas and alot of minor macros i need lol


The major one i would like to see is for tmapping. Its out of my league though, way out. Basically on osi the new tmap system gives you about a 10x10 or 11x11(ill go walk off the distance tonight) and you have to dig around every tile. I went and trained mining for the 4tile bonus because i would forget wich tiles i had tried. and dropping items on all those tiles got very time consuming. But mining on my build crippled me quite substantially(took the place of my eval and renders my 148 sdi suit useless) basically all it would need to do is walk the small area digging until it found the chest. This little gem would be widely beneficial for many tmappers in the new system. My idea was to always start it on one of the corners of the section and systematically try to dig using map(would require people to only have one map in their main backpack at a time), so if anyone wants to take on this task let me know and ill test it lol

Navigation

[0] Message Index

[#] Next page

Go to full version