Page 1 of 1

Area istant kill/Delete.

PostPosted: Fri Jun 05, 2009 7:11 pm
by Krusck
Code: Select all
/* Powered by Krusck
* for Dawn of Light
* Rewritten in data 05/06/09
* Work whit 1695 SVN
* */
using System;
using System.Collections.Generic;
using System.Text;
using DOL.GS;
using DOL.Database;
using DOL.GS.PacketHandler;

namespace DOL.GS.Commands
{
[CmdAttribute(
"&bomb",
ePrivLevel.GM,
"'/bomb kill/delete' - This Area are Deleted!")]
public class AtomicaCommandHandler : AbstractCommandHandler, ICommandHandler
{
public void OnCommand(GameClient client, string[] args)
{
if (args.Length < 2)
{
client.Out.SendMessage("Use: /bomb kill", eChatType.CT_System, eChatLoc.CL_SystemWindow);
client.Out.SendMessage("Use: /bomb delete", eChatType.CT_System, eChatLoc.CL_SystemWindow);
return;
}
if (args[1] == "kill")
{
foreach (GameNPC coso in client.Player.GetNPCsInRadius(2000)) //set your range
{
coso.Delete();
}
client.Out.SendMessage("This area has been Killed", DOL.GS.PacketHandler.eChatType.CT_Important, DOL.GS.PacketHandler.eChatLoc.CL_SystemWindow);
}
if (args[1] == "delete")
{
foreach (GameNPC coso in client.Player.GetNPCsInRadius(2000)) //set your range
{
coso.Delete();
}
client.Out.SendMessage("This area has been Deleted", DOL.GS.PacketHandler.eChatType.CT_Important, DOL.GS.PacketHandler.eChatLoc.CL_SystemWindow);
}
}
}
}

Re: Area istant kill/Delete.

PostPosted: Mon Jun 08, 2009 10:46 pm
by bluraven
Hi Krusck,

I love that you are sharing scripts with the community, I fully salute your efforts! I also have some helpful suggestions for you:

Instead of posting them as code in the forums, you can upload them in the user files section, this is the preferred method of sharing scripts with the community. The scripting forum is really more for getting help with scripting and other scripting related things, not really for releasing/sharing scripts since the user files section is much better suited for that use as it keeps track of versions, allows you to provide a description, and even allows user comments/feedback, and makes it a one stop shop for people to find scripts, and find them much faster. Also, instead of saying "works with latest SVN" it's much better to state the exact SVN revision number that you tested it with because inevitably time will pass and more revisions with come, and then "most recent SVN" in the notes of your script loses it's intended meaning, where as "Works with SVN 1695" holds true over time. :)

Re: Area istant kill/Delete.

PostPosted: Tue Jun 09, 2009 12:02 pm
by Krusck
Hi Krusck,

I love that you are sharing scripts with the community, I fully salute your efforts! I also have some helpful suggestions for you:

Instead of posting them as code in the forums, you can upload them in the user files section, this is the preferred method of sharing scripts with the community. The scripting forum is really more for getting help with scripting and other scripting related things, not really for releasing/sharing scripts since the user files section is much better suited for that use as it keeps track of versions, allows you to provide a description, and even allows user comments/feedback, and makes it a one stop shop for people to find scripts, and find them much faster. Also, instead of saying "works with latest SVN" it's much better to state the exact SVN revision number that you tested it with because inevitably time will pass and more revisions with come, and then "most recent SVN" in the notes of your script loses it's intended meaning, where as "Works with SVN 1695" holds true over time. :)
Really Tnx . i go to upload and edit 1695 SVN

Re: Area istant kill/Delete.

PostPosted: Tue Jun 09, 2009 1:41 pm
by Graveen
The contribution sections is for livelike or bugfixes integration, it is true. The scripts are better in User Files but, if they are applicable to DoL, or possibly applicable to DoL, this is interesting to put them here ( i think the revamped /train, /copy or /paste), simply because we often 'miss' (at least i) the posted files :D

Ofc bugfixes or database fixes comes directly here. :)

Re: Area istant kill/Delete.

PostPosted: Tue Jun 09, 2009 3:34 pm
by bluraven
Graveen, are you thinking of the contribution section? :D

Re: Area istant kill/Delete.

PostPosted: Tue Jun 09, 2009 3:36 pm
by Graveen
yes.... :D

i don't even notice it was another section :D :D

my main problem is i don't visit often the user files and i find interesting DoL stuff sometimes :)

Re: Area istant kill/Delete.

PostPosted: Tue Jun 09, 2009 4:23 pm
by Tolakram
You know what would be nice. If uploads to the file section generated an announcement post in one of these forums.

That web guy should be able to take care of it. :P

Re: Area istant kill/Delete.

PostPosted: Tue Jun 09, 2009 4:57 pm
by Graveen
Yay !

Re: Area istant kill/Delete.

PostPosted: Wed Jul 08, 2009 11:26 pm
by Aredhel
You know what would be nice. If uploads to the file section generated an announcement post in one of these forums.

That web guy should be able to take care of it. :P
The web guy! He'll like that nick! :)

Re: Area istant kill/Delete.

PostPosted: Thu Jul 09, 2009 9:34 am
by Etaew
oh hi... yes i like the idea... when graveen fixes my database for storm, ill fix the website for him :)

Re: Area istant kill/Delete.

PostPosted: Thu Jul 09, 2009 12:32 pm
by Crazys
oh hi... yes i like the idea... when graveen fixes my database for storm, ill fix the website for him :)
All hail the words of the "Web Guy"!!!! Fix his database you must

Re: Area istant kill/Delete.

PostPosted: Thu Jul 09, 2009 1:05 pm
by Graveen
oh hi... yes i like the idea... when graveen fixes my database for storm, ill fix the website for him :)
aha :D on top of my priority list for this summer:

#1: various system work - db replication, code change to integrate the SVN rev number in DoL [need to use msbuild community tasks]

#2: publish a new binary release, based this time once and for all on WiX installer [need to work more with WiX] - also need to integrate the new public DB

#3: commit craft changes, and use the db converter to train myself [need to prepare pkey changes]

#4: deploy the pictures of items and mobs, i need to post process more some pictures

#5: begin the pkey changes

but for now, busy until monday, awfully :)

Re: Area istant kill/Delete.

PostPosted: Thu Jul 09, 2009 1:47 pm
by Tolakram
CRAFTING FIRST! :D

Re: Area istant kill/Delete.

PostPosted: Thu Jul 09, 2009 2:34 pm
by Centurio
Dinberg says see below

Re: Area istant kill/Delete.

PostPosted: Thu Jul 09, 2009 2:53 pm
by Dinberg
I've said it before, can we keep accusations off the public forums? If you want to make a complaint, do it to me or Graveen in a private message. But script stealing is very hard to prove 100%, and even harder to prevent. I would once more warn that people exercise caution with who they share their scripts with, if you dont trust them dont share it.