Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - sharpie

Pages: [1]
1
Stealth Client / [Python] Working with events
« on: September 19, 2018, 02:23:41 PM »
Hello! I'm trying to figure out the best way to use an event to search for enemy players and then run a function when it finds one. I thought I'd read the API and am doing it right, but my logic must be flawed.

Code: [Select]
def emergencyRecall(ID):
    if ID != Self()
        #FindType(0x0F06, Backpack()) #invis pot
        #UseObject(FindItem())
        #Wait(100)
        recallHome()

SetEventProc(evDrawGamePlayer, emergencyRecall)

I'm getting NameError: name 'evDrawGamePlayer' is not defined.

Any advice? Thanks!!

2
New member introductions /
« on: September 18, 2018, 03:26:01 PM »

3
Stealth Client / [Python] How to access the current time
« on: September 18, 2018, 02:39:06 PM »
Hi! I've been learning Stealth/Python and I've run into a snag. I can't seem to figure out how to actually make a variable with the current time. Most of the stuff in the API gives me name 'xyz' is not defined. I'm sure there's an easy way!

Ex:

I'm trying to use Now in the WaitJournalLine command.

findMsg = WaitJournalLine(Now(), endMsg + "|" + stopMsg, 25000)

Pages: [1]