ScriptUO

Ultima Online Fan Board => General UO Chat => Topic started by: Noobie on January 26, 2010, 11:43:51 AM

Title: Transfering Faction points
Post by: Noobie on January 26, 2010, 11:43:51 AM
Does anyone know if there is a script that will transfer lots of faction points easily?
Title: Re: Transfering Faction points
Post by: Xclio on January 26, 2010, 11:49:15 AM
Probably nothing out there, it is only about 3 or 4 lines of code though.  Do it once by hand and then run the below code.

Code: [Select]
Event Macro 1 0 I honor your leadership
target 5s
event macro 22 0 ;Last target
wait 10
return
Title: Re: Transfering Faction points
Post by: Noobie on January 26, 2010, 11:52:27 AM
I was just wondering if there was one that you could enter how many points you would like to transfer and it would wip it out quick fast. Just was wondering if there was one out there. Thanks!
Title: Re: Transfering Faction points
Post by: Khameleon on January 26, 2010, 11:57:37 AM

Code: [Select]
Top:
Set #Ltarget Xclio
Event Macro 1 0 I honor your leadership
target 5s
event macro 22 0 ;Last target
wait 10
Goto top

:P
Title: Re: Transfering Faction points
Post by: Xclio on January 26, 2010, 12:02:10 PM
Nothing like that out there, though again wouldn't be overly complicated to do but would require more than 5 line of code.
Title: Re: Transfering Faction points
Post by: 12TimesOver on January 26, 2010, 12:06:55 PM
It would be easy for sure.

How many points are given each time you honor leadership? Someone gave me points the other night and it was four at a time, is that what it always is or does it fluctuate based on how many points you have?

Title: Re: Transfering Faction points
Post by: _C2_ on January 26, 2010, 12:07:26 PM
you could do:

for #cnt 0 %yournumber
 {
  do the above stuff
 }
halt
Title: Re: Transfering Faction points
Post by: Xclio on January 26, 2010, 12:08:54 PM
Whenever you give points you lose 5 while the person receiving points gains 4.
Title: Re: Transfering Faction points
Post by: 12TimesOver on January 26, 2010, 12:13:18 PM
Ah ok. So it would be pretty easy to:

1) Put in how many points you want to give
2) Target the toon you want to give them to
3) Perform the honor action
4) Checks and balances for success (ie, make sure toon is there, confirm that it was successful (journal scan perhaps, etc)

Maybe not 5 lines but I'll bet it's not 100 ;)

X
Title: Re: Transfering Faction points
Post by: Scrripty on January 26, 2010, 12:39:14 PM
Wouldn't this work?

%howmanytimesyouwanttohonor = 5 points per honor... so 100 points would be 20.  Which would give 80 points to the person you're transferring TO.

Code: [Select]
SET %howmanytimesyouwanttohonor 10

FOR %i = 1 to %howmanytimesyouwanttohonor
{
  Event Macro 1 0 I honor your leadership
  target 5s
  event macro 22 0 ;Last target
  wait 10
}
Title: Re: Transfering Faction points
Post by: 12TimesOver on January 26, 2010, 12:40:22 PM
Should do just fine :P
Title: Re: Transfering Faction points
Post by: Scrripty on January 26, 2010, 12:42:49 PM
Nothing like that out there, though again wouldn't be overly complicated to do but would require more than 5 line of code.

Yea 7. :) heh
Title: Re: Transfering Faction points
Post by: 12TimesOver on January 26, 2010, 12:43:48 PM
Nothing like that out there, though again wouldn't be overly complicated to do but would require more than 5 line of code.

Yea 7. :) heh
I counted 8 with brackets and not counting the blank line LOL!
Title: Re: Transfering Faction points
Post by: Scrripty on January 26, 2010, 12:50:28 PM
5 lines.  Bam.

Code: [Select]
SET %howmanytimestohonor 10

FOR %i 1 %howmanytimestohonor
{
  EVENT macro 1 0 I honor your leadership
  TARGET 5s
  EVENT macro 22 0 ;Last target
  WAIT 15
}
IF %i >= %howmanytimestohonor
  HALT
Title: Re: Transfering Faction points
Post by: Scrripty on January 26, 2010, 01:42:48 PM
Here ya go people.  V1.0 of Twinkle McNugget's HONOR TRANSFER!  Wooho! :)
Title: Re: Transfering Faction points
Post by: Cerveza on January 26, 2010, 02:54:44 PM
I see you getting the number of points to transfer, but honoring a set number of times.

I didn't see:

set %transfer_this_many_points ( %howmanytimestohonor / 4 )

Number of times to transfer <> number of times you do it.
Title: Re: Transfering Faction points
Post by: Scrripty on January 26, 2010, 03:50:34 PM
I see you getting the number of points to transfer, but honoring a set number of times.

I didn't see:

set %transfer_this_many_points ( %howmanytimestohonor / 4 )

Number of times to transfer <> number of times you do it.

If you can't multiply the number of times you're going to do it by 4 and 5, you have no business using this script. :)  But I'll do that on the menu for you if you REALLY need it Cerv... heh  I'll put it in the menu loop and have it display on the menu for you...? :)
Title: Re: Transfering Faction points
Post by: Cerveza on January 26, 2010, 04:22:22 PM
Yes, and when it's complete I want sparkles.
Title: Re: Transfering Faction points
Post by: Scrripty on January 26, 2010, 04:42:45 PM
Here ya go Cerv.  Now it works on ACTUAL points tho.  You put in the number you want to transfer.  And it will transfer them to the closest number divisable by 4 rounding down.  Oh, and it shows how many you used and how many you transferred.
Title: Re: Transfering Faction points
Post by: Xclio on January 27, 2010, 04:50:29 AM
Wow, I think this script got more dev attention than most of our major projects!!!
Title: Re: Transfering Faction points
Post by: Noobie on January 27, 2010, 04:53:40 AM
I know i was suprised as well. I know a script like this would be a lot of help to me. my whammy is a factions toon and i have been having a hard time keepinghim at lvl ten. Thanks for all the help everyone!
Title: Re: Transfering Faction points
Post by: Scrripty on January 27, 2010, 03:15:21 PM
I know i was suprised as well. I know a script like this would be a lot of help to me. my whammy is a factions toon and i have been having a hard time keepinghim at lvl ten. Thanks for all the help everyone!

I'll add an emergency stop button if you'd like...?  Gotta account for user error and all... :)
Title: Re: Transfering Faction points
Post by: Noobie on January 28, 2010, 06:45:23 AM
That I ran it and transfered like 6k points to my toon lastnight. Works like a champ. Thanks!
Title: Re: Transfering Faction points
Post by: Xclio on January 28, 2010, 07:05:13 AM
Nice, it is definitally useful for those of us on shards that have highly inflated points.  I think on GL some of the factions require 100k+ to be level 10.
Title: Re: Transfering Faction points
Post by: Noobie on January 28, 2010, 10:06:58 AM
wow that is just stupid! I only have to have like 10k atm, but it has been going up recently.
Title: Re: Transfering Faction points
Post by: Scrripty on January 28, 2010, 11:05:13 AM
That took minutes to write guys... the menu was harder than the script itself... hehe
Title: Re: Transfering Faction points
Post by: onlyindreams on January 28, 2010, 02:01:13 PM
Nice, it is definitally useful for those of us on shards that have highly inflated points.  I think on GL some of the factions require 100k+ to be level 10.

I just left TB and I had nearly 1mil points. I'm debating whether to join another faction or transfer.