![]() |
Pesky Fence
There's this single block of wooden fence. It's not something a player put down, it can't be destroyed, it draws over the player, you can walk through it, and worst of all the editor doesn't even realize its there. I can't even select it and delete it. It's as if its a permanent part of the terrain. If I lower the land around, it just floats on top of the water. It floats on top of other buildings. It draws over everything, it's not even like I can put something else ontop of it to hide it.
How do I get RID of that thing? It's in the way, it's an eyesore, but I can't select it in the editor. |
A screenshot would be great man.
Just on the off-chance you don't know how so I don't have to post again if you say "How do I do that?": Press PrntScrn (usually just to the right of your F12 button) and open MSPaint or something and then Ctrl+V to paste. Save it and upload it to imageshack.us and then copy/paste the link here. |
http://img153.imageshack.us/img153/7...edfencecp9.png
Hope that works, I've never used imageshack before. |
Tired of waiting for someone to come ambling back at their own leisure so I'm double posting.
By using "edit as text" I think I found the offending NPC and here's what I believe to be the scripting for it. NPC fences_woodh.png 57 50 if (created) drawoverplayer; //#CLIENTSIDE if (created || playerenters) { setarray this.shape,5*3; for (cx = 0;cx<5;cx++) for (cy = 2;cy<3;cy++) this.shape[cx+cy*5] = 22; setshape2 5,3,this.shape; } NPCEND Can I safetly delete this to remove that annoying fence peice you see in the above image? |
Try opening the file in worpad and deleting the NPC manually there.
Edit: Yeah, that's the one. |
Yeah, that's what I'm trying, I just want to know if that looks like the entire script for thing. Can I delete it and reupload it without destroying all of kingdoms debug? <sarcastic> (meaning can that peice of script be cleanly deleted without causing a bug?)
|
Yes, everything between NPC and NPCEND is the code for that single NPC. Deleting that text will remove the NPC from the level.
|
Just cut out the stuff between NPC and NPCEND and paste it into a text file or something if you need to use it later. Kingdoms has about a billion of those fences, though, so you shouldn't have to worry.
|
It is an invalid script though which will not work online anyway (because of the use of this.shape). Normally you should not find that script anywhere on kingdoms.
Replace the script with: PHP Code:
|
| All times are GMT +2. The time now is 03:20 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.