Area istant kill/Delete.

Discussions on various DOL development features

Moderator: Support Team

Area istant kill/Delete.

Postby Krusck » Fri Jun 05, 2009 7:11 pm

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);
}
}
}
}
Last edited by Krusck on Tue Jun 09, 2009 12:02 pm, edited 1 time in total.
Image
Hurricane BETA Cooming
Krusck
DOL Follower
 
Posts: 426
Joined: Sat Jun 21, 2008 10:24 pm
Website: http://daoc.goa.com
Location: University of Sydney, Western Ave (Australia).

Re: Area istant kill/Delete.

Postby bluraven » Mon Jun 08, 2009 10:46 pm

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. :)
Image
bluraven
Support Team
 
Posts: 1484
Joined: Mon Mar 19, 2007 8:18 am
Location: Las Vegas, NV

Re: Area istant kill/Delete.

Postby Krusck » Tue Jun 09, 2009 12:02 pm

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
Image
Hurricane BETA Cooming
Krusck
DOL Follower
 
Posts: 426
Joined: Sat Jun 21, 2008 10:24 pm
Website: http://daoc.goa.com
Location: University of Sydney, Western Ave (Australia).

Re: Area istant kill/Delete.

Postby Graveen » Tue Jun 09, 2009 1:41 pm

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. :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12661
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Area istant kill/Delete.

Postby bluraven » Tue Jun 09, 2009 3:34 pm

Graveen, are you thinking of the contribution section? :D
Image
bluraven
Support Team
 
Posts: 1484
Joined: Mon Mar 19, 2007 8:18 am
Location: Las Vegas, NV

Re: Area istant kill/Delete.

Postby Graveen » Tue Jun 09, 2009 3:36 pm

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 :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12661
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Area istant kill/Delete.

Postby Tolakram » Tue Jun 09, 2009 4:23 pm

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
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: Area istant kill/Delete.

Postby Graveen » Tue Jun 09, 2009 4:57 pm

Yay !
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12661
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Area istant kill/Delete.

Postby Aredhel » Wed Jul 08, 2009 11:26 pm

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! :)
User avatar
Aredhel
Inactive Staff Member
 
Posts: 1024
Joined: Sat Apr 14, 2007 1:49 pm
Location: Germany

Re: Area istant kill/Delete.

Postby Etaew » Thu Jul 09, 2009 9:34 am

oh hi... yes i like the idea... when graveen fixes my database for storm, ill fix the website for him :)
Retired DOL Enthusiast | Blog
User avatar
Etaew
Inactive Staff Member
 
Posts: 7602
Joined: Mon Oct 13, 2003 5:04 pm
Website: http://etaew.net
Location: England

Re: Area istant kill/Delete.

Postby Crazys » Thu Jul 09, 2009 12:32 pm

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
Crazys
Contributor
 
Posts: 346
Joined: Tue Nov 07, 2006 10:18 pm

Re: Area istant kill/Delete.

Postby Graveen » Thu Jul 09, 2009 1:05 pm

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 :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12661
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: Area istant kill/Delete.

Postby Tolakram » Thu Jul 09, 2009 1:47 pm

CRAFTING FIRST! :D
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: Area istant kill/Delete.

Postby Centurio » Thu Jul 09, 2009 2:34 pm

Dinberg says see below
Heavy metal is The law
User avatar
Centurio
DOL Acolyte
 
Posts: 142
Joined: Tue Feb 13, 2007 10:51 pm
Website: http://www.myspace.com/pagandio

Re: Area istant kill/Delete.

Postby Dinberg » Thu Jul 09, 2009 2:53 pm

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.
The Marvelous Contraption begins to stir...
User avatar
Dinberg
Inactive Staff Member
 
Posts: 4695
Joined: Sat Mar 10, 2007 9:47 am
Yahoo Messenger: dinberg_darktouch
Location: Jordheim


Return to “%s” DOL Development Discussion

Who is online

Users browsing this forum: No registered users and 0 guests