Page 1 of 1

Cast spell cript

Posted: 2007-06-09 18:33:46
by Rygi
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 .

Posted: 2007-06-10 16:06:15
by d0cK
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

Posted: 2007-06-10 16:34:52
by Rygi
bat when i clik run function i have execute 15 line 15 function not found-main

Posted: 2007-06-10 22:15:54
by d0cK
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 ;)

Posted: 2007-06-11 15:33:15
by Rygi
i do macro in game and when i clik key i have next error execute 32 line 32
function not found-heal

Posted: 2007-06-12 13:27:24
by d0cK
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

Posted: 2007-06-12 20:26:22
by Rygi
Its realy hard to set I have lot problems :P
DocK pleas contact to me in msn Legardking@hotmail.com or messages in site

Posted: 2007-06-18 09:37:20
by Rygi
All spell i must give to one script and next add spell in macro option or one script one spell ??