Author Topic: Need help with my first script ever  (Read 1850 times)

0 Members and 1 Guest are viewing this topic.

Offline warrenottoTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • warrenotto has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Need help with my first script ever
« on: September 03, 2013, 07:54:48 PM »
0
Super simple script i made to cast consecrate weapon every 10 seconds so i can loop it separate from my razor targeting macro.

anyways basically what i want it to do is cast consecrate weapon on a loop with a hotkey to turn it on and off. heres what i pulled together so far. just cant figure out how to make it loop:

onHotKey 0
   gosub hotkey

sub hotkey
{
event macro 15 203
wait 150
return sub hotkey



Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: Need help with my first script ever
« Reply #1 on: September 04, 2013, 05:23:05 AM »
0
Code: [Select]
set %1 0
set %spellTimer #scnt

repeat
onHotKey 0
  gosub Toggle
if ( ( %1 = 1 ) && %spellTimer < #scnt )
   gosub CWep
  
while #charghost = yes
   wait 10
until #CLICNT = 0

sub Toggle
if %1 = 0
{
   set %1 1
   event sysMessage Casting Enabled!
}
else
{
   set %1 0
   event sysMessage Casting Disabled!
}
return

sub CWep
    event macro 15 203
    set %spelltimer #scnt + 10
    wait 5
return

Should suffice, nothing too fancy. Should be a good grounding to learn from :>
« Last Edit: September 04, 2013, 05:33:09 AM by dxrom »



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Offline warrenottoTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • warrenotto has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Need help with my first script ever
« Reply #2 on: September 04, 2013, 09:10:58 AM »
0
Thanks Bud. ill study it a bit tonight and give it a go.

shits kinda fun when you get something to work.  :D

you shoulda seen how excited i got when i hit play on event macro 15 203 and my character responded. lol.

« Last Edit: September 04, 2013, 05:30:33 PM by warrenotto »

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Need help with my first script ever
« Reply #3 on: September 07, 2013, 08:51:45 AM »
0
Thx dxrom     

 Been trying to get something similar to work.  Without future adieu: good work is reward by more work.

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: Need help with my first script ever
« Reply #4 on: September 07, 2013, 01:46:00 PM »
0
No problem :>



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Tags: