Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-10-2012, 12:46 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Fysez View Post
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.
__________________

Last edited by Tigairius; 05-10-2012 at 06:17 PM.. Reason: links approved
Reply With Quote
  #2  
Old 05-10-2012, 03:27 PM
Devil_Lord2 Devil_Lord2 is offline
David K?
Devil_Lord2's Avatar
Join Date: Apr 2011
Location: PA, MD.
Posts: 643
Devil_Lord2 can only hope to improve
Quote:
Originally Posted by cbk1994 View Post
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();
    }
  }

I just came across this and it looks very insightful,
whether or not I will ever use it to find npc images
to do something, I'd like to give you rep when I can.
__________________

Digital Media Artist - David K? </3 (UnLoved)
www.davidkrout.com
www.twitch.com/DavidKkz



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:06 PM.


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