erkro1 Posted March 14, 2012 Share Posted March 14, 2012 @Mortal:> Server compile error…> [![](http://www10.pic-upload.de/thumb/14.03.12/bh96aq2ffvq.png)](http://www.pic-upload.de/view-13340236/Unbenannt.png.html)Change the npcNum's in that piece of code to Victim Link to comment Share on other sites More sharing options...
Wortel Angels Posted March 14, 2012 Share Posted March 14, 2012 Same error but now its victim lighted Link to comment Share on other sites More sharing options...
Justn Posted March 14, 2012 Share Posted March 14, 2012 this is what it should look like``` ' Drop the goods if they get it For n = 1 To MAX_NPC_DROPS If Npc(Victim).DropItem(n) = 0 Then Exit For If Rnd <= Npc(Victim).DropChance(n) Then Call SpawnItem(Npc(Victim).DropItem(n), Npc(Victim).DropItemValue(n), MapNum, MapNpc(MapNum).Npc(Victim).x, MapNpc(MapNum).Npc(Victim).y) End If Next```I think you are using a custom version like starlight or omega… The pet system for those are buggy anyways you probably shouldn't use it if you are... Link to comment Share on other sites More sharing options...
Wortel Angels Posted March 14, 2012 Share Posted March 14, 2012 @Justn:> this is what it should look like> > ```> ' Drop the goods if they get it> For n = 1 To MAX_NPC_DROPS> If Npc(Victim).DropItem(n) = 0 Then Exit For> If Rnd <= Npc(Victim).DropChance(n) Then> Call SpawnItem(Npc(Victim).DropItem(n), Npc(Victim).DropItemValue(n), MapNum, MapNpc(MapNum).Npc(Victim).x, MapNpc(MapNum).Npc(Victim).y)> End If> Next> ```> I think you are using a custom version like starlight or omega… The pet system for those are buggy anyways you probably shouldn't use it if you are...Error…[![](http://www10.pic-upload.de/thumb/14.03.12/qnf4jjthzvb.png)](http://www.pic-upload.de/view-13345131/Unbenannt.png.html)I use the Starlight files…Which are then the best files ??I heard many about CS:DE but its really so good ? Link to comment Share on other sites More sharing options...
Justn Posted March 14, 2012 Share Posted March 14, 2012 Use the default Eclipse Origins… That way u can add any tutorial you want without issues like this :) Link to comment Share on other sites More sharing options...
Wortel Angels Posted March 14, 2012 Share Posted March 14, 2012 Hm but i cant insert the quest and pet system in an Default EO… im not very good at coding... Link to comment Share on other sites More sharing options...
Scott Posted March 15, 2012 Author Share Posted March 15, 2012 Well considering you moved from petattacknpc to playerattacknpc the variable changed try looking around for clues you don't have to be good at coding, in that sub it is npcNum not victim. It tells you exactly what is wrong, in this case variable not defined this means that the variable does not exist and how can you use something that does not exist? Link to comment Share on other sites More sharing options...
Wing Posted March 15, 2012 Share Posted March 15, 2012 @Scott:> Well considering you moved from petattacknpc to playerattacknpc the variable changed try looking around for clues you don't have to be good at coding, in that sub it is npcNum not victim. It tells you exactly what is wrong, in this case variable not defined this means that the variable does not exist and how can you use something that does not exist?Oh oh! I know! You make it :'D Link to comment Share on other sites More sharing options...
Wortel Angels Posted March 15, 2012 Share Posted March 15, 2012 So :Di changed it to vnpcNum :DIt works :D Thanks"Im the best dance""Oh yea im the best oh yea"Feel like Einstein xD Link to comment Share on other sites More sharing options...
Wortel Angels Posted March 20, 2012 Share Posted March 20, 2012 My server got too many error's… So i downloaded an clean version of EO but now... i can't attack the NPC's... Link to comment Share on other sites More sharing options...
Scott Posted March 20, 2012 Author Share Posted March 20, 2012 @Justn:> did you delete your npcs .dat files out of your "server/data/npcs/" folder? Link to comment Share on other sites More sharing options...
Wortel Angels Posted March 20, 2012 Share Posted March 20, 2012 No xD Thanks now it works Link to comment Share on other sites More sharing options...
harrison858 Posted March 23, 2012 Share Posted March 23, 2012 Hi, I have the altars quest system and upon compiling I get this error.Within **modGameEditors**:```' ////////////////' // Npc Editor //' ////////////////Public Sub NpcEditorInit()Dim i As LongDim SoundSet As Boolean ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler If frmEditor_NPC.Visible = False Then Exit Sub EditorIndex = frmEditor_NPC.lstIndex.ListIndex + 1 ' populate the cache if we need to If Not hasPopulated Then PopulateLists End If ' add the array to the combo frmEditor_NPC.cmbSound.Clear frmEditor_NPC.cmbSound.AddItem "None." For i = 1 To UBound(soundCache) frmEditor_NPC.cmbSound.AddItem soundCache(i) Next ' finished populating With frmEditor_NPC .txtName.text = Trim$(NPC(EditorIndex).Name) .txtAttackSay.text = Trim$(NPC(EditorIndex).AttackSay) If NPC(EditorIndex).Sprite < 0 Or NPC(EditorIndex).Sprite > .scrlSprite.Max Then NPC(EditorIndex).Sprite = 0 .scrlSprite.Value = NPC(EditorIndex).Sprite .txtSpawnSecs.text = CStr(NPC(EditorIndex).SpawnSecs) .cmbBehaviour.ListIndex = NPC(EditorIndex).Behaviour .scrlRange.Value = NPC(EditorIndex).Range .txtChance.text = CStr(NPC(EditorIndex).DropChance(1)) .scrlNum.Value = NPC(EditorIndex).DropItem(1) .scrlValue.Value = NPC(EditorIndex).DropItemValue(1) .txtHP.text = NPC(EditorIndex).HP .txtEXP.text = NPC(EditorIndex).EXP .txtLevel.text = NPC(EditorIndex).Level .txtDamage.text = NPC(EditorIndex).Damage 'ALATAR .chkQuest.Value = NPC(EditorIndex).Quest .scrlQuest.Value = NPC(EditorIndex).QuestNum '/ALATAR ' find the sound we have set If .cmbSound.ListCount >= 0 Then For i = 0 To .cmbSound.ListCount If .cmbSound.List(i) = Trim$(NPC(EditorIndex).Sound) Then .cmbSound.ListIndex = i SoundSet = True End If Next If Not SoundSet Or .cmbSound.ListIndex = -1 Then .cmbSound.ListIndex = 0 End If For i = 1 To Stats.Stat_Count - 1 .scrlStat(i).Value = NPC(EditorIndex).Stat(i) Next End With Call EditorNpc_BltSprite NPC_Changed(EditorIndex) = True ' Error handler Exit Suberrorhandler: HandleError "NpcEditorInit", "modGameEditors", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub```Apparently Altars requires me to overwrite the same file as this **frmEditor_NPC,** so is there a solution to combine both form edits? Link to comment Share on other sites More sharing options...
Justn Posted March 23, 2012 Share Posted March 23, 2012 Yes open up the other form u downloaded in a new project and copy and paste anything new and copy the code for the new stuff Link to comment Share on other sites More sharing options...
Scott Posted March 23, 2012 Author Share Posted March 23, 2012 Justn is exactly right you need to copy and paste the controls(label/slider ect…) from this tutorials frmEditor_NPC to the one from altars system, you will then need to find all the snippets of code that make those controls work and transfer those as well. They will all be named after the controls you transferred so it should be pretty easy let me know if you need any more help. Link to comment Share on other sites More sharing options...
or3o Posted May 14, 2012 Share Posted May 14, 2012 I almost forgot to thank you for this! Thanks a bunch. Link to comment Share on other sites More sharing options...
DarkDino Posted June 10, 2012 Share Posted June 10, 2012 Error whit this :/ :NPC(EditorIndex).DropChance(DropIndex) = 0 Link to comment Share on other sites More sharing options...
Scott Posted June 11, 2012 Author Share Posted June 11, 2012 You forgot to perform the first step.In modType in both CLIENT/SERVER replace NpcRec with this one```Private Type NpcRec Name As String * NAME_LENGTH AttackSay As String * 100 Sound As String * NAME_LENGTH Sprite As Long SpawnSecs As Long Behaviour As Byte Range As Byte DropChance(1 To MAX_NPC_DROPS) As Double DropItem(1 To MAX_NPC_DROPS) As Byte DropItemValue(1 To MAX_NPC_DROPS) As Integer Stat(1 To Stats.Stat_Count - 1) As Byte HP As Long EXP As Long Animation As Long Damage As Long Level As LongEnd Type``` Link to comment Share on other sites More sharing options...
cudauhoan Posted June 18, 2012 Share Posted June 18, 2012 i got User-defined type not defined error and Private Sub lvwInfo_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader is highlighted :sad: Link to comment Share on other sites More sharing options...
AlexTCGPro Posted July 8, 2012 Share Posted July 8, 2012 I did everything like you say but…The npcs don't talk anymore D: Link to comment Share on other sites More sharing options...
Scott Posted July 8, 2012 Author Share Posted July 8, 2012 Did you delete your npc .dat files? Link to comment Share on other sites More sharing options...
AlexTCGPro Posted July 12, 2012 Share Posted July 12, 2012 fix it! and didn't have to delete my npcs only edit them. Link to comment Share on other sites More sharing options...
Brodyzera Posted July 13, 2012 Share Posted July 13, 2012 Worked perfectly, only problem I had was that when my friend tried to edit NPCs, his client crashed, although I tested on his client and worked fine so it's probably just that his account is bugged xD Oh and you shouldn't have to delete all of your NPCs, just re-enter their values like the post above said. Link to comment Share on other sites More sharing options...
Wortel Angels Posted July 23, 2012 Share Posted July 23, 2012 I made all like in the tutorial… the npc drop the items but it saves only Item 1 and 2 the 3th is resettet to 1and the npc drop only 1 from the items and not the value i put in :( Link to comment Share on other sites More sharing options...
00GuthixLord Posted July 25, 2012 Share Posted July 25, 2012 Hello, how would I change the code so the chance is back to the original eclipse drop chance: 1 out of VALUE? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now