Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Level editor problem (https://forums.graalonline.com/forums/showthread.php?t=27857)

draygin 04-22-2002 10:03 PM

Level editor problem
 
I've known about this for a while but it just now occured to me to post it. When you put down baddy npc's (the ones that are dressed as newbies) you can set its options for what it does. But when you click on can or cant hurt other npc's it doesnt matter they kill each other no matter wether the option is selected for not being able to hurt each other.

Saga2001 04-22-2002 10:56 PM

Re: Level editor problem
 
Quote:

Originally posted by draygin
I've known about this for a while but it just now occured to me to post it. When you put down baddy npc's (the ones that are dressed as newbies) you can set its options for what it does. But when you click on can or cant hurt other npc's it doesnt matter they kill each other no matter wether the option is selected for not being able to hurt each other.
Look at the code for the npc, maybe you can fix it yourself. That sux0rs. :(

draygin 04-23-2002 12:12 AM

Re: Re: Level editor problem
 
Quote:

Originally posted by Saga2001


Look at the code for the npc, maybe you can fix it yourself. That sux0rs. :(

It's all greek to me. About the only thing I can do scripting wise is.

Lighting effects.
Hide Image.
X Y position stuf of that nature

the most complex script I've ever successfully written. Was one that changes your outfit colors and even it was buggy. Get the idea ;) I'm an LAT not an NAT even if it is easy. I suxorz

Tyhm 04-23-2002 01:08 AM

Yeah, that's because players[this.i].id<0 no longer applies to NPCs: they have a modulo on playerid of something like 32767, so the only way to detect them really is either players[this.i].id>3000 (which would break at random or whenever the server got 3000 players on at once - unlikely, but that's how we got the Y2K bug), or if(strlen(#n(this.i))<1) if your NPCs do not have names set - since players cannot set their names to null, that should be safe.

draygin 04-23-2002 01:52 AM

Quote:

Originally posted by Tyhm
Yeah, that's because players[this.i].id<0 no longer applies to NPCs: they have a modulo on playerid of something like 32767, so the only way to detect them really is either players[this.i].id>3000 (which would break at random or whenever the server got 3000 players on at once - unlikely, but that's how we got the Y2K bug), or if(strlen(#n(this.i))<1) if your NPCs do not have names set - since players cannot set their names to null, that should be safe.
Greek ;) can some one translate that to english :-P I'm probably one of the dumbest people you'll ever meet. When it comes to scripting I can tinker but actually fixing something? I dont know about that. Hmm I guess when I get home I can try and figure out where to put that.

I mean making a massive army of dark warriors is rather pointless when they kill each other off then the last man standing comes after you.


All times are GMT +2. The time now is 10:56 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.