martin564 Posted April 21, 2011 Share Posted April 21, 2011 Next, go to modHandleData and replace "Sub HandleSpawnNpc" with thisLooked all over modhandledata and i never found Sub HandleSpawnNpc, i am spanish sorry for bad english Link to comment Share on other sites More sharing options...
Ruins of Hell Posted April 21, 2011 Share Posted April 21, 2011 Press Control + F and select "Current Project". Then type in Sub HandleSpawnNpc Link to comment Share on other sites More sharing options...
martin564 Posted April 21, 2011 Share Posted April 21, 2011 Search text is not found x.x Link to comment Share on other sites More sharing options...
Yxxe Posted April 22, 2011 Author Share Posted April 22, 2011 Martin, are you using Eclipse Origins? Link to comment Share on other sites More sharing options...
Greendude120 Posted May 1, 2011 Share Posted May 1, 2011 is it possible to control the npc. like call petmove or something. cause i want him to move to where i tell him but i couldnt find a part that controls his movement in the script. i'd like him to move 1 tile infront of him or the left or right depending on how i ask him to move.how would i achieve this. Link to comment Share on other sites More sharing options...
Yxxe Posted May 2, 2011 Author Share Posted May 2, 2011 @Greendude120:> is it possible to control the npc. like call petmove or something. cause i want him to move to where i tell him but i couldnt find a part that controls his movement in the script. i'd like him to move 1 tile infront of him or the left or right depending on how i ask him to move.> > how would i achieve this.You could make it so when you click on a tile position, it calls a procedure which set's the NPC targetting to that tile. You would have to slightly modify the pre-existing source code for that though, it can't be done with the current source code I have provided. Link to comment Share on other sites More sharing options...
Greendude120 Posted May 3, 2011 Share Posted May 3, 2011 i wanted that but i cant find the On Click sub anymore. its been changed from ES to EO ofc but i cant find the new name or the new sub that controls clicking tiles. i guess ill post on Q&A i got few others quesitons.ty for the reply man:) Link to comment Share on other sites More sharing options...
Yxxe Posted May 4, 2011 Author Share Posted May 4, 2011 @Greendude120:> i wanted that but i cant find the On Click sub anymore. its been changed from ES to EO ofc but i cant find the new name or the new sub that controls clicking tiles. i guess ill post on Q&A i got few others quesitons.> > ty for the reply man:)Ok, best of luck with it. ;] Link to comment Share on other sites More sharing options...
Salted Snail Posted May 7, 2011 Share Posted May 7, 2011 Hey, When i try to compile the server, I get "Ambiguous name detected" with"Sub PetFollowOwner(ByVal Index As Long)" Any ideas?Thanks in advance.EDIT: Nevrmind, fixed it! Link to comment Share on other sites More sharing options...
Yxxe Posted May 7, 2011 Author Share Posted May 7, 2011 @Salted:> Hey, When i try to compile the server, I get "Ambiguous name detected" with> "Sub PetFollowOwner(ByVal Index As Long)" Any ideas?> Thanks in advance.You've obviously pasted the same procedure twice. Get rid of one of them. ;] Link to comment Share on other sites More sharing options...
gdog12356 Posted May 13, 2011 Share Posted May 13, 2011 can pets attack players? Link to comment Share on other sites More sharing options...
Yxxe Posted May 13, 2011 Author Share Posted May 13, 2011 @gdog12356:> can pets attack players?Yes. Link to comment Share on other sites More sharing options...
gdog12356 Posted May 14, 2011 Share Posted May 14, 2011 is it possible to make it so the pets move faster than what they move now? Because i want pets to be able to catch the enemy player, and the players speed will be fast, so can i make it if if the target is far away it runs after him? Also is it possible to make it so that the npcs move more smoothly, and not pause after each step? Link to comment Share on other sites More sharing options...
Yxxe Posted May 14, 2011 Author Share Posted May 14, 2011 @gdog12356:> is it possible to make it so the pets move faster than what they move now? Because i want pets to be able to catch the enemy player, and the players speed will be fast, so can i make it if if the target is far away it runs after him? Also is it possible to make it so that the npcs move more smoothly, and not pause after each step?Increase the amount of times per second the NPC logic is updated. Link to comment Share on other sites More sharing options...
gdog12356 Posted May 14, 2011 Share Posted May 14, 2011 would that that be in server or client?edit: where in the server would i haev to edit? Link to comment Share on other sites More sharing options...
gdog12356 Posted May 15, 2011 Share Posted May 15, 2011 pets dont dissapear when i log off >_> Link to comment Share on other sites More sharing options...
Yxxe Posted May 15, 2011 Author Share Posted May 15, 2011 @gdog12356:> pets dont dissapear when i log off >_>Then you've done something wrong. Go through the tutorial again.@gdog12356:> would that that be in server or client?> edit: where in the server would i haev to edit?modServerLoop. Link to comment Share on other sites More sharing options...
gdog12356 Posted May 15, 2011 Share Posted May 15, 2011 ok, so i found out where i have to edit```UpdateMapLogic```but i do not see any timers for npc movement, nor do i see any timers to update the map >_>. Link to comment Share on other sites More sharing options...
Yxxe Posted May 15, 2011 Author Share Posted May 15, 2011 @gdog12356:> ok, so i found out where i have to edit```> UpdateMapLogic> ```but i do not see any timers for npc movement, nor do i see any timers to update the map >_>.UpdateMapLogic does update NPC movement >_>```If Tick > tmr500 Then      For i = 1 To MAX_PLAYERS        If frmServer.Socket(i).State > sckConnected Then          Call CloseSocket(i)        End If      Next      UpdateMapLogic      tmr500 = GetTickCount + 500    End If```Change the "GetTickCount + 500" "GetTickCount + x", where "x" is the number of milliseconds. It will update every x milliseconds. You may want to keep socket checking out of that though, so I would break the socket checking and map logic timers into 2 separate ones. Link to comment Share on other sites More sharing options...
gdog12356 Posted May 15, 2011 Share Posted May 15, 2011 @Lightning:> UpdateMapLogic does update NPC movement >_>> > ```> If Tick > tmr500 Then> Â Â Â Â Â Â For i = 1 To MAX_PLAYERS> Â Â Â Â Â Â Â Â If frmServer.Socket(i).State > sckConnected Then> Â Â Â Â Â Â Â Â Â Â Call CloseSocket(i)> Â Â Â Â Â Â Â Â End If> Â Â Â Â Â Â Next> Â Â Â Â Â Â UpdateMapLogic> Â Â Â Â Â Â tmr500 = GetTickCount + 500> Â Â Â Â End If> ```> Change the "GetTickCount + 500" "GetTickCount + x", where "x" is the number of milliseconds. It will update every x milliseconds. You may want to keep socket checking out of that though, so I would break the socket checking and map logic timers into 2 separate ones.thanks.also i think i found a bug, but it might just be how i added it, i can attack my own pet. Also sometimes when i am walking to the right or left, and i stop the npc stops 2 tiles behind me, and the tile behind me is blocked. Also sometimes the pets dont show the moving animation. Like it just shows them changing positions, but not really moveing. Link to comment Share on other sites More sharing options...
Yxxe Posted May 15, 2011 Author Share Posted May 15, 2011 @gdog12356:> thanks.> > also i think i found a bug, but it might just be how i added it, i can attack my own pet. Also sometimes when i am walking to the right or left, and i stop the npc stops 2 tiles behind me, and the tile behind me is blocked. Also sometimes the pets dont show the moving animation. Like it just shows them changing positions, but not really moveing.1\. Attacking your own pet isn't a bug, I just didn't put it in in the first place. I remember saying earlier in the thread that I left it out as I considered it as a design choice. I'm sure you will be able to write a sufficient If statement to stop that.2\. That's just the path finding already in the engine, that's nothing to do with me.3\. That means that the map hasn't been cached properly. For the last time, make sure you follow the tutorial correctly. Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 6, 2011 Share Posted June 6, 2011 sorry for bumping but I added a new Mod to this, basic PVPet checkshttp://www.touchofdeathforums.com/smf/index.php/topic,72517.msg778251.htmlEnjoy Link to comment Share on other sites More sharing options...
Yxxe Posted June 6, 2011 Author Share Posted June 6, 2011 @RyokuHasu:> sorry for bumping but I added a new Mod to this, basic PVPet checks> > http://www.touchofdeathforums.com/smf/index.php/topic,72517.msg778251.html> > EnjoyI know, I trust this works correctly. ;) I'll add it to the mods list. Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 6, 2011 Share Posted June 6, 2011 Thanks ^_^Im pretty sure it works… i tested all the possible combat cobinations... i think. Link to comment Share on other sites More sharing options...
RyokuHasu Posted June 6, 2011 Share Posted June 6, 2011 Sorry for the double post but I made a new mod, again.. sorry XDhttp://www.touchofdeathforums.com/smf/index.php/topic,72532.0.html 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