Jump to content

Random item option Dealer NPC


Keitenai

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  98
  • Reputation:   74
  • Joined:  12/04/14
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  04/20/16
  • Last Seen:  

very nice!!!!!!!!!!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   1
  • Joined:  03/10/16
  • Last Seen:  

no text script inside. please re-upload.

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.01
  • Content Count:  98
  • Reputation:   74
  • Joined:  12/04/14
  • Last Seen:  

On 12/8/2016 at 11:52 AM, rizkiolivia said:

no text script inside. please re-upload.

Link update

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  72
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

hi Keitenai, i need to ban some item

EX: item kvm , item mora ,item BB , item VB

i using script

setarray .@blacklist[0], 1501 ;

but not work!!

plz help me or guide me!!

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  10/18/13
  • Last Seen:  

Spoiler
Quote

 

Spoiler
Spoiler

 

 

 

 

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

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

  • 5 months later...

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

how to reset the random option of the item?

Link to comment
Share on other sites

  • 9 months later...

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  12
  • Reputation:   0
  • Joined:  12/23/17
  • Last Seen:  

How to whitelist Random Option instead of ignore Random Option

Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  5
  • Reputation:   0
  • Joined:  05/31/18
  • Last Seen:  

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

  • 10 months later...

  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  194
  • Reputation:   1
  • Joined:  12/13/16
  • Last Seen:  

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

  • 2 years later...

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   6
  • Joined:  12/20/11
  • Last Seen:  

@Keitenai any update for 2024? Its nnot working now in latest emulator. Than ks

Quote

[Error]: buildin_rand: range (0) is too small. No randomness possible.
[Warning]: Script command 'rand' returned failure.


 

Edited by Loke
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...