Recent Posts

Pages: [1] 2 3 ... 10
1
i want 't very much, can I ?

You need to follow the site rules in order to download things. I would go to the new member introductions and look at examples and make a good introduction.
2
i want 't very much, can I ?
3
Razor Enhanced / Skill Trainers
« Last post by jtw1984 on October 12, 2018, 06:06:03 AM »
Hey guys, I've been building some basic skill trainers. I'll post them here when I finish them. Won't be too advanced, just simple trainers.

I play on a ServUO server FYI.


Post Merge: October 12, 2018, 06:07:05 AM
Stealing

Code: [Select]
# Buy 20 empty bottles and a packhorse
# Place the empty bottles on the packhorse
# Make sure to use Inspect Entities to change packhorse and bottles to the correct ID for your server
# Play script


packHorse = 0x00006C51
bottles = 0x0F0E

def trainStealing():
    while Player.GetSkillValue('Stealing') < 100:
        Player.UseSkill("Stealing")
        Target.WaitForTarget(10000, False)
        Target.TargetExecute(packHorse)
        Misc.Pause(10000)
        itemSerial = Items.FindByID(bottles,-1,Player.Backpack.Serial)
        if itemSerial:
            Items.Move(itemSerial,packHorse,0)
            Misc.Pause(500)

trainStealing()

Post Merge: October 12, 2018, 06:21:07 AM
Necro and Spirit Speak

Code: [Select]
def trainNecro():
    while Player.GetSkillValue('Necromancy') <= 50:
        while Player.Mana < 11:
            meditate()
        Misc.Pause(1000)
        Spells.CastNecro('Pain Spike')
        Target.SelfQueued()
        Misc.Pause(600)
       
    while Player.GetSkillValue('Necromancy') > 50 and Player.GetSkillValue('Necromancy') <= 70:
        while Player.Mana < 20:
            meditate()
        Misc.Pause(1000)
        Spells.CastNecro('Horrific Beast')
       
    while Player.GetSkillValue('Necromancy') > 70 and Player.GetSkillValue('Necromancy') <= 90:
        while Player.Mana < 20:
            meditate()
        Misc.Pause(1000)
        Spells.CastNecro('Wither')
       
    while Player.GetSkillValue('Necromancy') > 90 and Player.GetSkillValue('Necromancy') < 100:
        while Player.Mana < 20:
            meditate()
        Misc.Pause(1000)
        Spells.CastNecro('Lich Form')
               
    if Player.GetSkillValue('Necromancy') == 100:
        while Player.GetSkillValue('Spirit Speak') < 100:
            Spells.CastNecro('Curse Weapon')
            Misc.Pause(1000)
   
def meditate():
    Player.UseSkill('Meditation')
    Misc.Pause(8500)

trainNecro()

Post Merge: October 13, 2018, 06:29:39 AM
Animal Lore

Code: [Select]
loreAnimal = 0x000043E6

def trainLore():
    while Player.GetSkillValue('Animal Lore') < 100:
        Player.UseSkill("Animal Lore")
        Target.WaitForTarget(10000, False)
        Target.TargetExecute(loreAnimal)
        Gumps.WaitForGump(3644314075, 10000)
        Gumps.SendAction(3644314075, 0)
        Misc.Pause(2000)
       
trainLore()
       

4
Razor Enhanced / Re: IDOC House Scanner (OSI/FS)
« Last post by bendel on October 01, 2018, 05:10:57 AM »
work OSI/FS
5
Razor Enhanced / Re: IDOC House Scanner (OSI/FS)
« Last post by Skull on September 30, 2018, 04:53:28 PM »
Will this work on OSI? :police:
6
Stealth Client / Re: [Python] Working with events
« Last post by ZeroDX on September 24, 2018, 03:59:25 AM »
What is the purpose of the Wait(100)? I noticed it does not work if there isn't a wait.
It needs for saving some cpu time.
When I add the event in my mining script, the script will only loop through 1-2 tiles before it just stands still doing nothing. If I disable the handler, it works flawlessly. I'm wondering if the two issues are related.
Can you post the script?
7
Stealth Client / Re: [Python] Working with events
« Last post by sharpie on September 22, 2018, 02:29:50 PM »
What is the purpose of the Wait(100)? I noticed it does not work if there isn't a wait.

When I add the event in my mining script, the script will only loop through 1-2 tiles before it just stands still doing nothing. If I disable the handler, it works flawlessly. I'm wondering if the two issues are related.
8
Stealth Client / Re: [Python] Working with events
« Last post by ZeroDX on September 21, 2018, 02:22:20 PM »
Code: [Select]
def object_handler(serial):
    AddToSystemJournal('Character found!', serial=serial, graphic=GetType(serial), sep=' ', end='.')

def speech_handler(*args):
    AddToSystemJournal(*args)


def main():
    SetEventProc('evDrawObject', object_handler)
    SetEventProc('evSpeech', speech_handler)
    Connect()
    while 1:
        Wait(100)


if __name__ == "__main__":
    main()
