Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Injection Guide *Contest Thread*
#12

no offense, but your macroingscripts are really bad... use skill; wait(x) is generally really really bad... first of all there's lag involved so you can't be sure the skill will finish during the time x. second of all, you'll need to test out how long the skill takes to finish so you can know x... almost all skills give some kind of feedback when they're finished, for example hiding you either get "You have hidden yourself well." or "You fail to hide." (or something like that), instead of using "while true; useskill hiding; wait(1200); wend" a much much better way would be:

sub hiding()
....var counter = 0
....while uo.skillval("Hiding") < 1000 # Until GM'd.
........uo.deletejournal() # So that the earlier feedback don't get involved.
........counter = 0 # Reset counter.
........uo.useskill("Hiding")
........while uo.injournal("hide") == FALSE AND uo.injournal("hidden") == FALSE AND counter < 100 # Either finish or wait 5 secs (in case something went wrong).
............wait(50) # 50*100 = 5000 ms = 5 seconds.
............counter = counter + 1
........wend
....wend
end sub

# is used for commenting in inject, which means anything behind the # won't be used in the execution. it's a good practice to comment ur scripts so u remember what u've done if u come back to it later, or to help someone else understand ur script.

this was just an example script (a damn good one! Big Grin), if ur gonna use it, dont forget to remove the dots, they were but to show the structure... and if u need any help with other scripts for certain skills, pm me.

and also, i don't like the fact that u use objects for skills like itemid and arms lore... it would be much better to use types so that u can have ANY dagger (for example) and not the specific one u need to have if u use objects... especially since these skills normally arent gm'd in one day and u usually go about and do other things before u come back to macro again.

GOOD LUCK!

[SIGPIC][/SIGPIC]


Messages In This Thread
Injection Guide *Contest Thread* - by smoke - 06-24-2009, 06:01 PM
Injection Guide *Contest Thread* - by imported_Muto - 06-24-2009, 06:08 PM
Injection Guide *Contest Thread* - by smoke - 06-24-2009, 06:11 PM
Injection Guide *Contest Thread* - by Eighty Swords - 06-25-2009, 02:57 PM
Injection Guide *Contest Thread* - by imported_LudaKrishna - 06-25-2009, 03:15 PM
Injection Guide *Contest Thread* - by smoke - 06-25-2009, 03:29 PM
Injection Guide *Contest Thread* - by smoke - 02-05-2010, 04:00 PM
Injection Guide *Contest Thread* - by imported_Hiroshima - 02-10-2010, 08:59 PM
Injection Guide *Contest Thread* - by imported_Hiroshima - 02-10-2010, 09:01 PM
Injection Guide *Contest Thread* - by imported_Hiroshima - 02-10-2010, 09:14 PM
Injection Guide *Contest Thread* - by smoke - 02-10-2010, 10:52 PM
Injection Guide *Contest Thread* - by imported_p!nk dr@g0n - 02-12-2010, 03:24 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)