Skip to content

Conversation

@Helianthella
Copy link
Member

Pull Request Prelude

Changes Proposed

Adds getguildinfo() and deprecates getguildname(), getguildmaster(), getguildmasterid()

Script conversion:

find npc db -type f -exec sed -i -e "s/getguildname(/getguildinfo(GUILDINFO_NAME, /g" \
-e "s/getguildmaster(/getguildinfo(GUILDINFO_MASTER_NAME, /g" \
-e "s/getguildmasterid(/getguildinfo(GUILDINFO_MASTER_CID, /g" {} +

@Helianthella Helianthella added component:core:scriptengine Affecting the script engine or the script commands component:documentation Affecting the documentation in the doc/ folder labels Oct 20, 2019
@Helianthella Helianthella added this to the Release v2019.11.17 milestone Oct 20, 2019
@Helianthella Helianthella added the component:scripts Affecting the scripts and NPCs label Oct 20, 2019
break;
default:
ShowError("script:getguildinfo: unknown info type!\n");
st->state = END;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here probably better add always triggered assert for dump call stack

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

returning false already triggers reportsrc

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reportsrc not show call stack. it show only some info about npc

@bWolfie
Copy link
Contributor

bWolfie commented Oct 23, 2019

nice one

@MishimaHaruna MishimaHaruna merged commit d92a4cd into HerculesWS:master Nov 17, 2019
@Helianthella Helianthella deleted the guild branch November 17, 2019 23:00
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 component:scripts Affecting the scripts and NPCs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants