Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Cast Vorti

Only for requests.
Post Reply
FrostByghte
Posts: 2
Joined: 15.08.2014 0:24

Cast Vorti

Post by FrostByghte »

hey guys i want a mini scipt. İ want my mage char cast vorti two step in front of him. Please help.
nah nah
Developer
Developer
Posts: 414
Joined: 13.07.2011 11:23
Contact:

Re: Cast Vorti

Post by nah nah »

Code: Select all

def vortex():
    dirs = {0: (-2, 0), 1: (-2, 2), 2: (0, 2), 3: (2, 2),
            4: (2, 0), 5: (2, -2), 6: (0, -2), 7: (-2, -2)}
    x, y = dirs[PredictedDirection()]
    z = GetSurfaceZ(x, y, WorldNum())
    WaitTargetXYZ(PredictedX() + x, PredictedY() + y, z)
    Cast('Energy Vortex')
FrostByghte
Posts: 2
Joined: 15.08.2014 0:24

Re: Cast Vorti

Post by FrostByghte »

sorry but i dont ever use this client so can u explain me how it works?
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: Cast Vorti

Post by Vizit0r »

nah-nah using mega-optimized python things ))
char can have 8 direction (from 0 to 7). Depends of char direction, x and y taken from this const array. Z is land z.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
nah nah
Developer
Developer
Posts: 414
Joined: 13.07.2011 11:23
Contact:

Re: Cast Vorti

Post by nah nah »

Vizit0r wrote:nah-nah using mega-optimized python things ))
это какой-нибудь делфийский стёб? :lol:
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: Cast Vorti

Post by Vizit0r »

поржал малеха))
на самом деле динамическое определение координат тут нафиг не надо, имхо, и только запутало автора)
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Post Reply