Author Topic: looking for Simple Magery script...  (Read 3935 times)

0 Members and 1 Guest are viewing this topic.

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
looking for Simple Magery script...
« on: December 16, 2013, 03:28:39 AM »
0
Hi there,

I was wondering if there is a simple script around which alowes to combine two spells with a timer...

E.g. -casting Energy vortex
      - casting second energy vortex
      - Hide yourself by spell
      - As soon as energy vortex decays recast
      - Hide again

Im aware that this is most probably pretty simple to write so I wondered if there is allready something like this around.

greetings, Nuscheltier
 

Offline Sulter

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • Sulter has no influence.
  • Respect: +1
  • Referrals: 1
    • View Profile
Re: looking for Simple Magery script...
« Reply #1 on: December 16, 2013, 04:37:04 AM »
0
check the script libary for the script for hunting silver serpents. It does just what you asked for

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: looking for Simple Magery script...
« Reply #2 on: December 16, 2013, 06:04:51 AM »
0
hi there, do you mean the silver afk farmer? Because thats with a tamer and a cu side...

Offline Sulter

  • Jr. Member
  • **
  • Posts: 37
  • Activity:
    0%
  • Reputation Power: 0
  • Sulter has no influence.
  • Respect: +1
  • Referrals: 1
    • View Profile
Re: looking for Simple Magery script...
« Reply #3 on: December 17, 2013, 09:35:30 AM »
0
No there is a script for a mage that cast 2 EV where you tell it to and then invises you untile you can cast another EV

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: looking for Simple Magery script...
« Reply #4 on: December 17, 2013, 10:21:46 AM »
0
I have written such a script numerous times and its not that hard as u surmised....  If i still had the code i would post it but no longer have it... but it would be a great script for you to start on....

A few tips... detemine when to caste an ev by looking at how many followers you have.   Heres a simple script outline .. just fill in the 2 subs with the needed code

Code: [Select]
repeat
  While #Followers < 5     
      gosub CasteEV
  Gosub HideMe
until #charghost = yes
halt

sub CasteEV
  ; some code here
return

sub HideMe
  ; some code here
return
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: looking for Simple Magery script...
« Reply #5 on: December 17, 2013, 01:33:10 PM »
0
@Sutler... sorryI just couldnt find it...
@Endless night... I worked my way round somehow, but the problem now is that I dont know how to target the place to release the e vortex

Code: [Select]
                   repeat
  While #Followers < 5
      gosub CasteEV
  Gosub HideMe
until #charghost = yes
halt

sub CasteEV
  event Macro 15 57
  wait 5s
  event Macro 15 57
return

sub HideMe
    event macro 15 43
    target self
wait 120s
return
« Last Edit: December 17, 2013, 01:53:38 PM by Nuscheltier »

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: looking for Simple Magery script...
« Reply #6 on: December 18, 2013, 06:46:40 AM »
0
For Targetting you could try something like


Code: [Select]
 set #LTARGETX #charposx + 2
  set #LTARGETY #charposy + 2
  set #LTARGETZ #CHARPOSZ
  set #LTARGETKIND 2
  event macro 22 0


By the way thiers now such command as "target self"...  you have to wait for target and then issue an event macro ?? ??   look it up in wiki   http://wiki.easyuo.com/index.php/Documentation?sid=6b3a231986c7f5fd36435e1c93484940
« Last Edit: December 18, 2013, 06:50:30 AM by Endless Night »
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: looking for Simple Magery script...
« Reply #7 on: December 18, 2013, 07:49:43 AM »
0
hi there, first of all thanks for your patience not really getting this targeting... It casts and casts but the EVs never appear... well sometimes they to appear but rarely

Code: [Select]
                              repeat
  While #Followers < 5
      gosub CasteEV
  Gosub HideMe
until #charghost = yes
halt

sub CasteEV
  event macro 25 0
  event Macro 15 57
  wait 2s
  set #LTARGETX #charposx + 4
  set #LTARGETY #charposy + 4
  set #LTARGETZ #CHARPOSZ
  set #LTARGETKIND 2
  event macro 22 0
  wait 4s
  event macro 25 0
  event Macro 15 57
  wait 2s
  set #LTARGETX #charposx + 2
  set #LTARGETY #charposy - 2
  set #LTARGETZ #CHARPOSZ
  set #LTARGETKIND 2
  event macro 22 0
