Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dreamzcaster

Pages: 1 [2] 3 4
16
I worked pretty hard at it and it is almost ready for release to others but I would appreciate any debugs specifically the one where after it kills a paragon there is a pause and then it continues.  I don't get why it does this but if you are interested I can PM it to you can you can check it out for yourself.

17
I appreciate the advice but as I am attempting to write a script based around taming ridgebacks these two seem to spawn in almost the exact place every single time.  As such it is the place where I have based the script.  While I understand that the other one has better spawn and lacks the building issue; I can really only tame one ridgeback at a time so 2 or 20 makes no difference.  As far as the building issue my new script attempts to deal with that but I have yet to give it a extended test run but so far so good (we shall see:)).  As I have solved the issue of movement I was having by working on this script all morning I am most certainly not changing it to the other spawn spot but I really do appreciate the advice.  We should probably just agree to disagree as I don't really feel like getting off topic any further.

P.S. if you really want to help you might test out what I have written and read through it and see what you think.  I am a total newb at writing and this is the first script I have ever written so you will probably think is sucks but any feedback or support would really help.

18
Script Debug / Re: Killing Paragon Ridgebacks and taming
« on: August 20, 2009, 08:13:49 AM »
Ok I think my script is the best that I can do with my newbie scripting skills but I would love a little help making it rule.  I have done my best and it seems to work generally the way I would like it to but I would love a little help and feedback if some of you vets or some of you elite types would take a look or debug for me (even clean it up a bit) I would be really appreciative.  Please let me know what changes you could make or how to make it even better as I have debugged it as much as I have been able to.

Known issues:

After killing a paragon he just sits there for a about 20 seconds and I am unsure why he does this.  Yet the script will then start again.

If you wouldn't mind helping me out I would really appreciate it.  PM me and I will send it to ya.

19
This one has two ridgebacks and as soon as you kill one the next one spawns so I find this to be the perfect spot :)

20
Yes.  You're taming ridgebacks in the wrong place. :)


What are my x and y co-ordinated incorrect

21
Here is the first step - having him return to the start position if he does not find a ridgeback
but so far it is not moving him around
I am simply trying to get him to move to the position without any of the taming part yet but he moves not.
any ideas of what I am doing wrong here

Code: [Select]
set %movex 1277 ; x co-ordinate of start position
set %movey 770 ; y co-ordinate of start position
initevents

finditem %tametype G_15
if #findkind = -1 2
gosub home

sub home
  set %x %movex . %mark
  set %y %movey . %mark
  move %x %y 0
  return

P.S. I have taken a lot of this from other sources and am merely trying to adapt it to my needs so a lot of it I do not understand.  I thought that I had it right when I set up the co-ordinates and then gave the instruction to move to x and y but he does not budge.  Any help would get me started.  Thanks

22
Script Debug / Re: Killing Paragon Ridgebacks and taming
« on: August 19, 2009, 03:18:17 PM »
One thing I just noticed...  You should always "return" from your subroutines.  Your "goto top" is not a good thing.  Read up on sub/return at EasyUO to get what I'm talking about.

Cool I will look it up :)

This is what I found

Code: [Select]
return

The return command transfers the execution back to where the sub was called using gosub.

return

goto

The goto command moves the execution to another part of the script. The destination point is given by a label.

When I have go to top that is where it begins scanning for ridgebacks ... isn't that what I want to do.  I have entered return into those spots but see no real noticeable difference my guess is for more complex scripts you wouldn't want to go back to the top as it might have to read through some unnecessary code.  Am I getting it somewhat right?

My guess is that going back to that top point is making the process a little less smooth and efficient.  I made changes to some of those routines and it seems to work a bit better although to someone that isn't watching this script for days on end may not see any difference at all.  I guess it is all about learning it the right way:)

23
Script Debug / Re: Killing Paragon Ridgebacks and taming
« on: August 19, 2009, 01:31:35 PM »
An unfortunate Event occurred I was writing some scripting code looked away and a paragon had killed me.  Boo so I have altered it like this does this make any sense?

Code: [Select]
sub paragon
  set #ltargetid %1
  ;msg all kill $  ; pet kill
  repeat
  event macro 15 42
  target 6s
  event macro 22 0
  wait 2s
  event macro 15 41
  target 6s
  event macro 22 0
  wait 2s
  if #hits < #maxhits
{
gosub healM
}
  finditem %1 G
