logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
NWNX_Patch
Goto page Previous  1, 2, 3 ... 15, 16, 17 ... 42, 43, 44  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Antegate



Joined: 20 Apr 2012
Posts: 100

PostPosted: Thu Jul 20, 2017 12:49    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 145

PostPosted: Thu Jul 20, 2017 16:09    Post subject: Reply with quote

Thanks Smile
And you have not implemented the possibility AOO with ranged weapons?
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Fri Jul 21, 2017 10:34    Post subject: Reply with quote

Valbor wrote:
Thanks Smile
And you have not implemented the possibility AOO with ranged weapons?

EDIT: managed to do this, next release then.

void NWNXPatch_BroadcastAttackOfOpportunity(object oCreature, object oAttacker, int bAllowRanged=FALSE);
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 145

PostPosted: Fri Jul 21, 2017 21:12    Post subject: Reply with quote

NWNXPatch_CheckItemFitsInventory yet not working in multiplayer game?
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Fri Jul 21, 2017 21:27    Post subject: Reply with quote

Valbor wrote:
NWNXPatch_CheckItemFitsInventory yet not working in multiplayer game?

checked it and you are right, I forgot to add the functionality into server
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 145

PostPosted: Sat Jul 22, 2017 6:42    Post subject: Reply with quote

Can there be a function to change the Package from class?
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Sat Jul 22, 2017 19:16    Post subject: Reply with quote

Valbor wrote:
Can there be a function to change the Package from class?
Why?

Package is simply a 2da of preffered choices when levelling up henchman or when creating new character where it choose some feats/skills for you.

There is no "package" stored inside creature in engine AFAIK its used always only for one time job and once used you cannot reverse it.

Why do you want this? What are you trying to do?
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 145

PostPosted: Sat Jul 22, 2017 19:34    Post subject: Reply with quote

ShaDoOoW wrote:
Valbor wrote:
Can there be a function to change the Package from class?
Why?

Package is simply a 2da of preffered choices when levelling up henchman or when creating new character where it choose some feats/skills for you.

There is no "package" stored inside creature in engine AFAIK its used always only for one time job and once used you cannot reverse it.

Why do you want this? What are you trying to do?

With function NWNXFuncs_ReplaceClass i change the class of Fighter on Wizard, and then click the button recommended by at level-up, then my hero the default is pumping abilities, skills, feats etc from class of Fighter and not from Wizard, because a starting package from Fighter class is still on my hero.
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Sat Jul 22, 2017 19:42    Post subject: Reply with quote

Valbor wrote:
With function NWNXFuncs_ReplaceClass i change the class of Fighter on Wizard, and then click the button recommended by at level-up, then my hero the default is pumping abilities, skills, feats etc from class of Fighter and not from Wizard, because a starting package from Fighter class is still on my hero.

Ah I see. Found it, its actually stored "starting package". Will do.
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 145

PostPosted: Sat Jul 22, 2017 19:48    Post subject: Reply with quote

ShaDoOoW wrote:
Ah I see. Found it, its actually stored "starting package". Will do.

This is a very necessary thing for my project, and if you succeed to do it, then i'll be grateful.
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Tue Jul 25, 2017 1:55    Post subject: Reply with quote

NWNCX_Patch and NWNX_Patch v1.25

DOWNLOAD - contains updated include files and updated softcoded scripts

Fixes:
- SetAreaWind will now automatically perform the changes to all clients in given area (well at least if the clients uses NWNCX with this nwncx_patch plugin)
- added missing code into nwnx_patch for function NWNXPatch_CheckItemFitsInventory

New features:
- function NWNXPatch_BroadcastAttackOfOpportunity now takes third parameter int bAllowRanged=FALSE, if TRUE aoo will be possible with ranged weapon as well

New custom functions:
int NWNXPatch_VerifyClientRunningNWNCX(object oPlayer);
int NWNXPatch_GetStartingPackage(object oCreature);
void NWNXPatch_SetStartingPackage(object oCreature, int nPackage);
void NWNXPatch_SetAreaDayTime(object oArea, int nDayTime);
int NWNXPatch_GetAreaColor(object oArea, int nType);
void NWNXPatch_SetAreaColor(object oArea, int nType, int nColor);

Notes:
I couldn't test NWNXPatch_VerifyClientRunningNWNCX properly because it only works when player connects into multiplayer into character selection. I am testing in client, so let me know if it works or not. Should return 125 if it works.

To Antegate: NWNXPatch_SetAreaColor is a "multifunction" that will set area ambient, diffuse and fog color. Check notes on the function in 70_inc_nwnx.nss
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Antegate



Joined: 20 Apr 2012
Posts: 100

PostPosted: Tue Jul 25, 2017 8:10    Post subject: Reply with quote

Thanks much Smile
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 145

PostPosted: Tue Jul 25, 2017 17:07    Post subject: Reply with quote

NWNXPatch_VerifyClientRunningNWNCX Tested in multiplayer on client version 1.23 and 1.24, returns 0, also as without the patch. At version 1.25 return 125.
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 584

PostPosted: Tue Jul 25, 2017 17:15    Post subject: Reply with quote

Valbor wrote:
NWNXPatch_VerifyClientRunningNWNCX Tested in multiplayer on client version 1.23 and 1.24, returns 0, also as without the patch. At version 1.25 return 125.

Oh yes. This was added just now and so it won't work properly if player uses older version of the clients. I will work only from 1.25 upwards.
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 145

PostPosted: Tue Jul 25, 2017 17:20    Post subject: Reply with quote

And thanks for NWNXPatch_SetStartingPackage with this i can now change a set of skills and feats at Henchman when level-up at the right moment for me, not changing the Henchman Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3 ... 15, 16, 17 ... 42, 43, 44  Next
Page 16 of 44

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group