Code: [Select]
01:20:15:950 [Demise 1]: Character found! serial=479289 graphic=400.
01:20:15:952 [Demise 1]: Character found! serial=127054 graphic=400.
01:20:15:953 [Demise 1]: Character found! serial=127053 graphic=401.
01:20:15:953 [Demise 1]: Character found! serial=9767 graphic=400.
01:20:15:954 [Demise 1]: Character found! serial=127054 graphic=400.
01:20:15:956 [Demise 1]: Character found! serial=127053 graphic=401.
01:20:15:957 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:17:695 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:17:697 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:17:698 [Demise 1]: Character found! serial=479289 graphic=400.
01:20:17:700 [Demise 1]: Character found! serial=127054 graphic=400.
01:20:17:702 [Demise 1]: Character found! serial=9767 graphic=400.
01:20:17:703 [Demise 1]: Character found! serial=51438 graphic=401.
01:20:17:704 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:17:706 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:17:707 [Demise 1]: Character found! serial=127054 graphic=400.
01:20:17:708 [Demise 1]: Character found! serial=9767 graphic=400.
01:20:19:667 [Demise 1]: Character found! serial=1616794 graphic=400.
01:20:19:690 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:19:692 [Demise 1]: Character found! serial=479289 graphic=400.
01:20:19:694 [Demise 1]: Character found! serial=127053 graphic=401.
01:20:19:695 [Demise 1]: Character found! serial=9767 graphic=400.
01:20:19:697 [Demise 1]: Character found! serial=9767 graphic=400.
01:20:19:860 [Demise 1]: Character found! serial=1616794 graphic=400.
01:20:21:685 [Demise 1]: Character found! serial=479289 graphic=400.
01:20:21:686 [Demise 1]: Character found! serial=127054 graphic=400.
01:20:21:687 [Demise 1]: Character found! serial=127053 graphic=401.
01:20:21:689 [Demise 1]: Character found! serial=51438 graphic=401.
01:20:21:690 [Demise 1]: Character found! serial=127054 graphic=400.
01:20:21:691 [Demise 1]: Character found! serial=127053 graphic=401.
01:20:23:717 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:23:719 [Demise 1]: Character found! serial=127053 graphic=401.
01:20:23:720 [Demise 1]: Character found! serial=51438 graphic=401.
01:20:23:721 [Demise 1]: Character found! serial=51438 graphic=401.
01:20:25:714 [Demise 1]: Character found! serial=479289 graphic=400.
01:20:25:716 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:25:717 [Demise 1]: Character found! serial=51438 graphic=401.
01:20:25:719 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:25:720 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:27:743 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:27:744 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:27:756 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:27:758 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:29:812 [Demise 1]: Character found! serial=479295 graphic=401.
01:20:29:813 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:29:815 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:29:816 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:29:978 [Demise 1]: Character found! serial=1616794 graphic=400.
01:20:29:980 [Demise 1]: Character found! serial=1616794 graphic=400.
01:20:30:366 [Demise 1]: Character found! serial=1616794 graphic=400.
01:20:31:811 [Demise 1]: Character found! serial=479295 graphic=401.
01:20:31:813 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:31:814 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:31:816 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:32:299 [Demise 1]: Character found! serial=479291 graphic=400.
01:20:32:301 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:32:695 [Demise 1]: Character found! serial=1616794 graphic=400.
01:20:32:857 [Demise 1]: Character found! serial=1616794 graphic=400.
01:20:33:062 [Demise 1]: Character found! serial=1616794 graphic=400.
01:20:33:842 [Demise 1]: Character found! serial=479295 graphic=401.
01:20:33:844 [Demise 1]: Character found! serial=51438 graphic=401.
01:20:35:844 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:35:846 [Demise 1]: Character found! serial=51438 graphic=401.
01:20:37:909 [Demise 1]: Character found! serial=479295 graphic=401.
01:20:37:911 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:37:912 [Demise 1]: Character found! serial=51438 graphic=401.
01:20:37:914 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:39:918 [Demise 1]: Character found! serial=479295 graphic=401.
01:20:39:920 [Demise 1]: Character found! serial=479292 graphic=400.
01:20:39:921 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:39:923 [Demise 1]: Character found! serial=51438 graphic=401.
01:20:41:975 [Demise 1]: Character found! serial=479289 graphic=400.
01:20:41:976 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:41:989 [Demise 1]: Character found! serial=479289 graphic=400.
01:20:44:042 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:44:044 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:46:106 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:48:109 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:48:111 [Demise 1]: Character found! serial=52354 graphic=401.
01:20:50:162 [Demise 1]: Character found! serial=127054 graphic=400.
01:20:50:164 [Demise 1]: Character found! serial=127054 graphic=400.
01:20:52:165 [Demise 1]: Character found! serial=50405 graphic=401.
01:20:52:166 [Demise 1]: Character found! serial=50405 graphic=401.
9
Stealth Client / Re: [Python] Working with events
« Last post by sharpie on September 21, 2018, 01:29:13 PM »
So, correct me if I'm wrong, but this should be working perfectly:

Code: [Select]
foundSomeone = False
HUMANS = [0x0190, 0x0191]

def evDrawObjectHandler(serial):
    global foundSomeone
    AddToSystemJournal(serial)
    AddToSystemJournal('Character found!', serial=serial, graphic=GetType(serial), sep=' ', end='.')
    if serial != Self() and GetType(serial) in HUMANS:
        foundSomeone = True
        SetEventProc('evDrawObject', None)  #disable the handler
        AddToSystemJournal('Stopped handler')
       
def main():
    while True:
        SetEventProc('evDrawObject', evDrawObjectHandler)
        if foundSomeone:
            AddToSystemJournal('Found someone!')
            return

main()

It's just looping and not finding anyone, the types are correct, I've double checked.
10
Stealth Client / Re: [Python] Working with events
« Last post by ZeroDX on September 20, 2018, 03:40:09 AM »
it does not break, when the handler returns control, the script continues from the same line as the handler was called
Pages: [1] 2 3 ... 10