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.


Topics - NObama

Pages: 1 ... 10 11 [12]
166
Scripting Chat / Adding looting to OMG's autotamer
« on: August 30, 2009, 04:57:58 AM »
Good morning.

I'm trying to figure out the best way to add looting options to OMG's taming script, simply because I can't bear to let that many gaman horns and so much leather decay.  I'm torn between trying to code something into the main loop, or to use TM's advclawlite.

I think this is my starting point, but please tell me if I'm off:

if #RESULT = FOUND
   {
   set %tamingsuccess TRUE
   gosub movetocreature %closeid
   gosub tamecreature %closeid
   gosub renamerelease %closeid
   gosub killtamedpet %closeid
****insert line here****  <---------------
   ignoreitem %closeid
   if %healthwatcher = TRUE
      gosub healthwatcher
   }

Am I at least in the right place to start tweaking?

Thanks!

167
Hail!

I've been using so much content from this forum that I wanted to contribute what little I can.

Several looting scripts out there gather all sorts of resources, but I couldn't find one that also cut up bones.  I liberally stole from others' code to create a bonecutting subroutine that worked for me.  Feel free to incorporate it or suggest changes.  It's rather mechanical and not particularly elegant, but it's been working for the last 3567 bones...

Set up your bone and scissor types.  These will also have to be added to you list of item types to loot.  Replace XXXXXXXX with the item id of your scissors:
Code: [Select]
set %cuttypes EEG_GED_OJK_XIK_SJK_IJK_TJK_BJK_UJK_DJK_MJK_AJK_LJK_FJK_RJK_EJK_ZIK_YIK_JJK_GJK_KJK_HJK_DEG
set %scissortypes KAG_JAG
set %scissors XXXXXXXX

Set up your sub cut_bones:
Code: [Select]
sub cut_bones
finditem %cuttypes C_ , #backpackid
if #findkind <> -1
{
  set %_findid #findid
  set #ltargetid %_findid
  set #lTargetKind 1
  set #lobjectid %scissors
  wait 5
  event macro 17 0
  target 5s
  event macro 22 0
  wait 9
}
return

This assumes you already have a variable set up for #backpackid.  If not, you can just substitute your character's value for this variable name.  You will also have to add type GUF to your loot list to move the cut bones to your drop-off container.

In the script I'm editing, I inserted the gosub command just before my weight check. 

Again, this is a pitiful contribution and is a hash of code I pulled from other scripts to turn into a stand alone subroutine.  Maybe it will help someone else learn like I'm learning.

Cheers.

 :)

168
Script Debug / Trouble with manual 'move' commands
« on: April 03, 2009, 11:39:26 PM »
Salutations!

I've been modifying one of TM's magnificant farming scripts to help my character get to and from the bank from Ilshenar.  I went through a great deal of painstaking manual entry of X/Y coords to craft a path for my toon to follow.

It was clunky, but it worked very well transitioning between several areas and using moongates.  Then, suddenly, it stopped working.  None of my coded coordinates changed, but after a day or so my toon would get stuck in various places.  I changed from event pathfind commands to move commands, and that seemed to solve the problem for a while - but now it's back.

I've run the modified script on several different systems with the same cascading failures after time passes.  Obviously, there is something simple I'm not seeing...but I'm compelled to ask:

Why does a "move x y" command work find one hundred times, then screw up the 101st?

Eventually, I'll figure out how to incorporate the rail engine but that's calculus to my multiplication tables at the moment.

Thanks!


169
New member introductions / Salutations!
« on: March 31, 2009, 01:09:52 PM »
Just getting back into the script side of the game, since I don't have the time to play that I once did.

Thanks for having me!

 :)
NObama.

Pages: 1 ... 10 11 [12]