Yoko
http://forum.yoko.com.ua/

Cast spell cript
http://forum.yoko.com.ua/viewtopic.php?f=3&t=12065
Page 1 of 1

Author:  Rygi [ 2007-06-09 18:33:46 ]
Post subject:  Cast spell cript

hey anyone can help to creat script to cast spell in pvp like ,exec Fireball i need with last target nad target self. Who wont help me pleas contact me in msn Legardking@hotmail.com or write in post .

Author:  d0cK [ 2007-06-10 16:06:15 ]
Post subject: 

mhmhm dunno if it fit exactly ur mind, but i use it with my tank n my battle, that's a part of my autoload as example:



#### Tank ####

VAR delay_fisso = -300
VAR delay_post = 200
VAR delay_targ = 200
VAR delay_1 = delay_fisso + 100
VAR delay_2 = delay_fisso + 1000 # 2nd circle
VAR delay_3 = delay_fisso + 1500 # 3th circle
VAR delay_4 = delay_fisso + 2000 # 4th circle
VAR delay_5 = delay_fisso + 2500 # ....
VAR delay_6 = delay_fisso + 3000 # ....
VAR delay_7 = delay_fisso + 3500 # ...
VAR delay_8 = delay_fisso + 4000 # ..
################



SUb Arrow()
Uo.Exec("arm 2; cast 'Magic Arrow'")
Wait (800)
UO.Exec("arm 1")
End Sub

SUb Heal()
Uo.Exec("arm 2; cast 'Heal'")
Wait (800)
UO.Exec("arm 1")
End Sub

Sub Reflect()
Uo.Exec("arm 2; cast 'Magic Reflection'")
Wait (delay_post)
Uo.Exec("arm 1")
Wait (delay_5)
Uo.Exec("arm 2")
Wait (delay_targ)
Uo.Exec("arm 1")
End Sub

Sub Froze()
Uo.Exec("arm 2; cast 'Paralyze'")
Wait (delay_post)
Uo.Exec("arm 1")
Wait (delay_5)
Uo.Exec("arm 2")
Wait (delay_targ)
Uo.Exec("arm 1")
End Sub

Sub Gate()
Uo.Exec("arm 2; cast 'Gate Travel'")
Wait (delay_post)
Uo.Exec("arm 1")
Wait (delay_7)
Uo.Exec("arm 2")
Wait (delay_targ)
Uo.Exec("arm 1")
End Sub







i think u can add on top of each sub
uo.exec("waittargetobject [object]")
for the last/self target (combo with the uo.getid maybe for the last target)
n cut&past the rest if ur shard have "spell channeling" weps

Hope u can find something usefull :P

Author:  Rygi [ 2007-06-10 16:34:52 ]
Post subject: 

bat when i clik run function i have execute 15 line 15 function not found-main

Author:  d0cK [ 2007-06-10 22:15:54 ]
Post subject: 

u haven't to run a function main u just need to set , for example, from the game option macro


F1

Action
say ,exec Heal



where heal is 1 of the name of the sub u previusly prepare for ur spell n it will worck ;)

Author:  Rygi [ 2007-06-11 15:33:15 ]
Post subject: 

i do macro in game and when i clik key i have next error execute 32 line 32
function not found-heal

Author:  d0cK [ 2007-06-12 13:27:24 ]
Post subject: 

u need to load a script with that macro, for example take ur autoload n copy n paste the code i wrote before, u need to have that code in the script u have loaded in order to use the ,exec sub

Author:  Rygi [ 2007-06-12 20:26:22 ]
Post subject: 

Its realy hard to set I have lot problems :P
DocK pleas contact to me in msn Legardking@hotmail.com or messages in site

Author:  Rygi [ 2007-06-18 09:37:20 ]
Post subject: 

All spell i must give to one script and next add spell in macro option or one script one spell ??

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/