Jump to content

Utility: [UnOfficial] Skyfortress Drop/reroll enchantment Functions


sader1992

Recommended Posts


  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

[UnOfficial] Skyfortress Drop/reroll enchantment Functions


README FIRST!

those are UnOfficial

there is 2 main scripts 

the first one (you need to add it first to your .conf file)

SkyFortress_Functions

this have the main functions

HEADER >> (read it before you use the script)

Spoiler

//===== rAthena Script =======================================
//= Sky Fortress Enchantment Functions
//===== By: ==================================================
//= Sader1992
//https://rathena.org/board/profile/30766-sader1992/
//===== Changelogs: ==========================================
//= 1.0 First version.
//============================================================
//SkyFortressWeapon(<itemid>{,<identify>{,<keep>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>}}});
//------
//<keep>: the number of the enchantment you want to keep (1,2,3) , 4 if you want to reroll all.
//if not reroll , you can just 'SkyFortressWeapon(<itemid>);'
//will give the player an enchanted weapon id
//============================================================
//SkyFortressMonster(<Monster ID>);
//------
//this return a random weapon that drop from that monster!
//============================================================
//SkyFortressDrop(<Monster ID>);
//------
//this function is a shurtcut to give the player the item on mob kill event
//you can add in the mob kill event something like
//SkyFortressDrop(killedrid);
//the chance of drop is the global variable '$SKYFORTRESS_CHANCE'%
//so all you need to change the drop chance for example to 5%
//in game do this command
//@set $SKYFORTRESS_CHANCE 5
//this will make the drop chance for a weapon from the list is 5%
//============================================================

 

the 2nd main file is SkyFortress_reroll

this for the reroll npc

this npc requir https://github.com/rathena/rathena/pull/4195

if you didn't apply this PR the npc will give you error!

 

the 3rd file SkyFortress_Test is just for test , do not use it unless you want to test and edit the script

 

to add the drop to your instance , you need to edit the instance script it self , as this not normal drop , it's on event kill drop.

 

if you have problem with the script , you can use the forum post to report it to me, and me or someone else will help you fix it.


  • Submitter
  • Submitted
    09/15/2019
  • Category
  • Video
  • Content Author
    sader1992

 

  • Upvote 3
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...