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 Events
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 10, 11, 12  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
max196



Joined: 26 Jun 2008
Posts: 30

PostPosted: Mon Sep 22, 2008 19:55    Post subject: Reply with quote

Is there a way to catch the "set trap" event?

Using skill event set_trap do not catch any event? Is it normal?
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 509

PostPosted: Mon Sep 22, 2008 23:00    Post subject: Reply with quote

It's possible catch it in OnUnacquire event.

example:
Code:
object oItem = GetModuleItemLost();
object oPC = GetModuleItemLostBy();
 if(GetSkillRank(SKILL_SET_TRAP,oPC,TRUE)>0 && GetItemHasItemProperty(oItem,ITEM_PROPERTY_TRAP))
 {
 object oTrapped = GetNearestTrapToObject(oPC,FALSE);
 }


but I think its not reliable and it deserve nwnx event Wink
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Tue Sep 23, 2008 1:24    Post subject: Reply with quote

It's reliable, just hacky. There's a trap system on the vault that uses it, and HG used it for years without issue. Also, if I remember correctly, it makes getting the set trap, as opposed to the kit that was unacquired, more complicated. All in all, I think an event would be nice, if unnecessary.

Funky
Back to top
View user's profile Send private message
jec2



Joined: 17 Jul 2008
Posts: 49

PostPosted: Mon Sep 29, 2008 20:09    Post subject: Reply with quote

acaos wrote:
scarface wrote:
Any news on my request?


I did some research and it would take a while to do. However, using instant feats doesn't disable attacking - you might consider using those instead.

jec2 wrote:
Occasionally getting this message :

EVENTS: OnCreate() failed.


You'll need to post the output of the nwnx_events.txt log as well.

Acaos


Thanks, sorry it took so long. I had to catch it when it happened in order to get the log file, as it is overwritten at every reset.. it has happened quite often, but i haven't had time to monitor it, so much that i could have posted this sooner..
Anyway, here is the log file you requested for this issue..
Thanks.

NWNX Events version 1.3.1 for Linux.
(c) 2006-2008 by virusman (virusman@virusman.ru)
X Could not find SaveChar function or hook failed: 0
X Could not find ActPickPocket function or hook failed: 0
X Could not find ActAttack function or hook failed: 0
X Could not find UseItem function or hook failed: 0
X Could not find ConversationNodeSelect function or hook failed: 0
X Could not find ConditionalScript function or hook failed: 0
X Could not find SendServerToPlayerQuickChatMessage function or hook failed: 0
X Could not find ExamineItem function or hook failed: 0
X Could not find ExamineCreature function or hook failed: 0
X Could not find ExaminePlaceable function or hook failed: 0
X Could not find ExamineDoor function or hook failed: 0
X Could not find UseSkill function or hook failed: 0
X Could not find UseFeat function or hook failed: 0
X Could not find ToggleMode function or hook failed: 0
X Could not find CastSpell function or hook failed: 0
X Could not find TogglePause function or hook failed: 0
X Could not find PossessFamiliar function or hook failed: 0
! RunProc hooked at 8261f94.
Back to top
View user's profile Send private message
gabonacorp



Joined: 27 Dec 2007
Posts: 12

PostPosted: Mon Oct 20, 2008 23:59    Post subject: Reply with quote

hi,

I downloaded 1.2.2, but I can't find CastSpell event in it. Do I remember wrong when I expect CastSpell event?
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1012
Location: Russia

PostPosted: Tue Oct 21, 2008 0:26    Post subject: Reply with quote

gabonacorp wrote:
hi,

I downloaded 1.2.2, but I can't find CastSpell event in it. Do I remember wrong when I expect CastSpell event?
The version with CastSpell has not been officially released yet.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
gabonacorp



Joined: 27 Dec 2007
Posts: 12

PostPosted: Tue Oct 21, 2008 16:40    Post subject: Reply with quote

Can I count on it in the near future?
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1012
Location: Russia

PostPosted: Mon Oct 27, 2008 15:42    Post subject: Reply with quote

Yes, but the current version needs testing before release.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Mon Oct 27, 2008 17:21    Post subject: Reply with quote

We've been using the current version very, very extensively on HG for months without issues.

Acaos
Back to top
View user's profile Send private message
jec2



Joined: 17 Jul 2008
Posts: 49

PostPosted: Tue Nov 11, 2008 9:46    Post subject: Events errors from latest events log(svn 190) Reply with quote

NWNX Events version 1.3.1 for Linux.
2006-2008 by virusman (virusman@virusman.ru)
! SaveChar hooked at 805d910.
! ActPickPocket hooked at 810a3f4.
! ActAttack hooked at 81188d4.
! UseItem hooked at 81159bc.
! ConversationNodeSelect hooked at 823deac.
! ConditionalScript hooked at 823cab0.
! SendServerToPlayerQuickChatMessage hooked at 8068dec.
! ExamineItem hooked at 8073f9c.
! ExamineCreature hooked at 8073958.
! ExaminePlaceable hooked at 8074668.
! ExamineDoor hooked at 8074c50.
! UseSkill hooked at 812b1d8.
! UseFeat hooked at 812a004.
! ToggleMode hooked at 812bcb4.
! CastSpell hooked at 811610c.
X Could not find TogglePause function or hook failed: 0
X Could not find PossessFamiliar function or hook failed: 0
! RunProc hooked at 8261f94.


not a big deal, but thought id post so you can see it..
thanks.

jec2
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1012
Location: Russia

PostPosted: Wed Nov 12, 2008 12:47    Post subject: Reply with quote

NWNX Events 1.3.1 (Linux)
http://data.virusman.ru/nwn/nwnx_events-1.3.1-linux.rar
  • New events:
    • EVENT_TYPE_CAST_SPELL (Acaos)
    • EVENT_TYPE_TOGGLE_PAUSE (elven)
    • EVENT_TYPE_POSSESS_FAMILIAR (elven)

  • New function:
    Code:
    void SetGlobalEventHandler(int nEventID, string sHandler);
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
max196



Joined: 26 Jun 2008
Posts: 30

PostPosted: Sun Dec 14, 2008 15:00    Post subject: Reply with quote

Is there a way to get the "cancel polymorph" event?

Thanks,
Max
Back to top
View user's profile Send private message
Nob



Joined: 16 Apr 2005
Posts: 21

PostPosted: Wed Feb 18, 2009 10:24    Post subject: Reply with quote

So far in my experimenting it appears that the toggle mode hook only works when a mode is explicitly toggled, rather than when it's activated/deactived by another means. (eg attacking out of stealth, moving while in expertise)

Is there anyway we can have toggle mode work regardless of what triggers the mode to be activated or deactivated?
Back to top
View user's profile Send private message
Nob



Joined: 16 Apr 2005
Posts: 21

PostPosted: Thu Feb 19, 2009 0:19    Post subject: Reply with quote

Also future requests:
Could we possibly get an on counterspell event as well similar to the present events? It'd be nice to be able to bypass event under certain circumstances.
Back to top
View user's profile Send private message
Zunath



Joined: 06 Jul 2006
Posts: 181

PostPosted: Wed Mar 04, 2009 17:18    Post subject: Reply with quote

It's probably a lost cause, but is there any chance we'll see the SelectConversationNode events for Windows?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3 ... 5, 6, 7 ... 10, 11, 12  Next
Page 6 of 12

 
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