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

Pages: [1] 2 3 4
1
Script Debug / Re: Heal & Warn
« on: August 27, 2008, 01:42:06 PM »
i am thinking that the rule are aprox the same since everything i have gotten from the site has worked great...  there is no speacial super anything on the server just like osi

2
Script Debug / Re: Heal & Warn
« on: August 27, 2008, 10:00:13 AM »
out of curiostity does it work for you, unfortunetly it is not working for me.

3
Script Debug / Re: Heal & Warn
« on: August 27, 2008, 08:41:08 AM »
this is the restocker code alone and of course i have it hard set to my resource bag here.  why will it not read the set i have in the script?

Restocker works like this..

Code: [Select]
set %resourcebox huyslmd
finditem ZLF C_ , #backpackid ; this is bandaids
if #findstack < 25
{
  set %tograb 100 - #FINDSTACK
  set #lobjectid %resourcebox
  wait 10
  event macro 17 0
  wait 10
  contpos 0 0
  wait %vSwait
  Finditem ZLF C_ , %resourcebox
   IF #FINDSTACK >= %tograb
    {
     exevent drag #findid %tograb
     exevent dropc #backpackid
     wait 5
    }
 }
return

This is the code to set up the resourcebox..  is there something wrong in here?


Code: [Select]
display yesno Are you using your bank?$
if #dispRes = yes
{
nextCPos 25 500
msg Bank
wait %short_delay
}
display OK Please target your supply container.

wait %short_delay
    set #targcurs 1
    target
    while #targcurs = 1
      wait 0
    set %resourcebox #ltargetid


return

did a syntax check and not sure what this means

Method count: 55
Command count: 55
*** Pass 1 - Label accounting:
*** Error - Braces not balanced. Imbalanced by: 1
Subroutine labels = 5
Tag labels = 1
7 Code block(s).
0 Warnings(s) encountered.
*** Pass 2 - Execution [SYNTAXCHECK]
1 Error(s) encountered.

4
Resource Farming / Re: Snow's Spined Leather Farmer
« on: August 27, 2008, 08:33:25 AM »
i actually added cows and such to the script and it will attack them and then while they are coming to me it recalls out

5
Script Debug / Re: Heal & Warn
« on: August 27, 2008, 08:25:01 AM »
yes i changed them to 10 just for testing purposes

6
Resource Farming / Re: Snow's Spined Leather Farmer
« on: August 27, 2008, 07:54:55 AM »
i am on a free server so you may just ignore what i say ...   but i have a problem were it will attack something and then by the time it gets to you your recalling out.

7
Resource Farming / Re: Snow's Spined Leather Farmer
« on: August 27, 2008, 07:38:20 AM »
cool.  in and older post you said 2.0 would have cow and other support for other leather.  on my silly server you can't recall in dungeons so i don't have a place to find lizardmen.

8
Resource Farming / Re: Snow's Spined Leather Farmer
« on: August 27, 2008, 07:19:49 AM »
why a butchers war cleaver this may be a silly question but not sure?

9
Script Debug / Re: Heal & Warn
« on: August 27, 2008, 07:12:56 AM »
but if you pull the restock sub all by it self and hard define what resource bag you want to use it works fine so i don't think it is a timing issue.

10
Script Debug / Re: Sub in a Sub???
« on: August 26, 2008, 09:49:16 AM »
would one of you wise ones look at my heal and warn int he debug it is hurting my brain :)

