Yxxe Posted June 13, 2011 Author Share Posted June 13, 2011 @adr990:> Heya,> > edit nvm, figured it out:> > -=-> > Also, are there any requirments for the NPC which will be the Pet?> Does it need atleast 1hp etc. and every stat 1 etc?> > Thanks in advance,> Adr990Just the things you would usually set with NPCs you want players to attack. ;] Link to comment Share on other sites More sharing options...
BugSICK Posted June 14, 2011 Share Posted June 14, 2011 thanks the code light, i was confused which code i will start in. :mad:, can you add a pet loot? a looter pet. Link to comment Share on other sites More sharing options...
Yxxe Posted June 14, 2011 Author Share Posted June 14, 2011 @BugSICK:> thanks the code light, i was confused which code i will start in. :mad:, can you add a pet loot? a looter pet.No problem. ;]@Lightning:> When this tutorial is over, you should have created a solid Pet System base to work on further, which also includes a few key features for any pet system.Which means you have to do the rest yourself. Link to comment Share on other sites More sharing options...
BugSICK Posted June 14, 2011 Share Posted June 14, 2011 light i have this problem. client and server runs good with pet installed. but when i logout and log-in again i get this error.![](http://www.freemmorpgmaker.com/files/imagehost/pics/920962fd19c483a943a59cfa0a2384b5.png)![](http://www.freemmorpgmaker.com/files/imagehost/pics/c36238a897c3150dab6c8e103edc3fc9.png)did i miss something??? Link to comment Share on other sites More sharing options...
Yxxe Posted June 14, 2011 Author Share Posted June 14, 2011 I think you must have missed something. Could you do something for me? If you put a breakpoint on "MapNum = Buffer.ReadLong" in Sub HandleNPCCache and take note of the value please? The only thing I can think of is that the MapNum is zero or tile data hasn't been read in yet.EDIT: When reading in the MapNum, make sure it reads the data first before taking the value. Let the "current execution" as it were go to the next line and then hover your mouse over "MapNum". ;] Link to comment Share on other sites More sharing options...
BugSICK Posted June 14, 2011 Share Posted June 14, 2011 did understant what you mean. but heres the code in sub handlenpccache```Private Sub HandleNPCCache(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long) Dim Buffer As clsBuffer Dim PIndex As Long Dim MapNum As Long Dim npcNum As Long Dim i As Long Set Buffer = New clsBuffer Buffer.WriteBytes Data() MapNum = Buffer.ReadLong npcNum = Buffer.ReadLong Map.Npc(npcNum) = Buffer.ReadLong MapNpc(npcNum).num = Buffer.ReadLong SaveMap (MapNum) Set Buffer = NothingEnd Sub```also im concerned about what i put in number. 1 is the NPC number. did i put it right???```'create the pet for the map Map(PlayerMap).Npc(PetSlot) = 1 MapNpc(PlayerMap).Npc(PetSlot).Num = 1 'set its Pet Data MapNpc(PlayerMap).Npc(PetSlot).IsPet = YES MapNpc(PlayerMap).Npc(PetSlot).PetData.Name = GetPlayerName(index) & "'s " & Npc(1).Name MapNpc(PlayerMap).Npc(PetSlot).PetData.Owner = index 'If Pet doesn't exist with player, link it to the player If Player(index).Pet.SpriteNum <> 1 Then Player(index).Pet.SpriteNum = 1 Player(index).Pet.Name = GetPlayerName(index) & "'s " & Npc(1).Name End If``` Link to comment Share on other sites More sharing options...
Yxxe Posted June 14, 2011 Author Share Posted June 14, 2011 Yes, how you have added the 1's is fine.Do you know how to set a breakpoint? Click the grey strip in the IDE next to where it says "SaveMap(MapNum)", then run the client. Once it gets to this part, hover over "MapNum" and tell me what the value is. Link to comment Share on other sites More sharing options...
BugSICK Posted June 14, 2011 Share Posted June 14, 2011 my friend i dont know :sad:, any screenshots??? huhuhuh. ok i will figure it out. give me a min.edit: its MapNum = 1 Link to comment Share on other sites More sharing options...
Yxxe Posted June 14, 2011 Author Share Posted June 14, 2011 @BugSICK:> my friend i dont know :sad:, any screenshots??? huhuhuh. ok i will figure it out. give me a min.> > edit: its MapNum = 1Hrm… strange. You must have either missed something out or put something in the wrong order. I would suggest going through the tutorial again to see whether you have missed anything out. :] Link to comment Share on other sites More sharing options...
BugSICK Posted June 16, 2011 Share Posted June 16, 2011 what exit sub should i put this?? the first one or the second last one??```HandleDataSub(SNPCCache) = GetAddress(AddressOf HandleNPCCache)```this code should be in client and server " modEnumerations.?```SNPCCache``` Link to comment Share on other sites More sharing options...
BugSICK Posted June 18, 2011 Share Posted June 18, 2011 @BugSICK:> light i have this problem. client and server runs good with pet installed. but when i logout and log-in again i get this error.> ![](http://www.freemmorpgmaker.com/files/imagehost/pics/920962fd19c483a943a59cfa0a2384b5.png)> ![](http://www.freemmorpgmaker.com/files/imagehost/pics/c36238a897c3150dab6c8e103edc3fc9.png)> did i miss something???i've tried multiple times and still this error appeared. did you test it?? at first it runs smooth every command are ok, but when i exit client(i mean really close the client not going back to the menu when the X"close" button click) and relogin then i get the error, i need to refresh/shutdown the server and runs it again to run the client back to normal. Link to comment Share on other sites More sharing options...
Ravenshade Posted June 21, 2011 Share Posted June 21, 2011 kind of a minor issue…but... I can't find where to edit the GUI menu labels >_> (still looking) Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 22, 2011 Share Posted June 22, 2011 @Ravenshade:> kind of a minor issue…but... I can't find where to edit the GUI menu labels >_> (still looking)I beleive you add them yourself then dbl-click on them to edit their code.(100% asuming you mean "Call pet" , "follow", ect labels)now if you mean the menu lable where it opens the pet window, same thing too. Link to comment Share on other sites More sharing options...
Ravenshade Posted June 22, 2011 Share Posted June 22, 2011 ah yeah….those are the labels I mean. I just can't find where or how I'm supposed to add them. Looks like imma gonna have to remove the mod for the time being. Link to comment Share on other sites More sharing options...
blkcrow Posted June 22, 2011 Share Posted June 22, 2011 in the left side of your screen are some buttons press the one with the big A and then click and drag inside your form Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 22, 2011 Share Posted June 22, 2011 more like, Click it and DRAW it on your screen.(@Ravenshade, you do have VB6 dont you?) Link to comment Share on other sites More sharing options...
Ravenshade Posted June 22, 2011 Share Posted June 22, 2011 I do have VB6 yes… admittedly struggling to get my head around it. I know that the options section is already there with music, but the form is not therefore I'm assuming it has to be hard coded in. Link to comment Share on other sites More sharing options...
tsuki Posted June 23, 2011 Share Posted June 23, 2011 When I start up the game and click in any label, appear an error box '-'and after "ok" points to "call" code '-'help-me pleasethis is the image of error![](http://www.freemmorpgmaker.com/files/imagehost/pics/1c6298d9a75a3b3a2f00d73d12d3f0eb.png) Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 23, 2011 Share Posted June 23, 2011 Thats because you didn't make the Label.On frmMain (the form, NOT the code)MAKE the lable, name it "LblAttackTarget", THEN dubble click it, it should lead to the codeing part of it.(also, is that code in the code section of frmMain?) Link to comment Share on other sites More sharing options...
tsuki Posted June 23, 2011 Share Posted June 23, 2011 I did the label, and after I did itthe error appears when I click in the label :( Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 23, 2011 Share Posted June 23, 2011 then your didn't add the sub Pet attack target, on the Client side. carfuly retrace your steps of the Client side coding. Link to comment Share on other sites More sharing options...
BugSICK Posted June 24, 2011 Share Posted June 24, 2011 still i cant get it. :mad: Link to comment Share on other sites More sharing options...
BugSICK Posted June 24, 2011 Share Posted June 24, 2011 @Johnl17:> Wow with lightnings permission im gonna put this on a blank eo server and client and release…hope so. Link to comment Share on other sites More sharing options...
chamster Posted June 26, 2011 Share Posted June 26, 2011 I have a quick question… Now that i have the code in how do i make a pet in-game?please help... srry if you guys already answer it but please answer it again...( i read alot of the post here, so tire and my eyes hirt so i stop reading) thanks in advance! Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 26, 2011 Share Posted June 26, 2011 well using just this system and none of my mods for it, just click call pet…If your using Summoning with items make the pet on the same number as the summoning item.(and if your using my taming system, you should be aressted for hacking my computer lol JK) 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