Bug - Fixed Can't learn skills from CLI or ASH

Theraze

Active member
> use holiday fun

[holiday fun] has no matches.

> ash use(1, $item[holiday fun!])

[¶4811] has no matches.
Returned: false
Neither ASH nor CLI can currently natively be used to learn skills from books, which is a shame with the new code making it so easy to find them.
 

Theraze

Active member
Huh... why does it say it is?
> ash string_modifier($item[Holiday Fun!], "modifiers")

Returned: Free Pull, Skill: "Summon Holiday Fun!"

> ash skill_modifier($item[Holiday Fun!], "Skill")

Returned: Summon Holiday Fun!
level => -1
image => holidaylog.gif
traincost => 0
class => none
libram => false
passive => false
buff => false
combat => false
song => false
expression => false
summon => true
permable => true
dailylimit => 1
timescast => 0
 

Theraze

Active member
Since it's not in the mall, my script doesn't pull it as an option. But doing a 3000 meat check gives me:
> getitemskills 3000

autoBuyPriceLimit => 2500
Searching for "Travels with Jerry"...
Search complete.
Purchasing Travels with Jerry (1 @ 2,500)...
Purchases complete.
autoBuyPriceLimit => 10000
Using 1 Travels with Jerry...
You learned a new skill: Mudbath
Finished using 1 Travels with Jerry.
So... looks like it was just a bad item code rather than a use-filter problem. A bug, and one on the item I'd randomly picked as the cheapest unknown skill, but not the bug it said it was. :) Not sure if you want to call it not-a-bug or fixed.

Thanks Darzil! :)
 

Darzil

Developer
I'd have been surprised if all books weren't usable. I mean we've had a lot of such generic bugs due to fixing filters, but the books are just usables, so if it affected all books it'd have affected all usables too !
 
Top