Author Topic: Need help making a change  (Read 3117 times)

0 Members and 1 Guest are viewing this topic.

Offline billtcatTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • billtcat has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Need help making a change
« on: January 15, 2011, 04:51:59 AM »
0
I have this script that applies an enhancing rune to the item in a bag right now it sets the runes to target a particular item

set %runebagid SVBSYMD
set %itembagid RWNKTMD
set %itemtype XFR
set %runetype QWL

How would I change it so set %itemtype XFR would applie to multiple items in the bag not just a particuar one?

I have tried adding two or more types but it only enhance the first one


Bill The Cat

Offline Kalaka

  • Full Member
  • ***
  • Posts: 215
  • Activity:
    0%
  • Reputation Power: 2
  • Kalaka has no influence.
  • Respect: +25
  • Referrals: 0
    • View Profile
Re: Need help making a change
« Reply #1 on: January 15, 2011, 06:21:56 AM »
0
XFR_WHATEVERUWANT_WHATEVERELSE I think.

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: Need help making a change
« Reply #2 on: January 15, 2011, 12:06:35 PM »
0
You would need to create a table.

something like (and don't  copy/paste these values, they are merely hypothetical)

%toApply XFR_ASD_FGH_QWE_RTY_ZXC_VBN_DSA_GFD_ETC

then you would have your script apply the enhancing runes to %toApply. Then every item which has an ID of XFR_ASD_FGH_QWE_RTY_ZXC_VBN_DSA_GFD_ETC will get enhanced.
You need to create a table, or a list because without it, your script wouldn't know what to apply it too. Scripting makes things easier, but it takes alot of time and work to make that automation happen :D



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

Offline billtcatTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • billtcat has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Need help making a change
« Reply #3 on: January 16, 2011, 06:13:49 AM »
0
so there is nothing like a wildcard I can use to say enhance "everything" in the bag?


Bill

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: Need help making a change
« Reply #4 on: January 16, 2011, 11:41:34 AM »
0
Hmm, there might be... It's something I'd need to really look into though. I'll let you know if I find anything though.



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

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6210
  • Activity:
    2.8%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +274
  • Referrals: 3
    • View Profile
Re: Need help making a change
« Reply #5 on: February 12, 2011, 11:25:23 AM »
0
I was just looking at  Whisp's Master of Loot and he moves everything in a bag to another bag
maybe his approach would work here if you already have not solved the problem.

Scrripty

  • Guest
Re: Need help making a change
« Reply #6 on: February 12, 2011, 12:26:07 PM »
0
If you're SURE everything in the bag is something you want to enhance or whatever you are doing, you can use a wildcard.  Here's the way it works.  This is NOT using your variables.

Code: [Select]
set %enhanceBag %idOfBagWithItemsToEnhance
finditem * C_ , %enhanceBag
{
  for #findindex 1 #findcnt
  {
    CODE TO ENHANCE ITEMS IN %enhanceBag HERE
  } 
}

That will find EVERYTHING in your enhance bag and try to enhance it.  Even tools and such tho... if you're using that bag for ANYTHING other than just enhancing the items inside it, you might need to find another way. :)  Otherwise you'll enhance everything inside the bag including all the items you want to enhance this way.

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6210
  • Activity:
    2.8%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +274
  • Referrals: 3
    • View Profile
Re: Need help making a change
« Reply #7 on: February 12, 2011, 12:56:12 PM »
0
Hey Twinkle McNugget thanks - i had forgotten that - me bad

Tags: