Proberly a simple thing I've overlooked, but this is not something I've done before, I'm just using some code from a tutorial, I guess it was made for a reason x_X
mob
New()
sleep(5)
if(istype (src, /mob/login)||istype (src, /mob/NPC))
return..()
else
ai_random_wander()
return..()
mob
proc
ai_random_wander()
if(istype (src, /mob/login))
return ..()
else
walk_rand(src,src.speed)
src.ai_run_away()
spawn(10)
ai_random_wander()
ai_run_away()
if(istype (src, /mob/login))
return
else
for(var/mob/M in oview(5,src))
if(istype (src, /mob/login))
src.random = rand(1,2)
if(src.random == 2)
src.ai_walk_to()
else
continue
else
continue
ai_walk_to()
if(istype (src, /mob/login))
return
else
for(var/mob/M in oview(3,src))
if(M.client&&src.aggressive == 1||M.client&&src.aggressive == 3&&M.alignment == "Evil")
if(get_dist(src,M) <= 3)
walk_to(src,M,1,5)
if(get_dist(src,M) == 1)
Attack(M)
break
else
continue
else
continue
ID:262063
![]() Jul 29 2004, 5:33 am (Edited on Jul 31 2004, 2:01 am)
|
|
![]() Jul 29 2004, 7:22 am
|
|
You did not say anywhere in there what your problem is, or even that you have a problem.
|
Umm i dont know what you guys are talking about? In his title he says the problem he's having is that the mobs arent moving and looking at his code you can tell that he wants the mobs to move around randomly.
|
Title is a title, but the content is the content. You shouldn't display your errors in the title. (Besides, I dislike seeing stupid things like "o_O" in the title) Anyway, he hasn't provided enough information. He should post what's wrong, where he thinks it's wrong, what the code should do, what it does now.
|
If I had an idea whats wrong maybe I wouldnt be asking you people?
Also, so you would rather I had the topic "Help" rather than telling everyone what my problem is in the topic? So people will waste there time looking at the topic when they dont know if they can fix it? One more thing, John, are you a retard or something? what I said saves Byond bandwidth and you time. |
Am I a retard? Answer to that is no. Posting your problem on the title is dumb, you should give clear and descriptive content to what the problem is, where you think it is, plus anything else that'll help IN THE BODY. The title is just the TOPIC, different them correctly!
[EDIT]: You give us a peice of code and say, "It's not moving". BING! I don't know if you know this, but MANY times we cannot just spot the problem in an instant (Well, depends on the situation. =)) Could you probably tell us what's working? When did it stop working? What's supposed to be making it work? |