fernz123 Posted April 14, 2012 Share Posted April 14, 2012 This is brilliant lol Link to comment Share on other sites More sharing options...
Snoozey Posted June 21, 2012 Share Posted June 21, 2012 Hm, not sure if it is from this or something else.Added these mobs all from you and lightninghttp://www.touchofdeathforums.com/smf/index.php/topic,69521.0.htmlhttp://www.touchofdeathforums.com/smf2/index.php/topic,72517.new.html#newhttp://www.touchofdeathforums.com/smf2/index.php/topic,78655.0.htmlI keep getting error on sub petdisband in modgamelogic server side.  PetMapCache(mapNum).Pet(Player(index).Pet.CNum) = 0"subscript out of range"```'Clear the npc from the mapSub PetDisband(ByVal index As Long, ByVal mapNum As Long)  Dim i As Long  Dim j As Long  If TempPlayer(index).TempPetSlot < 1 Then Exit Sub  'Cache the Pets for players logging on [Remove Number from array]  'THIS IS KINDA SLOW (EVEN WITHOUT TESTING, LOL), MAY HAVE TO CONVERT TO LINKED LIST FOR SPEED  PetMapCache(mapNum).Pet(Player(index).Pet.CNum) = 0  Call ClearSingleMapNpc(TempPlayer(index).TempPetSlot, mapNum)  Map(GetPlayerMap(index)).NPC(TempPlayer(index).TempPetSlot) = 0  TempPlayer(index).TempPetSlot = 0  're-warp the players on the map  For i = 1 To Player_HighIndex    If IsPlaying(i) Then      If GetPlayerMap(i) = GetPlayerMap(index) Then        Call PlayerWarp(i, GetPlayerMap(i), GetPlayerX(i), GetPlayerY(i))        SendPlayerData index      End If    End If  NextEnd Sub```This is the last mod added. It worked before this mod. I think I messed something up, but I am not sure where.Commenting out```PetMapCache(mapNum).Pet(Player(index).Pet.CNum) = 0```Solves the crashing issue. What exactly does this do, and do I need it? Link to comment Share on other sites More sharing options...
Wortel Angels Posted June 29, 2012 Share Posted June 29, 2012 Variable not defined :(HandleDataSub(SNPCCache) = GetAddress(AddressOf HandleNPCCache)SNPCCACHE <–- Lighted Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 29, 2012 Author Share Posted June 29, 2012 not my fault… I blame lightning, that line was part of his tut... anyway...add "SNPCCache" to the end of the "S" list in the modEnumerations module. Link to comment Share on other sites More sharing options...
santa-clause Posted June 30, 2012 Share Posted June 30, 2012 i had that problem too tnx :P Link to comment Share on other sites More sharing options...
Wortel Angels Posted June 30, 2012 Share Posted June 30, 2012 Thanks :D Link to comment Share on other sites More sharing options...
AlexTCGPro Posted September 26, 2012 Share Posted September 26, 2012 The pet spawns in a random spot in the map, how can i do to make the pet spawn in front of the player? 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