Please Help With This Sell Shop

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

SmallDev

Member
Apr 6, 2020
39
0
6
I am making a sell shop for custom fish, where it takes there length multiplies it by the sell multiplier, we'll use one for simplicities sake, and adds money based on its rarity. I would like to know how to get there lengths from there lore, I'm using More Fish if that helps. here's a picture of what I need to get.
MKuL3PYVDZA_xdgjFVObDzpqb3Pm16Wkz5HTOCK5Htk7tNCmaVrfk1Eo4F8j5wTHV7AS=s170
Here's what I could piece together,
Code:
set RarityBoost to "Rarity List Here, Common, Rare, Ect"

set length to "Here's where you'd get the length"
if  player's held item is named "List Here" then
player balance add 1 * length + Rarity boost
delete player's held item

Any help would be appreciated thanks.
 
I am making a sell shop for custom fish, where it takes there length multiplies it by the sell multiplier, we'll use one for simplicities sake, and adds money based on its rarity. I would like to know how to get there lengths from there lore, I'm using More Fish if that helps. here's a picture of what I need to get.
MKuL3PYVDZA_xdgjFVObDzpqb3Pm16Wkz5HTOCK5Htk7tNCmaVrfk1Eo4F8j5wTHV7AS=s170
Here's what I could piece together,
Code:
set RarityBoost to "Rarity List Here, Common, Rare, Ect"

set length to "Here's where you'd get the length"
if  player's held item is named "List Here" then
player balance add 1 * length + Rarity boost
delete player's held item

Any help would be appreciated thanks.


Can you please use tabs and collins in your code?

I think this might work:

Code:
if lore of held item contains "&aCommon":
  set {rarityBoost.%player%} to "10"
if lore of held item contains "69.7cm":
  set {length.%player%} to "69.7cm"
if player's held item is named "List Here" then
  player balance add 1 * {length.%player%} + {rarityBoost.%player%}
  remove 1 of player's held item
[/code]
 
It says it can't understand
Code:
if player's held item is named "List Here" then
of course I replaced the list here with fish name, but it says it can't understand the condition.
 
Status
Not open for further replies.