I don't know what's going on here but...
mob/proc
npcattack1(mob/defender as mob in oview(10))
if(src.npcat==0)
usr <<"You cannot attack with this char!"
spawn(src.warspeed+35)
src.npcattack1()
return
mob/Firemonsters
npcat=1
i've checked a million times and it's set to 0 on everyone but the firemonsters but keeps giving me the YOu cannot attack with this char even though it's in the var list and set to 1!!!!
I've even changed it to 0 and it keeps giving this error...
that's not the only thing...
when I debug my code
mob/Firemonsters/Fireworker
is the right path
but it was set as
mob/Firemosnters/fireworke/verb
on accident
and didn't give me any errors even though fireworke isn't a path
ID:266379
Feb 9 2002, 12:27 pm (Edited on Feb 9 2002, 6:55 pm)
|
|
In response to English
|
|
npcat isn't changed from what I looked over for like 30mins last night, and it's only the firemonsters that have this, and I copy and pasted the icemonsters to get the firemonsters (I just changed the stats of everything and names and such).
So I don't understand why it's doing this... |
In response to Jon Snow
|
|
How do you call npcattack1? Do you do it sort of like this:
var/mob/Firemonster/F = new() F.npcattack1() If you do use F. to call it then the firemonster would be the src so that wouldn't be the problem. I'd do an advanced find/replace and look for every npcat that is in your code and see if it is ever changed. If it is then go from there to find out what it's being changed to and if the firemonster is effected by it. Other than that I don't see what the problem is, sorry I couldn't help more. |
In response to English
|
|
np I will do that and check it out, it has to be changed somewhere it's the only logical explanation... but with 20 code files with about 3-4 pages of code atleast on each one...
it's gonna take some time :) |
Hmmmmmm...this bit of code doesn't seem to be creating the problem. The only potential problems I can see is that the Firemonster might not actually be the src (so it is looking at another mob's npcat) or npcat is changed somewhere else.
That wouldn't create an error because you'd be creating a new mob type (Firemosnters/fireworke), and be giving it access to that/those verb(s).