05.08.2016, 04:30
[Include] FCNPC A.I.
06.08.2016, 00:41
06.08.2016, 05:41
08.10.2016, 17:57
(
Last edited by Freaksken; 17/04/2017 at 10:02 PM.
)
FCNPC Boss 1.0.3
Changes:
Other notes:
Changes:
- Internal: Better strcpy function (by ZiGGi).
- Internal: Better GetTickCount overflow fix (by ZiGGi).
- Fixed useFightStyle default value to be conform with FCNPC (true to false).
- Added WOW_GetBossAllowNPCTargets and WOW_SetBossAllowNPCTargets which defaults to false.
- Renamed WOW_GetBossNPCID and WOW_GetBossIDFromPlayerID to be conform with samp naming conventions.
- Added WOW_GetBossPlayerID which is an alias for WOW_GetBossNPCID.
- Added WOW_IsEncounterStarted and WOW_StopEncounter.
Other notes:
- Special thanks to ZiGGi for the fixes. Credits updated.
- I think I have found a better (and more neutral) name for this include: FCNPC Extended. Everything will be prefixed with FCNPCEX_ instead of WOW_. Let me know what you think.
- I am working on the aggro/threat feature, that will allow the NPC to switch targets during combat.
- I am also working on a Single-Player-Like mission that can be played in a party of 2-4 players. Here's a sneak peak of the unfinished mission: Screenshots and Videos thread. There are still some small bugs in this first chapter.
13.01.2017, 18:55
WOWExample.pwn(601) : error 017: undefined symbol "WOW_GetBossIdFromPlayerid"
14.01.2017, 13:41
Quote:
WOWExample.pwn(601) : error 017: undefined symbol "WOW_GetBossIdFromPlayerid"
|
You'll have to redownload the examples again, or change WOW_GetBossNPCId to WOW_GetBossNPCID and WOW_GetBossIdFromPlayerid to WOW_GetBossIDFromPlayerID in your script.
14.01.2017, 15:23
Quote:
I see I forgot to update the function names in the example scripts. That's fixed now.
You'll have to redownload the examples again, or change WOW_GetBossNPCId to WOW_GetBossNPCID and WOW_GetBossIdFromPlayerid to WOW_GetBossIDFromPlayerID in your script. |
25.03.2017, 22:39
(
Last edited by Freaksken; 14/04/2017 at 10:44 PM.
)
Small update:
I've rewritten the main post so that it is not just about the WOW part, because the include can do a lot more than that.
I've changed the name to "FCNPC A.I.", because I felt that was better than "FCNPC Extended".
I've not changed the function prefixes, like I've said I would.
EDIT:
When I'm 100% sure of the new name, I will ask a beta tester to change the name of the thread.
EDIT 2:
The name change is now present in the whole repository.
I've also changed my mind about the prefix. It is changed from "WOW_", to "FAI_". Main post, wiki and whole repository updated with those changes.
I've rewritten the main post so that it is not just about the WOW part, because the include can do a lot more than that.
I've changed the name to "FCNPC A.I.", because I felt that was better than "FCNPC Extended".
I've not changed the function prefixes, like I've said I would.
EDIT:
When I'm 100% sure of the new name, I will ask a beta tester to change the name of the thread.
EDIT 2:
The name change is now present in the whole repository.
I've also changed my mind about the prefix. It is changed from "WOW_", to "FAI_". Main post, wiki and whole repository updated with those changes.
17.04.2017, 22:01
(
Last edited by Freaksken; 11/07/2017 at 06:26 AM.
)
FCNPC A.I. 1.1.0
Changes:
Changes:
- Add license, credits and changelog files
- Add links in all files to the license and credits
- Added WOW_GetBossIDFromNPCID which is an alias for WOW_GetBossIDFromPlayerID
- Changed all aliases to macros, so that they don't call another pawn function
- Execute OnFilterScriptExit, OnGameModeExit and OnPlayerDisconnect hooks after they are called in the user's script, so you can use functions of the include in those callbacks
- Namechange to FCNPC A.I. in whole repo
- Changed prefix to FAI_ (also for the above mentioned functions)
- Renamed source and include files to FAI.pwn and FAI.inc to be conform with the namechange
- Updated example scripts by remove unnecessary destroy lines since the include does this automatically when the script exits
- Updated example scripts by destroying and resetting everything under OnPlayerDisconnect instead of OnFilterScriptExit, to handle all disconnect situatons, including script exit
- Updated example scripts with changed prefix
11.07.2017, 06:27
(
Last edited by Freaksken; 04/01/2019 at 11:23 PM.
)
FCNPC A.I. 1.1.1
Changes:
Changes:
- Added behaviour
- Added billion suffix to FAI_SHORTEN_HEALTH
- Added special distance value -1 to FAI_SetBossRangedAttackInfo and FAI_SetBossMeleeAttackInfo to keep the NPC in place when attacking
- Renamed FAI_SHORTEN_HEALTH to FAI_SHORTEN_NUMBERS
- Renamed distance parameter from FAI_GetBossRangedAttackInfo, FAI_SetBossRangedAttackInfo, FAI_GetBossMeleeAttackInfo and FAI_SetBossMeleeAttackInfo to range
- Deleted spell and percent types
- Deleted FAI_CreateFull... natives
- Changed max health default to 100.0
- Changed display range default to 0.0
- Changed move type default to MOVE_TYPE_AUTO and changed move type default in FAI_SetBossMoveInfo to MOVE_TYPE_AUTO
- Changed allow NPC targets default to true
- Fixed unnecessary loop in FAI_DestroyAllSpells
- Added an additional check to FAI_IsPlayerInDisplayRange and FAI_IsPlayerInAggroRange
- Examples updated with above changes
- Added SummonAdds spell to MMO example (video)
- Added reduce cast progress a bit when damaged to MMO example
25.07.2017, 18:54
C:\Users\User\Desktop\samp\pawno\include\FAI.inc(4 06) : error 017: undefined symbol "MapAndreas_GetAddress"
C:\Users\User\Desktop\samp\pawno\include\FAI.inc(4 10) : error 017: undefined symbol "MapAndreas_GetAddress"
C:\Users\User\Desktop\samp\pawno\include\FAI.inc(4 10) : error 017: undefined symbol "MapAndreas_GetAddress"
25.07.2017, 19:27
Quote:
C:\Users\User\Desktop\samp\pawno\include\FAI.inc(4 06) : error 017: undefined symbol "MapAndreas_GetAddress"
C:\Users\User\Desktop\samp\pawno\include\FAI.inc(4 10) : error 017: undefined symbol "MapAndreas_GetAddress" |
25.07.2017, 21:04
Quote:
25.07.2017, 22:35
12.09.2018, 13:57
For people wanting to help out with testing and give constructive criticism, please check the in development 2.0 branch. It is a complete rewrite and should vastly improve the easy of use of the include due to increased use of hooks.
The include is being split into 2 parts:
This beta version is completely incompatible with older scripts, hence the major version number change. Currently, only the AI functionality is implemented and ready for testing. If you have any notes or questions, you can leave a reply in this thread, contact me on discord, or create an issue on GitHub.
The include is being split into 2 parts:
- FAI.inc
- MMO.inc
This beta version is completely incompatible with older scripts, hence the major version number change. Currently, only the AI functionality is implemented and ready for testing. If you have any notes or questions, you can leave a reply in this thread, contact me on discord, or create an issue on GitHub.
21.10.2018, 18:50
Dude, this is an AMAZING include.
I left SAMP forums in 2014, but this include made me enter my account and make this comment.
Great work.
I left SAMP forums in 2014, but this include made me enter my account and make this comment.
Great work.
22.10.2018, 05:29
I up some ideas with this library.
incredible release.
incredible release.
03.01.2019, 23:40
Does npc have a viewing angle function? Is it not within the scope of the view, will not find and attack the player?
04.01.2019, 01:09
Seems useful. I'll add it when I have some spare time. Current GitHub issue: click.
24.01.2019, 19:47
Ahoy! Awesome plugin.
I try to create NPC for my Team-Deathmatch system. So if there is a lack of players they should replace the missing players.
Do you guys think it may work?
I try to create NPC for my Team-Deathmatch system. So if there is a lack of players they should replace the missing players.
Do you guys think it may work?
« Next Oldest | Next Newest »
Users browsing this thread: 5 Guest(s)