11
Script Debug / Re: Heal & Warn
« on: August 26, 2008, 09:45:29 AM »
that didn't change anything it still won't open the bag and restock bandages...  this is really fustrating me :(

12
Script Debug / Re: Heal & Warn
« on: August 26, 2008, 07:59:35 AM »
My big problem is setting up my resource bag so that it ask for it in the begining of the script and then will call it back when it is time to use it for the restock.   this is my code so far i understand it needs a bunch of work yet, but i dont feel i can move on till this gets figured out.  here is my script as of now

Code: [Select]
;========================================
;Name: XxCaptainxX's Heal & Warn
;Author: XxCaptainxX
;Version: What comes befor beta?  Smiley
;========================================
set %fullheal You_finish_applying_the
set %retry You_apply_the_bandages
set %lilheal You_heal_what_little_damage_your
set %tryagain That_being_is_not_damaged
set %wait You_must_wait_to_perform_another_action
gosub setsecure
mainloop:
gosub counter
gosub check
gosub heal
gosub restock
goto mainloop
;-------Set-up-secure-pack---------------
 sub setsecure
display yesno Are you using your bank?$
if #dispRes = yes
{
nextCPos 25 500
msg Bank$
wait %short_delay
}
display OK Please target your supply container.$
wait %short_delay
set #targcurs 1
wait %short_delay
WaitTarget:
if #targcurs = 0
{
set %resourcebox #ltargetid
return
}
goto WaitTarget
return

;-------Counter-(Crosses-Fingers)--------
 sub counter
   finditem ZLF C_ , #backpackid
   if #findkind = 0 && #findstack <= 20
     EVENT ExMsg #charID 3 33 You are Low on bandaids!
  if #findkind = -1
     event exmsg #charid 3 33 You are out of bandaids!
return
;-------Checker-(Maybe)------------------
 sub check
  If #hits < #maxHits
     {
     return #true
     }
  return #false

;-------Heal-(hopefully)-----------------
  sub heal
  if #result #true
  finditem ZLF c_ , #backpackid
  {
   if #findkind = 0  ; -1 not found, 0 in a container, 1 on the ground
  {
   set #lobjectId #findId
    event macro 17
    target 5s
    event macro 23
    repeat
    {
    wait 0
    }
    until %fullheal in #sysmsg || %lilheal in #sysmsg || %retry in #sysmsg || %tryagain in #sysmsg || %wait in #sysMsg
   }
  return
;------Restocker-(Kind-Of)----------------
Sub restock
finditem ZLF C_ , #backpackid ; this is bandaids
if #findstack < 25
{
  set %tograb 100 - #FINDSTACK
  set #lobjectid %resourcebox
  wait %vSwait
  event macro 17 0
  wait %vSwait
  contpos 0 0
  wait %vSwait
  Finditem ZLF C_ , %resourcebox
   IF #FINDSTACK >= %tograb
    {
     exevent drag #findid %tograb
     exevent dropc #backpackid
     wait %MSwait
    }
 }
return


if i do the restock with  my personal resource bag ID setup in it it works fine so i know it is just a problem of recalling my initial setup

p.s. be at the bank when you initialy start this up and have a bag with aids in it.

13
Script Debug / Re: Sub in a Sub???
« on: August 26, 2008, 07:22:18 AM »
Well in one of my subs i want to check if i have a certain resource and then if i don't i want to run another sub to restock it

14
Script Debug / Re: Heal & Warn
« on: August 26, 2008, 07:09:27 AM »
ok here is the restocker. but i set up the supply bag threw targeting int he initial setup when starting up script. i am not sure how to call upon it later in this sub
Code: [Select]
;------Restocker-(Kind-Of)----------------
;----------------------------------
;%1 Type or ID of the item to restock
;%2 the amount to grab
;%3 the container to grab from
;%4 the container to drop to
Sub Restock CLF 100 (Here is the problem can i put "#lobjectid %secure" here?)  GQJTJMD  <----   LOOK AT THIS LINE!!!
Finditem %1 C_ , %3
if #findkind = 0 && #findstack >= %2
 {
  exevent drag #findid %2
  exevent dropc %4
  wait 10
  return true
 }
event exmsg #charid 3 0 You do not have enough of that item.
return false

15
Script Debug / Sub in a Sub???
« on: August 26, 2008, 07:00:26 AM »
can you have a sub within a sub???  i think so but i would hate to waste a lot of time trying to code an uncodeable :)  thanks all

Pages: [1] 2 3 4