[help]Bug monsters move

09/02/2008 09:28 konkizta#1
someone knows how can I make the monsters do not go up walls, walk over water and walk on the gaps in suorce loft? help me plx:handsdown:

their input will be thankful :D
09/02/2008 10:07 Rechocto#2
I would like to know this as well, though I have not put any research into it yet so I wasn't going to make a thread :P
09/02/2008 15:18 _Emme_#3
I dont know anything about this,but you could try do what I think CO/TQ did. First define 2 different coordinates, truecoord or falsecoord ( just an example ). The truecoord,player can walk on and all that,at falsecoord,they just be there,you cant walk to/on them,etc..

Now,at ur /addspawn or w/e command, code so it would only spawn monster at truecoords

Now your done.

P.S : You need a bit of C# / c++ experience to do this.

Emme :)
09/02/2008 23:58 InfamousNoone#4
Actually you just preform a DMap check everytime a player/mob moves; i.e. (this is from my source code)

Code:
                DataMap DMap = (DataMap)Database.DMaps[Client.Entity.MapID];
                if (DMap != null)
                {
                    if (DMap.Invalid(NewX, NewY))
                    {
                        Kernel.TeleportPlayer(Client.Entity.MapID, Client.Entity.Data.X, Client.Entity.Data.Y, Client);
                        Client.Send(new MessagePacket("Invalid Coordinate, Pull back!", 0x00FF0000, ChatType.Center));
                        return;
                    }
                }
PS: The only public algorithm for loading dmaps (the one from coemu sources) sucks :D
09/03/2008 05:59 konkizta#5
in which. cs going? please: S
09/03/2008 12:56 pauldexter#6
what source is that?
09/03/2008 13:09 ~Yuki~#7
Quote:
Originally Posted by pauldexter View Post
what source is that?
Your mother-Fucker source

READ ITS HYBRIDS SOURCE!
09/03/2008 17:07 ~*NewDuuDe*~#8
Quote:
Originally Posted by lolmaster123 View Post
Your mother-Fucker source

READ ITS HYBRIDS SOURCE!
erm think he means what source coemu is

so other duude asking tht :P
search FTW
09/03/2008 17:45 ~Yuki~#9
Oh well agree duude^^
09/03/2008 22:06 alexbigfoot#10
lol?well...i think not only hybrid or coemu source has the DMap thing....the future reloaded has that too.
09/03/2008 23:44 InfamousNoone#11
Quote:
Originally Posted by alexbigfoot View Post
lol?well...i think not only hybrid or coemu source has the DMap thing....the future reloaded has that too.
I never said it didn't have it, I just said the algorithm sucks (It RAPES memory, so does the CoEMU one, they use around 200mb of memory, mine uses 62mb).
09/04/2008 08:11 alexbigfoot#12
Quote:
Originally Posted by InfamousNoone View Post
I never said it didn't have it, I just said the algorithm sucks (It RAPES memory, so does the CoEMU one, they use around 200mb of memory, mine uses 62mb).
only like 200 lines? 200 MB?
09/04/2008 14:10 InfamousNoone#13
Open taskmanager, and look at the memory usuage you have on your internet explorer for firefox (right now for me) it says "33, 324" which is 33mb.
09/04/2008 14:23 alexbigfoot#14
Quote:
Originally Posted by InfamousNoone View Post
Open taskmanager, and look at the memory usuage you have on your internet explorer for firefox (right now for me) it says "33, 324" which is 33mb.
i know that thing lol.....i am not a noobish guy :P
09/05/2008 05:00 konkizta#15
I use loft source