until #FINDCNT = 0
 goto top

then I have this sub below in with the other subs

Code: [Select]
;auto healing
sub healM
wait 1s
event Macro 15 28
wait 4s
event Macro 23 0
gosub paragon

Edit:  It seemed to have worked I am so pumped I am starting to understand this scripting thing.  Only problem is that when it goes back to the paragon sub it casts the two spells again.  is it possible to put a check in there at the start to see if it still there with a Findcnt function or something?

And for some reason a paragon started to attack me even when I was taming another ridgeback.  Is there something here that was targeting them from before or do you think it is a karma issue or fame issue.

24
Script Debug / Re: Killing Paragon Ridgebacks and taming
« on: August 19, 2009, 11:52:09 AM »
I will test and see how this goes just can't make those darn paragons spawn on command lol:)

Update: Ok it seems to work but after it kills the paragon there seems to be this long pause before it moves onto the next one.  I can deal with that though.

Update 2: The next paragon was killed and then he moved quick tot he next ridgeback so that was good.  I guess there may not be a long pause.

25
I like that idea too. But I dunno how hard that would be.

26
Script Debug / Re: Killing Paragon Ridgebacks and taming
« on: August 19, 2009, 11:42:27 AM »
Code: [Select]
sub paragon
  set #ltargetid %1
  ;msg all kill $  ; pet kill
  repeat
  event macro 15 42
  target 6s
  event macro 22 0
  wait 2s
  event macro 15 41
  target 6s
  event macro 22 0
  wait 2s
  finditem %ridgey G
until #FINDCNT = 0
 return

so does this make sense?

27
Script Debug / Re: Killing Paragon Ridgebacks and taming
« on: August 19, 2009, 11:34:44 AM »
Code: [Select]
finditem %ridgey G what does the "G" do?

28
Script Debug / Re: Killing Paragon Ridgebacks and taming
« on: August 19, 2009, 11:03:53 AM »
so I would loop it by removing all the repeated commands and then putting goto top (top is the start name)

it should then look around check again for the ridgeback, see the paragon again, and then run the paragon kill sub again.  Only problem is it might scan and find the other ridgeback that spawns there and start taming it while the paragon one is attacking me still form my first attack.

I hope all that makes sence.

29
Script Debug / Re: Killing Paragon Ridgebacks and taming
« on: August 19, 2009, 10:46:02 AM »
Here is what I used to kill off the paragons.  Now I am new at this so don't rip me apart but I found it to work so please take a look and see what you think.

Code: [Select]
;paragon kill
sub paragon
  set #ltargetid %1
  ;msg all kill $  ; pet kill
  event macro 15 42
  target 6s
  event macro 22 0
  wait 2s
  event macro 15 41
  target 6s
  event macro 22 0
  wait 2s
  event macro 15 42
  target 6s
  event macro 22 0
  wait 2s
  event macro 15 41
  target 6s
  event macro 22 0
  wait 2s
  event macro 15 42
  target 6s
  event macro 22 0
  wait 2s
  event macro 15 41
  target 6s
  event macro 22 0
 return

I know it is not super efficient but it does the job even though the last spell may not be needed as the paragons always seem to be dead at that point.  Of course my tamer is 106 magery and 100 eval so that helps with quite a bit od SDI in his gear so I figured the extra couple of spells may not hurt for other tamers using this.

30
Ok here is my idea.  I have most of the script done (ie auto-taming and mage killing and paragon killing) now I want to fix some problems that i have when the ridgebacks walk away.  For those who are unsure of what I am talking about refer to the pict below which shows where the script takes place.  It is the savage camp in ilsh. 

Often the ridgeback run away and as such my guy follow tames them.  Well occasionally they wander off or occasionally he can not find them because he has been following one too far away and then he just stands there looking stupid.  I wanted to have him return to the start if after 15 or 20 seconds he did not find any ridgebacks to tame.  Then have him walk around either one of the two paths in the second picture looking for a ridgeback at which point he would tame kill and then return to the start.  While path 2 in yellow seems more likely to find stray ridgebacks I find that path 1 in red seems to work fairly well at picking them up.

My questions are: 1. How the heck do I get him to do that?
                         2. Which one of the paths would be the easiest to script for?
                         



Here are the path ideas I was thinking of which do you think would be easier?



Any help would be greatly appreciated.

Pages: 1 [2] 3 4