Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7
Cast Vorti
-
- Posts: 2
- Joined: 15.08.2014 0:24
Cast Vorti
hey guys i want a mini scipt. İ want my mage char cast vorti two step in front of him. Please help.
Re: Cast Vorti
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')
-
- Posts: 2
- Joined: 15.08.2014 0:24
Re: Cast Vorti
sorry but i dont ever use this client so can u explain me how it works?
Re: Cast Vorti
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.
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.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Re: Cast Vorti
это какой-нибудь делфийский стёб?Vizit0r wrote:nah-nah using mega-optimized python things ))
Re: Cast Vorti
поржал малеха))
на самом деле динамическое определение координат тут нафиг не надо, имхо, и только запутало автора)
на самом деле динамическое определение координат тут нафиг не надо, имхо, и только запутало автора)
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".