Author Topic: enchanted apple sub  (Read 2123 times)

0 Members and 1 Guest are viewing this topic.

Offline roadrunnerTopic starter

  • Full Member
  • ***
  • Posts: 107
  • Activity:
    0%
  • Reputation Power: 2
  • roadrunner has no influence.
  • Gender: Male
  • Respect: +28
  • Referrals: 1
    • View Profile
enchanted apple sub
« on: May 29, 2013, 06:33:08 PM »
0
ok, i'm trying to make a short sub for finding enchanted apple in main pack & eating 1. after reading as close to what i want in tutorials, other scripts, etc., i came up w/ these. any advice on how to "fix" them would be appreciated.
Code: [Select]
;=====enchanted apple sub======
findItem CBS C_ , #backpackId
if #findcnt > 0
set #lobjectID %enchantedApple
event macro 17
return
===============================

and this is the second, so whichever would be better, easier to make work, faster
Code: [Select]
;==========enchanted apple sub=====
    findItem CBS C_ , #backpackId
if #FINDCNT > 0
        {
click #findx #findy d
        } 
    return
;==================================

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: enchanted apple sub
« Reply #1 on: May 29, 2013, 06:52:25 PM »
0
Sub Enchanted_Apple
Finditem CBS C_ , #backpackid
if #Findcnt > 0
{
set #lobjectid #Findid
Event macro 17 0
wait 20
}
Return
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline roadrunnerTopic starter

  • Full Member
  • ***
  • Posts: 107
  • Activity:
    0%
  • Reputation Power: 2
  • roadrunner has no influence.
  • Gender: Male
  • Respect: +28
  • Referrals: 1
    • View Profile
Re: enchanted apple sub
« Reply #2 on: May 29, 2013, 07:00:00 PM »
0
thank you Manwinc !! at least i was sorta in ballpark. i'll fiddle with it more tomorrow. :D

Offline dxrom

  • Master of the milestones!
  • Elite
  • *
  • *
  • Posts: 1080
  • Activity:
    0%
  • Reputation Power: 15
  • dxrom is working their way up.dxrom is working their way up.dxrom is working their way up.
  • KEYBOARD COWBOY, GREAT SAMURAI OF THE INTERNET.
  • Respect: +100
  • Referrals: 1
    • View Profile
Re: enchanted apple sub
« Reply #3 on: May 30, 2013, 01:11:55 AM »
0
You may consider creating a separate appleTimer for this so it doesn't put your entire script into a pause.



 ​_██​_
(ಠ​_ృ)
I do say, ol' Chap! Come play EVE Online! Why here is a 21 Day Free Trial!

Tags: