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

NPC's Do Nothing! (Need VB6 Help!)


Iman7
 Share

Recommended Posts

I was making my game in eclipsevb 2.2.0 and whenever i kill an enemy they do their drops and stuff but they dont attack or respawn! And every once in a while I get runtime error 9…please help!
Link to comment
Share on other sites

There was a problem with the map's not respawning (except map 1) but that is fixed in the newer version.

As for attacking, they probably won't attack you if you are an admin.

For the RTE 9, when do you get the error? what are you doing when it happens.
Link to comment
Share on other sites

here [http://www.touchofdeathforums.com/community/index.php?/topic/131752-eclipsevb-v221/unread/](http://www.touchofdeathforums.com/community/index.php?/topic/131752-eclipsevb-v221/unread/)
Link to comment
Share on other sites

I tried everything and I know that the npc is causing the runtime error but i dont know what im doing wrong ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)
Link to comment
Share on other sites

Sorry for double post but I got VB6 now what do I do? Please explain very detailed because I have no idea how to use this software…... ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)
Link to comment
Share on other sites

If you don't know how to use VB6 , then hire a programmer…

run the game using vb6 , "You can see a (Play) button , a arrow that was pointing > " then play it , if an error appear press Debug , then tell us the line of the error.
Link to comment
Share on other sites

Do you know how i acctually open it like what code I write? I googled it but found nothing ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)
Link to comment
Share on other sites

DAAAHHH … Even when i was a newbie i already know how to start it on vb6 without anyone help ...

Just open the vbp file on server/client side , then press the arrow pointing on the right , then play the game , and if there's an error press "Debug"

got that?
Link to comment
Share on other sites

Okay I found some .vbp files in the template,projects folder but what now do i have to make a file?

PS:I have a free version of it.

Edit:Nevermind so I opened the server.vbp file with VB6 and then ran it. It says

Runtime error 429

License information for this component not found. You do not have an appropriate liscense to use this functionality in the

design enviorment.

Then I clicked debug and it showed this,

