LukBrave Posted June 7, 2012 Author Share Posted June 7, 2012 I wanted to make it so the characters in our game can learn spells at certain levels, and VB6 is kind of confusing me xD can someone help me? Link to comment Share on other sites More sharing options...
eltony Posted June 7, 2012 Share Posted June 7, 2012 some VB6 tutorial is always helpfulhttp://www.vbtutor.net/vb6/vbtutor.html Link to comment Share on other sites More sharing options...
The New World Posted June 7, 2012 Share Posted June 7, 2012 Once you get that far, on the server project look at the CheckLevelUp routine and edit it to check if they've reached that level and if so, give them that skill. I did a more advanced version of this in my 24 hour project. Link to comment Share on other sites More sharing options...
JohnPony Posted June 8, 2012 Share Posted June 8, 2012 ``` If Player(Index).level = 10 Then n = 4 i = FindOpenSpellSlot(Index) If Not HasSpell(Index, n) Then Player(Index).Spell(i).Spell = n Call PlayerMsg(Index, "The Gods have smiled upon you for your dedication, you can now use " & Trim$(Spell(n).Name) & ".", BrightGreen) SendPlayerSpells Index End If End If```Adapt it to your needs. 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