Author Topic: Question on grabbing amounts  (Read 1764 times)

0 Members and 1 Guest are viewing this topic.

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3022
  • Activity:
    2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Question on grabbing amounts
« on: September 15, 2013, 09:08:02 AM »
0
I am working on an inscription script and am wondering on the best way to grab an amount of regs based on the amount of something that I am making. My menu has the combo box where a spell can be chosen and there is an edit box where you can edit how many of the scroll to make. I have never coded anything that multiplies the amount of regs needed by the amount that is being made so not sure how to code it.

Here is an example of the Clumsy Scroll
Code: [Select]
sub Item1ma  ; Clumsy Scroll
    set %mana 4
    set %regs %bm , _ , %ns
    set %current QXL
    set %clumsy QXL
    set %makestr Clumsy
    set %XClick1 27    ; First Circle
    set %YClick1 90
    set %XClick2 230   ; Clumsy
    set %YClick2 70
    set %numclick 2
return

Any suggestions?

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: Question on grabbing amounts
« Reply #1 on: September 15, 2013, 11:29:15 AM »
0
Why  not just have it pull out 500 or 1000 of the reg required and use it until it doesn't have the base amount of required reg? Then restock.



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

Offline CrisisTopic starter

  • Global Moderator
  • *
  • *
  • Posts: 3022
  • Activity:
    2%
  • Reputation Power: 41
  • Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.Crisis is a force to reckon with.
  • Gender: Male
  • Scripting well enough to break things!
  • Respect: +206
  • Referrals: 2
    • View Profile
Re: Question on grabbing amounts
« Reply #2 on: September 15, 2013, 12:32:39 PM »
0
That's how I have it set up now, just thinking it mat be faster to pull out exact amounts.

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: Question on grabbing amounts
« Reply #3 on: September 15, 2013, 12:48:33 PM »
0
Perhaps. it'd take a bit more coding however. You need to code the base amounts in and multiply that.

sub ItemToMake
set ( %resource 5 * %numerOfItems )
set ( %resource2 6 * %numberOfItems )
return



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

Tags: