Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

Issue Confirmations

  • Yes (0)No (0)
Photo

itemskill command does not check for required items

Posted by Kenpachi on 01 May 2013 - 12:24 AM

Refering to this bug report the itemskill command should check for required items and show the "Skill has failed." message if necessary. Maybe an optional parameter (0 or 1) is the best way to add this feature.

Ind 
changed status to: Started

Ind 
changed status to: Fixed

Ind 
changed status to: Confirmed

ah there is a trick. something in the requirement stuff will block this fix =_=
	if( sd->skillitem == skill_id )
		return req; // Item skills and Hocus-Pocus don't have requirements.[Inkfish]


the comment above ^ makes me wonder, this requires a new script command OR all itemskill casts require comments and inkfish's fix is wrong?

@offtopic
@Sir Ind, is this possible to add flag to consume the item immediately? Issue :)

@offtopic
@Sir Ind, is this possible to add flag to consume the item immediately? Issue :)


This must be handled by the item type, not the bonus. I'm aware of that issue and will be investigating it next week.

what about the inkfish thing oo all itemskills' should check requirements or selected ones?

What is "the inkfish thing"? ^^ Nevermind, you're talking about the code block you posted. Mhm, maybe it was like this in pre-RE?
And yes, all official item scripts which make use of itemskill should check for the required items and states. (skill_require_db.txt) If there is an item which does not make use of this I can simply set the optional flag, so don't worry.

alright I'll dump the blocked sections, thank you :D

But pay attention when removing that block. Hocus-Pocus should not check the requirements.

Ind 
changed status to: Fixed

But it still consume SP :/

Ind 
changed status to: Needs More Info

I've reverted and am waiting for more information, this all-or-none thing was breaking behavior for a high number of items.

We can test this on ~aegis server~ :D