Cast spell cript

Ask for help

Moderators: Murderator+, Murderator

Post Reply
Rygi
Posts: 8
Joined: 2007-06-09 18:16:03
Contact:

Cast spell cript

Post 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 .
d0cK
Posts: 5
Joined: 2006-09-28 23:01:58
Contact:

Post 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
In life there's 10 types of pople, one who know the binary numerical system n the one who doesn't...
Rygi
Posts: 8
Joined: 2007-06-09 18:16:03
Contact:

Post by Rygi »

bat when i clik run function i have execute 15 line 15 function not found-main
d0cK
Posts: 5
Joined: 2006-09-28 23:01:58
Contact:

Post 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 ;)
In life there's 10 types of pople, one who know the binary numerical system n the one who doesn't...
Rygi
Posts: 8
Joined: 2007-06-09 18:16:03
Contact:

Post by Rygi »

i do macro in game and when i clik key i have next error execute 32 line 32
function not found-heal
d0cK
Posts: 5
Joined: 2006-09-28 23:01:58
Contact:

Post 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
In life there's 10 types of pople, one who know the binary numerical system n the one who doesn't...
Rygi
Posts: 8
Joined: 2007-06-09 18:16:03
Contact:

Post 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
Rygi
Posts: 8
Joined: 2007-06-09 18:16:03
Contact:

Post by Rygi »

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