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 - Bobkyou

Pages: [1]
1
Script Debug / Re: Sub in a Sub???
« on: September 09, 2008, 06:35:32 PM »
Well recursion would call subs from subs, and recursion can do in a very small amount of code what would take many lines to accomplish.  However since gosubs are more cpu intensive than other activities, recursion ( I believe ) would become very slow in easyuo very fast.  Never actually run tests with it in easy uo, just remembering little programs I played with back in the day.

2
Scripting Chat / Re: TM, do you have a script that...
« on: September 09, 2008, 06:30:15 PM »
Archangels script will get the job done, but it's not very efficient.  It doesn't re equip your pole, it tries to drop stuff at the bank instead of just going, and its pathing gets very confused when a sea serpent is in the way.  However there's way more effort put into that script than anything I would do, it just needs a bit of fixing.

3
Scripting Chat / Re: Movement with cancelation.
« on: September 09, 2008, 06:24:34 PM »
Code: [Select]
While #True
{
 For %i 1 %endspot
 {
  set %x %x . %i     ;this is for use with CEOs rail writter
  set %y %y . %i
  set %z %z . %i
  set %timeout #systime + 15000   ;if you can't get to the waypoint in 15 seconds, skip the rail point
  While ! ( #charposx = %x && #charposy = %y ) && %timeout > #systime
  {
   event pathfind %x %y %z
   wait 1
   if ABS ( #charposx - %x ) > 16 || ABS ( #charposy - %y ) > 16
   {
    set %i %i + 1
    set %x %x . %i
    set %y %y . %i
    set %z %z . %i
   };if it looks like the rail point is too far away, skip to the next rail point
   gosub dosomethingsub
  };while
 };for
};while

sub dosomethingsub
while %dosomething = #True
{
 event pathfind #charposx #charposy #charposz
 gosub slayyourenemiessub
}
return

Well this is how I would do it.  I haven't tested this code, its just a modified snippet from a script I wrote.

4
Script Debug / Re: Sub in a Sub???
« on: September 09, 2008, 10:13:10 AM »
Would excessive use of subs in subs potentially cause a memory leak?  I don't know how easyuo is coded, but I would imagine it keeps track of each time gosub is called, and would need to see a return for each gosub to release the memory space.

5
Scripting Tutorials / Re: Animal ID's
« on: September 09, 2008, 10:04:55 AM »
I normally use this website for monster IDs http://euo.oseaco.com/misc/Scripts/

6
Off Topic / Re: Hot Stripper Skillz
« on: September 09, 2008, 09:40:43 AM »
LOL, way too funny.  Can't decided if the video is staged or not, looks pretty legit though.

Pages: [1]