Crafting guild test items fix

Post Reply
megazraff
Posts: 12
Joined: Thu May 16, 2013 11:16 pm

Crafting guild test items fix

Post by megazraff » Tue Sep 03, 2013 9:08 pm

Theres a mis-script in the crafting.lua that doesn't allow anyone to pass level 70 guild test item, fortunately Dickdriver found and fixed it so we can keep on keepin' on with our crafts.
Attachments
crafting.patch
(514 Bytes) Downloaded 400 times

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Crafting guild test items fix

Post by kjLotus » Tue Sep 03, 2013 9:14 pm

megazraff wrote:Dickdriver

uh... thanks, sir dickdriver..

edit: now that i read this function, i think this is supposed to be the restriction for only having 40 points past 70, but restricting guild test items isn't how it works in retail (meaning your patch isn't really correct)

(Rank < 6 or Rank >= 6) is always true, which kind of makes no sense anyways

User avatar
maxtherabbit
Developer
Posts: 57
Joined: Wed Jun 12, 2013 11:26 pm

Re: Crafting guild test items fix

Post by maxtherabbit » Tue Sep 03, 2013 9:37 pm

you are disregarding order of operations

'and' takes precedence over 'or' so its actually

if (rank < 6) or ( (rank>=6) and (hasAlreadyArtisanRank(player,craftID) == 0) )

and i don't care how it works in retail, i fixed the broken ds implementation


eta: yeah the second check on Rank is redundant but hey I didn't write the script, just setting out to unfuck it - you wanna rewrite have at it

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Crafting guild test items fix

Post by kjLotus » Tue Sep 03, 2013 11:38 pm

wow, so hostile!
maxtherabbit wrote:and i don't care how it works in retail
unfortunately we do, and i can't do anything about that :p

User avatar
maxtherabbit
Developer
Posts: 57
Joined: Wed Jun 12, 2013 11:26 pm

Re: Crafting guild test items fix

Post by maxtherabbit » Wed Sep 04, 2013 9:14 am

hostile? you come in here ridiculing my patch because of my character name and a non-retail implementation that I didn't even create not to mention citing a line of code you didn't even read right

check yourself


my goal here was simply to correct the error in the existing implementation which prevents players from progressing, not to completely rebuild the module to meet retail standards

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Crafting guild test items fix

Post by kjLotus » Wed Sep 04, 2013 4:41 pm

maxtherabbit wrote:you come in here ridiculing my patch because of my character name
actually, i thought your character name was funny, and got a laugh out of it. ridicule? no, just pointing out that i'm not sure that's right. if i were to immediately make a change, i'd just remove the whole check

lighten up man, i'm not here to hate on you or any contributors

megazraff
Posts: 12
Joined: Thu May 16, 2013 11:16 pm

Re: Crafting guild test items fix

Post by megazraff » Wed Sep 04, 2013 9:43 pm

new patch without the redundant check

edit: fix again to work the way original script was intended to
Attachments
crafting.patch
(728 Bytes) Downloaded 351 times

User avatar
maxtherabbit
Developer
Posts: 57
Joined: Wed Jun 12, 2013 11:26 pm

Re: Crafting guild test items fix

Post by maxtherabbit » Thu Sep 05, 2013 12:00 am

oops fixed the fix
Attachments
crafting.patch
(722 Bytes) Downloaded 369 times

Post Reply