Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[WN] Guild System


Guest
 Share

Recommended Posts

Hey, I recently purchased the Wind's Nocturne engine and there seems to be a problem with the guild system, if I even do anything with it e.g. promote someone it gives me a mismatch error: 13, I was wondering if anyone had found a fix for it yet?
Link to comment
Share on other sites

Also it I put anything in the textbox above promote like say I put an "a" into it the thing (dunno what you call it, the little "I" symbol that means you're typing there) moves to the actual chatbox.
Link to comment
Share on other sites

Yeah it works now, doesn't give any errors (just figuring out the guild system now, how to add ranks, etc.) Also any ideas about how to fix typing in one box and the text moving to the chat box? It does that in the guild menu and Quest Name in the quest editor.
Link to comment
Share on other sites

@Rilêy¿!¡:

> I, myself is learning to . Id say remove a bit of code from the keyhandler. if it ducks up put it back. xD

That's EXACTLY what Robin said, just with worse spelling and grammar.

Well, I don't actually own WN so I wouldn't be able to tell you exactly, but there should be a bit of code like this:
```
Public Sub SetFocusOnChat()

    On Error Resume Next 'prevent RTE5, no way to handle error

    frmMainGame.txtMyChat.SetFocus
End Sub

```
Changing that to:
```
Public Sub SetFocusOnChat()
    On Error Resume Next 'prevent RTE5, no way to handle error
    If GetActiveWindow() = frmMainGame.hWnd Then
        frmMainGame.txtMyChat.SetFocus
    End If
End Sub

```
Aaand add this to the top of modGeneral.
```
Public Declare Function GetActiveWindow Lib "user32" () As Long

```
This in theory should work, can't test it as I don't have your problem on my copy of EO, which like I said is way different from WN.
Link to comment
Share on other sites

Change

```
' set focus if making it visible
    If txtMyChat.Visible = True Then txtMyChat.SetFocus
```
To

```
' set focus if making it visible
    If KeyAscii = vbKeyReturn = True Then txtMyChat.SetFocus
```
Found here, thanks to DJMaxus for the fix

http://www.touchofdeathforums.com/smf/index.php/topic,65621.0.html

I was having the same problem when I was typing in the administration menu.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...