Mistlight Posted August 13, 2012 Share Posted August 13, 2012 i tried again with this but it highlights .cloth and says subscript out of range.```Function SetPlayerSkill(ByVal Index As Long, ByVal SkillNum As Long, zx)  ' If debug mode, handle error then exit out  'If Options.Debug = 1 Then On Error GoTo errorhandler  If Index > MAX_PLAYERS Then Exit Function    Select Case SkillNum    Case 1      zx = Player(Index).Cloth    Case 2      zx = Player(Index).Leather    Case 3      zx = Player(Index).Plate    Case 4      zx = Player(Index).Dagger    Case 5      zx = Player(Index).OneSword    Case 6      zx = Player(Index).TwoSword    Case 7      zx = Player(Index).OneAxe    Case 8      zx = Player(Index).TwoAxe    Case 9      zx = Player(Index).Wand    Case 10      zx = Player(Index).Staff    Case 11      zx = Player(Index).Shortbow    Case 12      zx = Player(Index).Crossbow    Case 13      zx = Player(Index).Shield    Case 14      zx = Player(Index).Polearm    End Select  ' Error handler  Exit Functionerrorhandler:  HandleError "SetPlayerSkill", "modDatabase", Err.Number, Err.Description, Err.Source, Err.HelpContext  Err.Clear  Exit FunctionEnd Function```can anyone help me? Link to comment Share on other sites More sharing options...
Guest Posted August 13, 2012 Share Posted August 13, 2012 I dont understand what you are trying to do here mist. This isent even part of the tutorial? Link to comment Share on other sites More sharing options...
JohnPony Posted August 13, 2012 Share Posted August 13, 2012 Try this```Function SetPlayerSkill(ByVal Index As Long, ByVal SkillNum As Long, Byval zx as Long)  ' If debug mode, handle error then exit out  'If Options.Debug = 1 Then On Error GoTo errorhandler  If Index > MAX_PLAYERS Then Exit Function    Select Case SkillNum    Case 1      zx = Player(Index).Cloth    Case 2      zx = Player(Index).Leather    Case 3      zx = Player(Index).Plate    Case 4      zx = Player(Index).Dagger    Case 5      zx = Player(Index).OneSword    Case 6      zx = Player(Index).TwoSword    Case 7      zx = Player(Index).OneAxe    Case 8      zx = Player(Index).TwoAxe    Case 9      zx = Player(Index).Wand    Case 10      zx = Player(Index).Staff    Case 11      zx = Player(Index).Shortbow    Case 12      zx = Player(Index).Crossbow    Case 13      zx = Player(Index).Shield    Case 14      zx = Player(Index).Polearm    End Select  ' Error handler  Exit Functionerrorhandler:  HandleError "SetPlayerSkill", "modDatabase", Err.Number, Err.Description, Err.Source, Err.HelpContext  Err.Clear  Exit FunctionEnd Function```Or This```Function SetPlayerSkill(ByVal Index As Long, ByVal SkillNum As Long)Dim ZX as long  ' If debug mode, handle error then exit out  'If Options.Debug = 1 Then On Error GoTo errorhandler  If Index > MAX_PLAYERS Then Exit Function    Select Case SkillNum    Case 1      zx = Player(Index).Cloth    Case 2      zx = Player(Index).Leather    Case 3      zx = Player(Index).Plate    Case 4      zx = Player(Index).Dagger    Case 5      zx = Player(Index).OneSword    Case 6      zx = Player(Index).TwoSword    Case 7      zx = Player(Index).OneAxe    Case 8      zx = Player(Index).TwoAxe    Case 9      zx = Player(Index).Wand    Case 10      zx = Player(Index).Staff    Case 11      zx = Player(Index).Shortbow    Case 12      zx = Player(Index).Crossbow    Case 13      zx = Player(Index).Shield    Case 14      zx = Player(Index).Polearm    End Select  ' Error handler  Exit Functionerrorhandler:  HandleError "SetPlayerSkill", "modDatabase", Err.Number, Err.Description, Err.Source, Err.HelpContext  Err.Clear  Exit FunctionEnd Function``` Link to comment Share on other sites More sharing options...
Mistlight Posted August 16, 2012 Share Posted August 16, 2012 @ daxterxx : what i am trying to do here is to have a function that can be used for all the proficiency instead of having a function for each proficiency.@general pony : i found out that i had a error due to me not editing setplayerskill client side. thank you anyway :D Link to comment Share on other sites More sharing options...
jmng14 Posted September 3, 2012 Share Posted September 3, 2012 i have a question. whats the difference between sub and function? why does SwordsLevelUp and SetPlayerSwordsExp uses sub while GetPlayerSwordsExp, SetPlayerSwords and GetPlayerSwords uses function?Also, what is public function? Link to comment Share on other sites More sharing options...
Shippous Posted September 18, 2012 Share Posted September 18, 2012 Cant make 2 types of weapons, the second one just keep showing lvl 0 and 0/0 exp. or lvl 0 and 100/0 exp. Link to comment Share on other sites More sharing options...
soulsoldier2 Posted October 12, 2012 Share Posted October 12, 2012 nice tut thx man! Link to comment Share on other sites More sharing options...
minipimp Posted October 19, 2012 Share Posted October 19, 2012 When searching for```Case ITEM_TYPE_WEAPON```in the server, there is no```Public Sub Use Item```. What could I do? Link to comment Share on other sites More sharing options...
Justn Posted October 19, 2012 Share Posted October 19, 2012 Go to mod player click the drop down box on the right side of the module and scroll down to the bottom u will see useitem or just search for it its there its just one word not two Link to comment Share on other sites More sharing options...
minipimp Posted October 19, 2012 Share Posted October 19, 2012 Thanks. I wish I could figure out how to update the Level/TNL for the skills every time I attack, I tried something and it didnt work, any suggestions? Link to comment Share on other sites More sharing options...
minipimp Posted October 19, 2012 Share Posted October 19, 2012 Edited post completely,sorry for the double. Link to comment Share on other sites More sharing options...
TheNorthHarrier Posted October 21, 2012 Share Posted October 21, 2012 This is a great system. Link to comment Share on other sites More sharing options...
iraasta Posted October 31, 2012 Share Posted October 31, 2012 Does it work for Event System? Link to comment Share on other sites More sharing options...
Joyce Posted October 31, 2012 Share Posted October 31, 2012 It should work, albeit with minor adjustments. The internal workings of the stat system were never changed. Link to comment Share on other sites More sharing options...
iraasta Posted November 2, 2012 Share Posted November 2, 2012 It is different since ItemEditorInit. And can't find any other file similar Link to comment Share on other sites More sharing options...
Joyce Posted November 2, 2012 Share Posted November 2, 2012 That's because Eclipse Advanced has this in a seperate project, not the default client.(Although, I think this is a silly idea because you need to edit TWO binaries rather than one when you add new features. But alas.) Look for something refered to as the Editor/Developper Suite. Link to comment Share on other sites More sharing options...
Ganjika Posted November 24, 2012 Share Posted November 24, 2012 Does this/Can this work on Nightly Dx8 in its current form as presented in the tutorial above? Link to comment Share on other sites More sharing options...
or3o Posted October 26, 2015 Share Posted October 26, 2015 This is too good to be on page 7 of the forum! 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