Here is some of the scripts i got so far.
Tell me what you think, and you think is possible to create a server out of VB. Cuz im kinda new to all the advanced things at VB.
I have not created any systems yet, but if anybody knows VB and want to help, hook me up at PM.
Scripts
Movement:
Login Message
Left game
Stat Points
Code:
Sub OnScriptedTile(index, Movement) ' Called when char move
Dim X
Dim Y
Dim Map
X = GetCharX(index)
Y = GetCharY(index)
Map = GetCharMap(index)
Select Case Map
Case 1
If X = 5 And Y = 10 Then
'Code
End If
Case 2
If X = 4 And Y = 1 Then
If GetCharDir(index) = 0 Then
End If
End If
End Select
End Sub
Code:
Sub JoinGame(index) ' Called when a char log in
GAME_WEBSITE = "elitepvpers.com"
GAME_SERVER = "VisualBasic Server"
Call CharMsg(index, "Welcome to " & GAME_SERVER & " Please visit the offical website at " & GAME_WEBSITE & ".", C_BRIGHTBLUE)
Call SendMOTD(index)
Call SendWhosOnline(index)
If GetCharAccess(index) < 1 Then
Call GlobalMsg(GetCharName(index) & " (" & GetClassName(GetCharClassID(index)) & ") has joined " & GAME_SERVER & "!", C_WHITE)
Call AdminMsg("IP: " & GetCharIP(index), C_WHITE)
Else
Call GlobalMsg(GetCharName(index) & " (" & GetCharAccessName(index) & ") has joined " & GAME_SERVER & "!", C_WHITE)
End If
End Sub
' GlobalMSG is type 2011
' AdminMSG is type 2000, but send to admins GM's & PM's only
Code:
Sub LeftGame(index) ' Called when char leave the server
If GetCharAccess(index) < 1 Then
Call GlobalMsg(GetCharName(index) & " (" & GetClassName(GetCharClassID(index)) & ") has left " & GetServerName & "!", C_GREY)
Else
Call GlobalMsg(GetCharName(index) & " (" & GetCharAccessName(index) & ") has left " & GetServerName & "!", C_GREY)
End If
End Sub
Code:
Sub UseStatPoint(Index, PointType) ' Called when a char set stat points
If GetCharPOINTS(Index) > 0 Then
Select Case PointType
Case 0
If GetCharSTR(Index) + 1 > 599 Then
Call CharMsg(Index, "You have maxed your strength!", C_RED)
Exit Sub
End If
Call SetCharSTR(Index, GetCharSTR(Index) + 1)
Call CharMsg(Index, "You have gained more strength!", C_GREY)
Case 1
If GetCharVIT(Index) + 1 > 599 Then
Call CharMsg(Index, "You have maxed your VITense!", C_RED)
Exit Sub
End If
Call SetCharVIT(Index, GetCharVIT(Index) + 1)
Call CharMsg(Index, "You have gained more VITense!", C_GREY)
Case 2
If GetCharSPI(Index) + 1 > 599 Then
Call CharMsg(Index, "You have maxed your SPIc!", C_RED)
Exit Sub
End If
Call SetCharSPI(Index, GetCharSPI(Index) + 1)
Call CharMsg(Index, "You have gained more SPIc!", C_GREY)
Case 3
If GetCharAGI(Index) + 1 > 599 Then
Call CharMsg(Index, "You have maxed your AGI!", C_RED)
Exit Sub
End If
Call SetCharAGI(Index, GetCharAGI(Index) + 1)
Call CharMsg(Index, "You have gained more AGI!", C_GREY)
End Select
Call SetCharPOINTS(Index, GetCharPOINTS(Index) - 1)
Else
Call CharMsg(Index, "You have no stat points to train with!", C_GREY)
End If
End Sub







