Jump to content
Keitenai

Random item option Dealer NPC

Recommended Posts

File Name: RandomOptionDealer
File Submitter: keitenai
File Submitted: 1 Dec 2016
File Category: Utilities
Content Author: keitenai

 

Random item option Dealer NPC

Script Information:
     This NPC script will be dealing 'random option enchantment' to players  for a price of Zeny/Cashpoint
 

Features:

  • Configurable NPC dealing currency to 'Zeny' or 'Cashpoints'.
  • Configurable dealing price.
  • Configurable to allow overwriting the already existing option enchantment or not.
  • Configurable fail chance rate.
  • Configurable Minimum & Maximum option enchant effect Values.
  • Configurable Maximum item Option slots.

Version 1.1

  • Implemented optional Item requirement.

WARNING:

This random enchantment NPC have a chance of failing, and breaking the player's Chosen equipment along with its compounded cards.

  • You can set the Fail chance rate from 0% to 100%
  • NPC will warn the player about the Fail chance rate (%).
  • The NPC will ask the player if he wants to take the risk and proceed with the random enchantment.
  • Upon selecting the option to proceed, the player's item will get a "Random" option enchantment.

 

Compatible with:  rAthena ac2ba09

Download  V1.1: RandomOptionDealer V1.1.txt

Download V1:  RandomOptionDealer.txt

 

Hope you find this useful ^_^

 

Edited by Keitenai
  • Upvote 2
Link to comment
Share on other sites

can i make a sugestion for this. would it be posible to make it so only certain items get certain effects for example only weapons can get dmg increase etc.  for example i was trying this out and a knife has ghost armor type applied to it. that should be something for a garment or armor. also maybe make it so that there is a small list of effects that are extremely dificult to get

 

Edited by sikiro
Link to comment
Share on other sites

On 12/1/2016 at 9:40 PM, Keitenai said:

File Name: RandomOptionDealer
File Submitter: keitenai
File Submitted: 1 Dec 2016
File Category: Utilities
Content Author: keitenai

 

Random item option Dealer NPC

Script Information:
     This NPC script will be dealing 'random option enchantment' to players  for a price of Zeny/Cashpoint
 

Features:

  • Configurable NPC dealing currency to 'Zeny' or 'Cashpoints'.
  • Configurable dealing price.
  • Configurable to allow overwriting the already existing option enchantment or not.
  • Configurable fail chance rate.
  • Configurable Minimum & Maximum option enchant effect Values.
  • Configurable Maximum item Option slots.

Version 1.1

  • Implemented optional Item requirement.

WARNING:

This random enchantment NPC have a chance of failing, and breaking the player's Chosen equipment along with its compounded cards.

  • You can set the Fail chance rate from 0% to 100%
  • NPC will warn the player about the Fail chance rate (%).
  • The NPC will ask the player if he wants to take the risk and proceed with the random enchantment.
  • Upon selecting the option to proceed, the player's item will get a "Random" option enchantment.

 

Compatible with:  rAthena ac2ba09

Download  V1.1: RandomOptionDealer V1.1.txt

Download V1:  RandomOptionDealer.txt

 

Hope you find this useful ^_^

 

thx

Link to comment
Share on other sites

set .OverWrite,0;	// Allows overwriting the already existing option enchantment ( 0 to disable )
 -> It still overwrites the first RandOption

set .OverWrite,1;	// Allows overwriting the already existing option enchantment ( 0 to disable )
 -> It Only Overwrites the first RandOption (Ex if you have 4 options) only the 1st one is being overwritten

set .FailRate,0;	// Sets fail chance
	-> Still Breaks the Equipment idk why

set .MaxIndex,3;	// Maximum option slots ( default is 0 to 4 )
	-> Ex. if i add the 1st Option and i have 2 free slots.. there's a time that it will overwrite the 1st option 

Add a Continue or Save Option,, so if you didnt like the option you can discard it

thanks

 

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.