Quote:
Originally Posted by Fysez
Well the reason I say I cannot share the script isn't because i'm being rude or don't want to post it in forums is because,
I figured maybe if I deleted the scripts, It would delete them all.
What was I thinking? I don't know.
I have a back-up folder in which I store scripts.
I didn't store this one x.x
|
Then post this information in the original post. Trying to help you is like pulling teeth. How can we possibly help you if you don't give us any information? Unless there's something else you haven't told us, you don't need to recreate the GMAP, you need to delete the staff blocks.
You would benefit from reading
this, especially the sections
"Be precise and informative about your problem" and
"Describe the goal, not the step".
To delete all staff blocks in a level, assuming all staff blocks have the image "block.png":
PHP Code:
// put this in a database NPC
function onCreated() {
temp.lvl = findLevel("mygmap.gmap");
temp.lvlNPCs = temp.lvl.npcs;
for (temp.npc : temp.lvlNPCs) {
if (temp.npc.img == "block.png") {
temp.npc.destroy();
}
}
}
Adjust the image check to work with your situation.