ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: roadrunner on May 23, 2013, 03:36:46 PM

Title: hit the wall o this sub
Post by: roadrunner on May 23, 2013, 03:36:46 PM
I cannot figure out the code of this sub. the ''TR" in almost every line = what? "true" ? i thought i was doing good until i got into this section. now i feel like a Uber Newb again.

; Hands in the bucklers
sub TR_Hand_in
set %TR_temp_weight #weight
repeat
set #lobjectID %TR_Donation_NPC
event macro 17 0
gosub TR_waitfor_generic_gump
set #contPosX 0
set #contPosY 0
wait 5
click 290 318 dmc
wait 10
msg %TR_no_bucklers $
wait 10
until #weight < %TR_temp_weight
set %TR_Status_bucklers ( %TR_Status_bucklers + %TR_no_bucklers )
set %TR_no_bucklers 0
gosub TR_update_status
return


PS: Thx to UOLugnutz, i did learn how to post a sub 'correctly' in here so today hasn't been total loss
Title: Re: hit the wall o this sub
Post by: manwinc on May 23, 2013, 03:51:34 PM
The TR in every Line is just Someone leaving their signature on their code.

Like

Gosub Manwinc_PwnFace
Title: Re: hit the wall o this sub
Post by: TrailMyx on May 23, 2013, 03:52:15 PM
That's the script author's initials.  In this case it stands for "The Reaper".  It's just a way to identify if a variable is owned by someone.

**  Shakes fist at MW for beating me to the answer **  ** shakes fist ** lol

BTW, if you are ever thinking about posting a script that was based off of work done by someone else, you need to get their permission first.  Just an FYI; this is a rule we've enforced for a long time now.
Title: Re: hit the wall o this sub
Post by: dxrom on May 23, 2013, 03:58:22 PM
Code: [Select]
indentations saves lives
Title: Re: hit the wall o this sub
Post by: roadrunner on May 23, 2013, 04:00:43 PM
i'd never post anyone else's work. i thank you for reaffirming that rule but it's his script that's motivated me to write a script, so i'm going to do my best to finish debugging his Donator. it has so many different elements all rolled into 1, it's teaching me a good bit, plus i'm reading Cerveza's #5 tutorial while studying this sub.
Title: Re: hit the wall o this sub
Post by: TrailMyx on May 23, 2013, 04:05:32 PM
No worries, just throwing it out there since it's happened before.  Some people think that if they "change" the code of someone else enough that they assume responsibility for it.  Since you are using it as a learning experience, that's no different than nearly the rest of us who learned from the code of others.
Title: Re: hit the wall o this sub
Post by: roadrunner on May 24, 2013, 04:43:24 AM
:D  i'm not really changing his 'code' just all the parameters & coordinates, so it'll some day work on the servers i use.  but now you guys explained the initials, i see (and i also noticed he gave thanks and i'm sure he had permission) TM's name/ subscripts all thru his work. just learning & realizing he didn't 'write' all 1000 lines of code but arranged it so it did what he wanted. and yep, now i'm trying to do the same kinda thing but not quite on such grandiose scale as he did.