View previous topic :: View next topic |
Author |
Message |
Cyan Bloodbane
Joined: 25 Nov 2005 Posts: 23 Location: Somewhere in Italy
|
Posted: Sun Mar 01, 2009 11:43 Post subject: [EVENTS]Use Feat |
|
|
Hi, i got a problem with use feat hook on a custom feat.
When i use GetEventSubType, the value returned seems to be incorrect.
It happens only with custom feats i added to feat.2da, the correct id would be 1116 but it returns 92.
I don't know if i did something wrong, but i don't think so.
There is the code :
Code: |
void main()
{
object obPC = OBJECT_SELF;
int nEvent = GetEventType();
SendMessageToPC(obPC, "Debugging Event Hook ID : "+ IntToString(GetEventSubType()) +"\n\n");
// * Exit
return;
}
|
Holavez |
|
Back to top |
|
|
Quixsilver
Joined: 20 Jan 2009 Posts: 30
|
Posted: Mon Mar 02, 2009 6:05 Post subject: |
|
|
I have the same problem... it seems to wrap at 255 maybe? |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Fri Oct 02, 2009 23:41 Post subject: |
|
|
I've committed a fix for this.
Acaos |
|
Back to top |
|
|
|