return

sub HideMe
    event macro 25 0
    event macro 15 43
    event macro 23 0
wait 120s
return


greetings Nuscheltier
« Last Edit: December 18, 2013, 08:00:05 AM by Nuscheltier »

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: looking for Simple Magery script...
« Reply #8 on: December 18, 2013, 10:44:12 AM »
0
Rember the golden rule... write your script to follow the actions you would do manually.

event macro 25 0    = wait for target  .. try using this http://wiki.easyuo.com/index.php?title=Target


Now ask yourself when you caste a spell manually do you wait for a Target PRIOR  to clicking on the spell caste icon ????

Well if you did you would be waiting forever wouldnt you.....  first you caste the spell .. then you wait for a target cursor then you target the item person object or ground...

So thats 3 steps .. caste spell, wait for target cursor,  select a target  done in that order... which is not what you are doing.

Just play with this segment until you get it working then slot it into the rest of the script

Code: [Select]
event macro 25 0
  event Macro 15 57
  wait 2s
  set #LTARGETX #charposx + 4
  set #LTARGETY #charposy + 4
  set #LTARGETZ #CHARPOSZ
  set #LTARGETKIND 2
  event macro 22 0
halt
« Last Edit: December 18, 2013, 10:46:14 AM by Endless Night »
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline NuscheltierTopic starter

  • Jr. Member
  • **
  • Posts: 38
  • Activity:
    0%
  • Reputation Power: 1
  • Nuscheltier has no influence.
  • Respect: +4
  • Referrals: 0
    • View Profile
Re: looking for Simple Magery script...
« Reply #9 on: December 19, 2013, 06:30:48 AM »
0
Hei there,

well thank you alot for your help I finally made it :) sometime it stucks due to trying to cast twice the spell at the same time (Ithink 3s should be enought waiting time)...but what ever :) it works!
Thanks alot for your patience and your explenations :)

P.s. is there a way to check if Im really hidden?

Code: [Select]
                                      repeat
  While #Followers < 5
      gosub CasteEV
  Gosub HideMe
until #charghost = yes
halt

sub CasteEV
  event Macro 15 57
  target 3s
  set #LTARGETX #charposx + 2
  set #LTARGETY #charposy + 2
  set #LTARGETZ #CHARPOSZ
  set #LTARGETKIND 2
  event macro 22 0
  wait 3s
  event Macro 15 57
  target 3s
  set #LTARGETX #charposx + 2
  set #LTARGETY #charposy - 2
  set #LTARGETZ #CHARPOSZ
  set #LTARGETKIND 2
  event macro 22 0
  return

sub HideMe
    event macro 15 43
    target 2s
    event macro 23 0
wait 120s
return
« Last Edit: December 19, 2013, 07:09:56 AM by Nuscheltier »

Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: looking for Simple Magery script...
« Reply #10 on: December 19, 2013, 07:12:33 AM »
0
if h in #charstatus
  {
   do this
  }

or

if h notin #charstatus
  {
  do this
  }

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: looking for Simple Magery script...
« Reply #11 on: December 19, 2013, 07:33:22 AM »
0
Good job on learning... couple improvements..

1) you don't have to wait 12 seconds between casting invisibility .. only for hiding skill. (changed sub name to reflect its not hide)
2) You dont have to caste EV twice in the Caste ev sub... the loop while #followers < 5  will call casteEV while the followers count is less than 5.  Ie you dont want it trying to caste 2 ev's when you have 4 followers.  And if you only have 3 followers you want 3 evs caste...


Code: [Select]
repeat
  While #Followers < 5
      gosub CasteEV
  Gosub InvisMe
until #charghost = yes
halt

sub CasteEV
  event Macro 15 57
  target 3s
  set #LTARGETX #charposx + 2
  set #LTARGETY #charposy + 2
  set #LTARGETZ #CHARPOSZ
  set #LTARGETKIND 2
  event macro 22 0
  wait 3s
return

sub InvisMe
  if h notin #charstatus
    {
    event macro 15 43
    target 2s
    event macro 23 0
    wait 3s
    }
return
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Tags: