-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathModEmail.bas
81 lines (64 loc) · 2.38 KB
/
ModEmail.bas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Attribute VB_Name = "ModCuentas"
' Argentum 20 Game Server
'
' Copyright (C) 2023 Noland Studios LTD
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU Affero General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU Affero General Public License for more details.
'
' You should have received a copy of the GNU Affero General Public License
' along with this program. If not, see <https://www.gnu.org/licenses/>.
'
' This program was based on Argentum Online 0.11.6
' Copyright (C) 2002 Márquez Pablo Ignacio
'
' Argentum Online is based on Baronsoft's VB6 Online RPG
' You can contact the original creator of ORE at [email protected]
' for more information about ORE please visit http://www.baronsoft.com/
'
'
'
Option Explicit
Public Function GetUserGuildIndex(ByVal UserName As String) As Integer
On Error GoTo GetUserGuildIndex_Err
100 If InStrB(UserName, "\") <> 0 Then
102 UserName = Replace(UserName, "\", vbNullString)
End If
104 If InStrB(UserName, "/") <> 0 Then
106 UserName = Replace(UserName, "/", vbNullString)
End If
108 If InStrB(UserName, ".") <> 0 Then
110 UserName = Replace(UserName, ".", vbNullString)
End If
116 GetUserGuildIndex = GetUserGuildIndexDatabase(UserName)
Exit Function
GetUserGuildIndex_Err:
118 Call TraceError(Err.Number, Err.Description, "ModCuentas.GetUserGuildIndex", Erl)
End Function
Public Function ObtenerCriminal(ByVal Name As String) As Byte
On Error GoTo ErrorHandler
Dim Criminal As Byte
102 Criminal = GetUserStatusDatabase(Name)
106 If EsRolesMaster(Name) Then
108 Criminal = 3
110 ElseIf EsConsejero(Name) Then
112 Criminal = 4
114 ElseIf EsSemiDios(Name) Then
116 Criminal = 5
118 ElseIf EsDios(Name) Then
120 Criminal = 6
122 ElseIf EsAdmin(Name) Then
124 Criminal = 7
End If
126 ObtenerCriminal = Criminal
Exit Function
ErrorHandler:
128 ObtenerCriminal = 1
End Function