Jump to content

Spooky Npc : Refine Event


Recommended Posts


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

From topic: http://rathena.org/board/topic/87248-spooky-machine/#entry221966

Credits to: Core1

Features:

/////////////////////////////////////////////////////////////////////////
//    SPOOKY NPC                                                       //
//    LIL TROLL//COLDFIRE                                              //
/////////////////////////////////////////////////////////////////////////
//    RATHENA SCRIPT                                                   //
//---------------------------------------------------------------------//
//    Version 1.1                                                      //
//    Features:	( REFINE EVENT )				       //
//    - When a piece of setted item/equip is break he will get prize.  //
//    - The players can also claim their reward if they wanted their   //
//      item to be saved and exchange to prize but the prize pool      //
//      will be demoted to lower refine break prize.                   //
//    - The piece of equip can be set to a certain chance rate of      //
//      success or derefine each try.                                  //
//    - In every min/hour of configuration that is set to the npc      //
//      it will unhide/hide.                                           //
//    - Set your own prize, rates, etc., its very easy to configure.   //
//    - The script uses atcommand "refine" so that random chance       //
//      can be setted manually, i did not use the                      //
//      "getequippercentrefinery" because its much easier on this.     //
//    - Autodelete atcommand garbage of players!                     //
/////////////////////////////////////////////////////////////////////////

The configurations:

set .sname$,"[ Spooky Something? ]"; // You can change the name inside the bars.
              // Dont remove the comas and columns.
(MUST BE CUSTOM ITEM BOUND FOR BEST RESULT!)
setarray .s[0],2102, // Change this to what ever item the npc will refine.
                501,            // +1 Prize when the equip break.        
                502,            // +2 Prize when the equip break.
                503,            // +3 Prize when the equip break.
                504,            // +4 Prize when the equip break.
                505,            // +5 Prize when the equip break.
                506,            // +6 Prize when the equip break.
                507,            // +7 Prize when the equip break.
                508,            // +8 Prize when the equip break.
                509,            // +9 Prize when the equip break.
                 510;           // +10 Prize after successful refining of the equip.
setarray .t[0], 1,              // Amount of item that will refine by the NPC.
                1,              // +1 Prize amount when the equip break.    
                1,              // +2 Prize amount when the equip break.
                1,              // +3 Prize amount when the equip break.
                1,              // +4 Prize amount when the equip break.
                1,              // +5 Prize amount when the equip break.
                1,              // +6 Prize amount when the equip break.
                1,              // +7 Prize amount when the equip break.
                1,              // +8 Prize amount when the equip break.
                1,              // +9 Prize amount when the equip break.
                1;              // +10 Prize amount after successful refining of the equip.
setarray .c[0], 80,             // +1 Chance to refine in %.
                75,             // +2 Chance to refine in %.
                70,             // +3 Chance to refine in %.
                65,             // +4 Chance to refine in %.
                60,             // +5 Chance to refine in %.    
                55,             // +6 Chance to refine in %.
                50,             // +7 Chance to refine in %.
                35,             // +8 Chance to refine in %.
                20,             // +9 Chance to refine in %.
                5;              // +10 Chance to refine in %.
setarray .d[0], 35,             // +1 Fail minus refine %.
                40,             // +2 Fail minus refine %.
                45,             // +3 Fail minus refine %.
                50,             // +4 Fail minus refine %.
                55,             // +5 Fail minus refine %.    
                60,             // +6 Fail minus refine %.
                65,             // +7 Fail minus refine %.
                70,             // +8 Fail minus refine %.
                75,             // +9 Fail minus refine %.
                80;             // +10 Fail minus refine %.
set .p,3;             // Slot of desired equip that will be to used, see below for detail.
setarray .gmaid[0],2000000,     // ADD GM ACCOUNT ID HERE.
                   2000002;      // Auto delete @atcommand of players.

 

[spoiler=Changelogs:]v.1: Initial Release
v.1.1: Automatically Delete @command logs of non gm char. :)

[spoiler=Todo:]Finding way how to specifically delete the @command function used in the script of the players. :)

 

Feel free to suggest, also if you found bugs and error please do report it to me. Have fun using the script!

 

V.1 Deleted

V.1.1 spooky_npc.txt

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


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

Well.. Gonna try this..  ^^
 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  08/24/13
  • Last Seen:  

thx my friend, cool script, 

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...