New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow NPC view data modifications #4385
Conversation
* Fixes #4289. * Updated script commands setunitdata and getunitdata to support the modification of NPC view data. * Converted mob_avail database to YAML. Thanks to @4144, @exneval, and @Balferian!
This pull request introduces 1 alert when merging 3980294 into df6385f - view on LGTM.com new alerts:
|
Novice is ID 0, so that sounds right. UNPC_CLASS doesn't just mean job class, it refers to the general display of the NPC. |
Try to walk around in thana_boss or juperos map It will show a crash-popup. |
A client crash or map crash? |
|
for me these novice are headless and pop-up client crash so , maybe it a client-side problem |
Need to change function in map/npc.cpp:
Now there is no novice sprite/client crash. |
* Default NPC view data to JT_INVISIBLE. Thanks to @Balferian!
When use setunitdata getnpcid(0),UNPC_BODY2,1; map server crashed. |
Could you provide your crash dump? Thanks. |
Sample script: `Program received signal SIGSEGV, Segmentation fault. mc = 0x3 |
* LOOK_BODY2 and OPTION_COSTUME adjustment should only apply to players. Thanks to @Balferian!
In-conflict with #4448 |
* Added header document. * Added documentation for mob_avail database. * Adjusted Options to a map instead of a sequence. * Removed SEX_ prefix from Sex. * Removed OPTION_ prefix from Options map. * Cleaned up converter checks to properly discern mob, player, and NPC sprites. * Cleaned up parser checks. * Adjusted mob_avail_db class type. * Updated header documentation. Thanks to @Lemongrass3110!
I have found the problem when use mob_avail to change sprite to JOB It show the headless sprite. Is this a bug or clientside problem ? |
* Corrected the headgear not being displayed. Thanks to @cahya1992!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request introduces 9 alerts when merging 3623d9e into 77d86c6 - view on LGTM.com new alerts:
|
* Added some missing inverted checks. * Cleaned up warning messages. Thanks to @teededung!
Since this is a custom feature, the database will be loaded from import by default now.
Addressed Issue(s): Missed support NPC_viewdata - Job sprites #4289
Server Mode: Pre-renewal and Renewal
Description of Pull Request:
Thanks to @4144, @exneval, and @Balferian!