```
Public Sub InitServer()

Dim i As Long

Dim F As Long

Dim StartTime As Long

Dim EndTime As Long

Call InitMessages

StartTime = timeGetTime

frmServer.Show

' Initialize the random-number generator

Randomize

' Check if the directory is there, if its not make it

ChkDir App.Path & "\data\", "accounts"

ChkDir App.Path & "\data\", "animations"

ChkDir App.Path & "\data\", "banks"

ChkDir App.Path & "\data\", "items"

ChkDir App.Path & "\data\", "logs"

ChkDir App.Path & "\data\", "maps"

ChkDir App.Path & "\data\", "npcs"

ChkDir App.Path & "\data\", "resources"

ChkDir App.Path & "\data\", "shops"

ChkDir App.Path & "\data\", "spells"

ChkDir App.Path & "\data\", "convs"

ChkDir App.Path & "\data\", "quests"

' set quote character

vbQuote = ChrW$(34)

' load options, set if they dont exist

If Not FileExist(App.Path & "\data\options.ini", True) Then

Options.Game_Name = "EclipseVB"

Options.Port = 7001

Options.MOTD = "Welcome to EclipseVB."

Options.Website = "http://www.touchofdeathforums.com/"

SaveOptions

Else

LoadOptions

End If

' Get the listening socket ready to go

frmServer.Socket(0).RemoteHost = frmServer.Socket(0).LocalIP

frmServer.Socket(0).LocalPort = Options.Port

' Init all the player sockets

Call SetStatus("Initializing player array...")

For i = 1 To MAX_PLAYERS

Call ClearPlayer(i)

Load frmServer.Socket(i)

Next

' Serves as a constructor

Call ClearGameData

Call LoadGameData

Call SetStatus("Spawning map items...")

Call SpawnAllMapsItems

Call SetStatus("Spawning map npcs...")

Call SpawnAllMapNpcs

Call SetStatus("Creating map cache...")

Call CreateFullMapCache

Call SetStatus("Loading System Tray...")

Call LoadSystemTray

' Check if the master charlist file exists for checking duplicate names, and if it doesnt make it

If Not FileExist("data\accounts\charlist.txt") Then

F = FreeFile

Open App.Path & "\data\accounts\charlist.txt" For Output As #F

Close #F

End If

' Start listening

frmServer.Socket(0).Listen

Call UpdateCaption

' Check how long it took to start up

EndTime = timeGetTime

Call SetStatus("Initialization complete. Server loaded in " & EndTime - StartTime & "ms.")

' reset shutdown value

isShuttingDown = False

' Starts the server loop

ServerLoop

End Sub

Public Sub DestroyServer()

Dim i As Long

ServerOnline = False

Call SetStatus("Destroying System Tray...")

Call DestroySystemTray

Call SetStatus("Saving players online...")

Call SaveAllPlayersOnline

Call ClearGameData

Call SetStatus("Unloading sockets...")

For i = 1 To MAX_PLAYERS

Unload frmServer.Socket(i)

Next

End

End Sub

Public Sub SetStatus(ByVal Status As String)

Call TextAdd(Status)

DoEvents

End Sub

Public Sub ClearGameData()

Call SetStatus("Clearing temp tile fields...")

Call ClearTempTiles

Call SetStatus("Clearing maps...")

Call ClearMaps

Call SetStatus("Clearing map items...")

Call ClearMapItems

Call SetStatus("Clearing map npcs...")

Call ClearMapNpcs

Call SetStatus("Clearing npcs...")

Call ClearNpcs

Call SetStatus("Clearing resources...")

Call ClearResources

Call SetStatus("Clearing items...")

Call ClearItems

Call SetStatus("Clearing shops...")

Call ClearShops

Call SetStatus("Clearing spells...")

Call ClearSpells

Call SetStatus("Clearing animations...")

Call ClearAnimations

Call SetStatus("Clearing conversations...")

Call ClearConvs

Call SetStatus("Clearing quests...")

Call ClearQuests

End Sub

Private Sub LoadGameData()

Call SetStatus("Loading classes...")

Call LoadClasses

Call SetStatus("Loading maps...")

Call LoadMaps

Call SetStatus("Loading items...")

Call LoadItems

Call SetStatus("Loading npcs...")

Call LoadNpcs

Call SetStatus("Loading resources...")

Call LoadResources

Call SetStatus("Loading shops...")

Call LoadShops

Call SetStatus("Loading spells...")

Call LoadSpells

Call SetStatus("Loading animations...")

Call LoadAnimations

Call SetStatus("Loading conversations...")

Call LoadConvs

Call SetStatus("Loading quests...")

Call LoadQuests

End Sub

Public Sub TextAdd(Msg As String)

NumLines = NumLines + 1

If NumLines >= MAX_LINES Then

frmServer.txtText.Text = vbNullString

NumLines = 0

End If

frmServer.txtText.Text = frmServer.txtText.Text & vbNewLine & Msg

frmServer.txtText.SelStart = Len(frmServer.txtText.Text)

End Sub

' Used for checking validity of names

Function isNameLegal(ByVal sInput As Integer) As Boolean

If (sInput >= 65 And sInput <= 90) Or (sInput >= 97 And sInput <= 122) Or (sInput = 95) Or (sInput = 32) Or (sInput >= 48 And sInput <= 57) Then

isNameLegal = True

End If

End Function

```
Link to comment
Share on other sites

Yes I do can you help me check out the code above?

EDIT: Balls….....I figured out I need a licensed product but I realy don't want to pay for it, I don't have money to waste on

things like that ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)

Another EDIT: I looked for the real version and I couldn't even find it...........
Link to comment
Share on other sites

> Yes I do can you help me check out the code above?
>
> EDIT: Balls….....I figured out I need a licensed product but I realy don't want to pay for it, I don't have money to waste on
>
> things like that ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)
>
> Another EDIT: I looked for the real version and I couldn't even find it...........

If you don't want to buy, try torrenting it.

If you don't want to risk anything then don't try making games or try some other game creator or engine.
Link to comment
Share on other sites

BUMP

I have an idea but I need someone who knows they can fix this error on their own. This sounds kinda lame and rude but I will send someone the files to my game, server and all (That`s why I need to trust them, plus the game is just for me and my buds anyways!)

and have them fix it for me, cause a lot of people like Matthew and Sherwin know how to fix this, so if your in for the job then please ask and I will send you the files! When your done send the fixed game back and I will have to owe you one ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) (Must be at least over newbie rank please!)
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...