Skip to content

Conversation

@Emistry
Copy link
Member

@Emistry Emistry commented Apr 9, 2019

Pull Request Prelude

Changes Proposed

  • return an array @inventorylist_favorite
  • indicate whether an item in the inventory are located inside favorite tab or not.

Issues addressed:
Allow npc script to detect if an item are located in favorite tab.

Sample:

prontera,155,181,5	script	sample	4_F_KAFRA1,{
	getinventorylist;
	mes "Favourite Items";
	for (.@i = 0; .@i < @inventorylist_count; .@i++) {
		if (@inventorylist_favorite[.@i]) 
			mes "~ "+ getitemname(@inventorylist_id[.@i]);
	}
	close;
}

sample

@Emistry Emistry added component:core:scriptengine Affecting the script engine or the script commands component:documentation Affecting the documentation in the doc/ folder labels Apr 9, 2019
@Emistry Emistry changed the base branch from stable to master April 9, 2019 14:38
@HerculesWSAPI
Copy link
Contributor

This change is Reviewable

- return an array `@inventorylist_favorite`
- indicate whether an item in the inventory are located inside favorite tab or not.
@Emistry Emistry force-pushed the scriptcommand_getinventorylist_favourite branch from 7dc1cba to 33d403c Compare April 9, 2019 16:31
@AnnieRuru AnnieRuru added this to the Release v2019.05.05 milestone Apr 10, 2019
@MishimaHaruna MishimaHaruna merged commit 4afb21e into HerculesWS:master May 5, 2019
@Emistry Emistry deleted the scriptcommand_getinventorylist_favourite branch June 2, 2019 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:core:scriptengine Affecting the script engine or the script commands component:documentation Affecting the documentation in the doc/ folder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants