Author Topic: Penny's Bodswapper  (Read 8419 times)

0 Members and 1 Guest are viewing this topic.

Offline Ahzmandius

  • Jr. Member
  • **
  • Posts: 11
  • Activity:
    0%
  • Reputation Power: 1
  • Ahzmandius has no influence.
  • Gender: Male
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Penny's Bodswapper
« Reply #15 on: November 07, 2021, 06:58:10 PM »
0
Just started playing with this one, seems the contsize is not correct on some of them. Rather than track down whats what i just added a check in the sub. The one for blacksmith is

Code: [Select]
  WAIT_FOR_VENDOR_GUMP:
  if #CONTNAME = normal_gump && ( #CONTSIZE = 134_168 )
  + || ( #CONTSIZE = 142_240 ) || ( #CONTSIZE = 116_150 )
  + || ( #CONTSIZE = 214_204 ) || ( #CONTSIZE = 139_168 )
  + || ( #CONTSIZE = 183_168 ) || ( #CONTSIZE = 214_168 )
  + || ( #CONTSIZE = 170_168 ) || ( #CONTSIZE = 214_186 )
  + || ( #CONTSIZE = 171_150 ) || ( #CONTSIZE = 171_168 )
  + || ( #CONTSIZE = 183_204 ) || ( #CONTSIZE = 234_204 )
  + || ( #CONTSIZE = 116_132 ) <-- Added the size of blacksmith context menu, i assume the rest need to be checked.
  {
    return
  }
  if %vendorGumpCount >= 50

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Penny's Bodswapper
« Reply #16 on: November 08, 2021, 09:07:42 PM »
0
Those ginormously long IF statements are like fingernails on the chalk board.  :)

Code: easyuo
  1.   set %vender_gumps |134_168|142_240|116_150|214_204|139_168|183_168|214_168|170_168|214_186|171_150|171_168|183_204|234_204|116_132|
  2.  
  3.   WAIT_FOR_VENDOR_GUMP:
  4.   if #CONTNAME = normal_gump && ( | , #CONTSIZE , | in %vender_gumps )
  5.   {
  6.     return
  7.   }
  8.  
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: