PDA

View Full Version : problem with enhancive script when removing, on new lich



jon1833
12-16-2014, 12:18 AM
;enh remove
--- Lich: enhancive active.
[enhancive]>open my pouch
That is already open.
>
--- Lich: error: undefined method `contents' for #<Array:0x1542e340>
enhancive:70:in `remove'
enhancive:185:in `check_args'
--- Lich: enhancive has exited.

It used to work fine, wearing works fine, redownloaded the script, still gives these errors.

ROTOR
12-16-2014, 01:46 AM
I don't know the fix, but am curious, are you using ruby 2.0? I'm getting a similar (at least to the untrained eye) error when using sbounty.

jon1833
12-16-2014, 02:04 AM
Yep, updated to the correct ruby.

Tillmen
12-16-2014, 02:14 AM
Change line 70 from

for obj in body_inv.contents

to

for obj in body_inv

ROTOR
12-16-2014, 05:01 AM
Ok, I was having a similar problem:

--- Lich: enhancives active.
--- Lich: error: undefined method `strip!' for ["tiara", " necklace"]:Array
enhancives:103:in `check_settings'
enhancives:115:in `trusted_script'
--- Lich: enhancives has exited.

I was attempting to add/remove items to my wear/remove list but ;settings add enchancives item but it doesn't like ;settings so attempted using :vars remove enhancives tiara.
Lich reply was:
--- variable enhancives is deleted

And now the script seems to be loading ok, but I can't add/remove items because ;settings doesn't work. Any ideas how to add/remove items for the script?

Tillmen
12-16-2014, 12:18 PM
I think I'm going to have to just rewrite this script. Is there a reason it was using ;settings to save its settings? Were the settings used by any other script?

jon1833
12-16-2014, 02:44 PM
This worked perfectly, thank you very much Tillmen! Some day i'll learn to read this gibberish.






Change line 70 from

for obj in body_inv.contents

to

for obj in body_inv

ROTOR
12-16-2014, 04:12 PM
I think I'm going to have to just rewrite this script. Is there a reason it was using ;settings to save its settings? Were the settings used by any other script?

Can't think of any other script that uses it or why it was using ;settings.

Tillmen
12-16-2014, 04:25 PM
So, apparently we're talking about two scripts.

The author of enhancive is still active. The script just needs one small change to work, but settings are changed by editing the script.

The author of enhancives is not active. The script saves settings using UserVars (;settings/;vars) in a way that is no longer supported. It also probably shouldn't have been using UserVars for settings to start with, since the settings don't need to be shared with any other scripts. I'm probably just going to make this script go away.

I just wrote and uploaded enhance, so we have yet another enhancive wearing script. This one is a little different, so read the help. It allows you to set different groups of enhancives. So you might create groups named strength and logic, and do ";enhance strength" when you need strength or ";enhance logic" when you need logic. Or when you go to rest, you might do ";enhance only logic" so that it takes off all your other enhancives. Or ";enhance nothing" when you're not doing anything interesting.

Donquix
12-16-2014, 06:15 PM
Give tillmen a christmas bonus, fuckers.

Gelston
12-16-2014, 06:51 PM
Give tillmen a christmas bonus, fuckers.

http://www.richardcrouse.ca/wp-content/uploads/2013/12/jelly-of-the-club.jpg

Donquix
12-16-2014, 07:27 PM
y u jelly bro?

Gelston
12-16-2014, 07:42 PM
y u jelly bro?

:/ Someone has forgotten National Lampoon's Christmas Vacation.

Donquix
12-16-2014, 08:08 PM
:/ Someone has forgotten National Lampoon's Christmas Vacation.

Not at all, actually. Just had a cookout with some work friends and we watched Ghosbusters 1+2 and National Lampoons.

One of my coworkers dressed up as Eddie (with the white sweater and the dicky), even bought the replica moosehead mugs. He is committed to his craft.

ROTOR
12-17-2014, 01:53 AM
Give tillmen a christmas bonus, fuckers.

Yeah, no kidding. That is sweet. Thanks Tillmen.