NPC's
I need help!
Ok, so I deleted my whole server, but whenever I click on the NPC's folder, my RC disconnects. I cannot click on the npcs folder to delete them! That's the only things left on the server, and it's NPC's such as "npcs/npclocalnpc". I have to delete them 1 by 1 on client RC. Is there any type of script I can use to delete them fully? Without deleting them manually (1 by 1), Thanks! |
Not really. You can't modify that folder via scripts serverside, and clientside you'd have to use client-RC stuff which is typically for privileged scripts only, I think.
Did you try using findNPC to find each of the local DB NPCs and then calling destroy() on them? Alternatively you could give yourself partial folder rights like "rw npcs/localnpca*" and then "localnpcb" etc (doing this intelligently if a lot of them start with the same few characters). |
Mind giving me a script real quick?
|
Quote:
Quote:
PHP Code:
|
Didn't work, I used
function onCreated() findNPC("npcs/localnpc").destroy(); (In the Control-NPC). |
Quote:
PHP Code:
|
This should go through a kill everything.
PHP Code:
/clearnpcs yourworld.gmap |
So I should readd the levels first and then try the script?
|
Oh, thanks guys.
Chris, your's worked, thanks. (I didnt try yours FP4, but thanks xP) |
All times are GMT +2. The time now is 08:44 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.