![]() |
hmmmm
okay, this is a script that I'm using, and it works, however when it's used around an npc baddie, it doesn't work, why yould this be happening? (baddies are both the pre-defined ones, and other ones made in similar fashions, which is most of the baddies on the sever, so i'd rather change this script)
NPC Code://NPC made By Excaliber |
Be more specific. What about it doesn't work around an npc baddy?
Also, please make your script readable. |
well, dr-lightning is a lightning gfx that, when the weapon is fired, seams to strike the ground, however, when around a baddie, it only shows the top of the gfx, and the lighning doesn't strike, unless you hurt the baddie. There's something in the script that 'pauses' it untill the baddie's hurt:here's a basic script of a baddie, and a better looking version of my script for the lightning:
lightning: NPC Code://NPC made By Excaliber a basic baddie script: NPC Code:// Graal2002 NPC by Stefan Knorr |
Quote:
EDIT: oh you fixed it, nvm. it seems that you're using Quote:
|
I changed it around and organized it better.
Offline it works fine, but online it doesn't put an explosion. |
|
okay okay, not the best formatting, but you can still read it easily XD this really bugs me though, I can't find the connection between the 2 NPCs x_x
|
Quote:
Seriously, preserving a good format will make it easier for you to find bugs and to work with your code at a later date. Do something about that, and then continue. |
formatted/compacted better:
NPC Code: It won't shoot lightning online, but it works fine offline. |
'toweapons' is bad with an NPC server...
Make sure your MP is set at 99 and try. Also: PHP Code:
I would try instead: PHP Code:
|
replace toweapons with
NPC Code: leave it serverside though. |
Quote:
I'm assuming that the weapon name is 'Lightning 2'... If that is the case, he can eliminate the serverside part entirely (but just make sure he has playermp set to 99 via editing attributes). |
keep in mind 2 things.
Everything you guys just posted, I already knew. They were for offline purposes. Not to mention, I didn't script this NPC, Excaliber did, all I did was take what he had and formatted it better, and tried to condense it with redundant things (but I did miss taking out the strequals(#w,etc) part. Aside from that, everything you guys posted was of no help at all. The level is not on a gmap, it's just a regular level. |
it is a weapon in fact, and is is used online, however, i out some stuff in it, so you could see how it works offline, but not online. anyway, what you guys said, not the problem, it's gotta be something else, but I can't figure it out x_x
|
maybe there are conflicting variables between the npc and the baddy, i doubt this is the problem, but it's worth a try.
change the variables in the npc to this. vars. and try changing "shooting" to something else like "lightningshoot" or something it's worth a try =) |
| All times are GMT +2. The time now is 12:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.