Jump to content

Utility : Mining (Explosives)


Lil Troll

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

/////////////////////////////////////////////////////////////////////////
//---------------------------------------------------------------------//
//                       MINING (EXPLOSION TYPE)                       //
//                     AUTHOR: LIL TROLL//COLDFIRE                     //
//---------------------------------------------------------------------//
//                          RATHENA SCRIPT                             //
//---------------------------------------------------------------------//
//                            Version 1                                //
//---------------------------------------------------------------------//
//    Credits to:                                                      //
//    - Sir Emistry(For teaching me OnTouch).                          //
//    - Lesbie for requesting the script.                              //
//     FEATURES:                                                       //
//    - Set the configuration, run the script.                         //
//    - Add duplicates.                                                //
//    - Player set the explosion and run for it!                       //
//    - Wait till the explosion off then grab the items.               //
//    - NPC AutoHides after set of explosions.                         //
//---------------------------------------------------------------------//
/////////////////////////////////////////////////////////////////////////

explosive_mining.txt

Edited by Lil Troll
  • Upvote 3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Hey! Thanks for the nice release.

I'm gonna try this out!

Keep it up! Cheers.

 

 

@Lil Troll, May i asked for a few question? i don't understand at the OnInit: part there are lots of setarray but it doenst work?

like the 

setarray .Debris[0],7049,757,756,6077,1010,1011,984,985;    // DEBRIS, STONES,ELUNIUM,ORIDECON,REFINE MATERIALS && ETC..

setarray .Scatter[0],1,2,3;                        // DEBRIS AMOUNT.
setarray .ScatArea[0],1,2,3;                    // SCATTER AREA.
setarray .SFXS[0],225,805,60;                    // MINING CAST
setarray .SFX[0],44,100,4,18,53,65,960,965,967,901,730,722,585,32,907,810,941,563;    // Mining Explosion.


Sort of confuse. @_@ Edited by Vlync
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Hey! Thanks for the nice release.

I'm gonna try this out!

Keep it up! Cheers.

 

 

@Lil Troll, May i asked for a few question? i don't understand at the OnInit: part there are lots of setarray but it doenst work?

like the 

 

setarray .Debris[0],7049,757,756,6077,1010,1011,984,985;    // DEBRIS, STONES,ELUNIUM,ORIDECON,REFINE MATERIALS && ETC..

setarray .Scatter[0],1,2,3;                        // DEBRIS AMOUNT.
setarray .ScatArea[0],1,2,3;                    // SCATTER AREA.
setarray .SFXS[0],225,805,60;                    // MINING CAST
setarray .SFX[0],44,100,4,18,53,65,960,965,967,901,730,722,585,32,907,810,941,563;    // Mining Explosion.

 

Sort of confuse. @_@

What do you mean? Are you getting map server error? 

 

If you are pinpointing "setarray .Debris[0]":

It is the scattered fragments upon explosion of the mine. Its just like consultation rewards. It will be randomly set as a drop upon set of explosion.

 

If you are pinpointing "setarray .Scatter[0]":

It is scattered debris amount pero explosion.

 

If you are pinpointing "setarray .ScatArea[0]":

This is the array of random area which the debris will be created.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Oh? Interesting concept to a mining system. Most people use a system that requires a pickaxe and the like. Though explosives, now that's a nice and unique touch to this. Your making steady improvement with your scripting techniques. That is good to see, keep it up, and you'll reach higher levels in no time.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Thanks sir GM Ocean, i would love to release more scripts when projects are done but i don`t have enough time do it. Doing scripts little by little. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   5
  • Joined:  03/09/12
  • Last Seen:  

Good one ..book marking

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  107
  • Reputation:   91
  • Joined:  01/19/12
  • Last Seen:  

Lil Troll, nice approach, i like it.  /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Lil Troll, nice approach, i like it.  /no1

Wow nothing more enlightening than my idol sir Myster comment! :)

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   4
  • Joined:  04/22/13
  • Last Seen:  

Hi Lil Troll, Thank you so much for the script,

Can you make the rewards can't be stolen by other players?

Link to comment
Share on other sites

  • 8 months later...

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Nice Released. 


How can i make the duplicate NPC's to be random on a specifc map? 


Is it possible to do that?

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  09/01/14
  • Last Seen:  

Really good scripts, I'm wondering how to set the NPC spawn randomly on a map? Please help me :3

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

movenpc "npcname",x,y;

just do some calculation to calculate random xy for your location.

 

* i remember i did reply a topic not long ago, it's about moving npc to random coordinate too. try search.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  09/01/14
  • Last Seen:  

movenpc "npcname",x,y;

just do some calculation to calculate random xy for your location.

 

* i remember i did reply a topic not long ago, it's about moving npc to random coordinate too. try search.

 

 

Yea, I already found your post, it's very helpful... /ok  but I got another problem now   /ic

Edited by Talon
Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   0
  • Joined:  01/20/13
  • Last Seen:  

is this fixed? i've tried to add it on my server, but it seems like, it's only damaging GM's.. 
I tested it with one player and she can sit beside it without dying from the explosion even if she's the one who set the bombs.. 
No errors on my putty.. 
and i haven't seen any of this part happening:
setarray .Debris[0],7049,757,756,6077,1010,1011,984,985;

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   6
  • Joined:  11/26/12
  • Last Seen:  

yes debris not work

the item debris not drop

setarray .Debris[0],7049,757,756,6077,1010,1011,984,985;

Link to comment
Share on other sites

  • 5 years later...

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  126
  • Reputation:   4
  • Joined:  10/31/12
  • Last Seen:  

image.png.693d6efdb30c0b639ca2e3e49609a14b.png

yes debris not working


 

Link to comment
Share on other sites

  • 10 months later...

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

how to edit the cell or distance of the explosion?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   10
  • Joined:  04/19/20
  • Last Seen:  

What the hail! This is almost a decade old script.

 

// Change this part.
setarray .ScatArea[0],1,2,3; // SCATTER AREA.

// To this
setarray .ScatArea[0], 3, 5, 7; // Increase the values for a larger scattering area.

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.15
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

1 hour ago, Wazaby said:

What the hail! This is almost a decade old script.

 

// Change this part.
setarray .ScatArea[0],1,2,3; // SCATTER AREA.

// To this
setarray .ScatArea[0], 3, 5, 7; // Increase the values for a larger scattering area.

 

the cell distance for the crystal example in 5 cell away from the crystal the players are safe?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...