Jump to content

Issues with Experience Item Functionality and Stack Usage

Pending 1.0.1

9527
9527

Posted

1.

Could you add support for selling experience items directly in the shop?
After configuring them, they do not seem to function properly.

2.
When using the item, it is consumed multiple times at once.
My server uses a stack plugin:

https://codefling.com/plugins/loot-table-stacksize-gui

3.
For some specific event NPC drops, could they be configured like this directly?

"ShortName": "chocolate",
"Inclusion Chance Percentage": 80.0,
"Minimum Amount": 1,
"Maximum Amount": 1,
"CustomName": "novice's pamphlet",
"SkinID": 2863540162

When the item drops using this configuration, it cannot be used normally.

4.

The experience value is also incorrect and does not follow the configuration:

"Item list": {
"novice's pamphlet": {
"displayName": null,
"shortname": "chocolate",
"skinID": 2863540162,
"effects": [
{
"min": 2000.0,
"max": 2000.0,
"type": "XPInjection"
}
]

According to the configuration it should give 2000 XP, but after using it, the player receives 7000 XP instead.

 

圖片.png

  • Curator
imthenewguy

Posted

1. Most shop plugins support commands when purchasing an item. Instead of creating the item to give from the shop, give it via the stip.give command.

2. I think I can see the issue. Is it only happening for items that have multiple effects? 

3. The looting needs to be handled through my plugin because it creates a json string and attaches it to the item.text field. You cannot replicate this in another plugin. It should support most drop sources that you need, including NpcSpawn etc. What are you trying to add it to?

4. The xp given is the raw xp. If they have other modifiers it will multiply this amount. I can add a field to the XPInjection class that prevents modifiers from affecting the value if you like?

9527

Posted

 

2 小時前,imthenewguy 說:

1. 大多數商店插件都支援在購買物品時使用指令。與其在商店中創建物品進行贈送,不如使用 stip.give 命令進行贈送。

2. 我想我明白問題所在了。這種情況是否只發生在具有多種效果的物品上? 

3. 拾取物品需要透過我的插件處理,因為它會建立一個 JSON 字串並將其附加到物品的文字欄位。你無法在其他插件中實現這一點。它應該可以支援你需要的絕大多數掉落來源,包括 NpcSpawn 等。你想把它加到什麼地方?

4. 此處給出的經驗值是原始經驗值。如果他們有其他加成,經驗值會乘以這個數值。如果您需要,我可以為 XPInjection 類別新增一個字段,防止加成影響該數值。

1.The shop can indeed be used through commands — I have already considered this.

2.This issue only occurs with the items from this plugin itself. Is there any way to improve it?
At the moment, the only workaround is encouraging players to use the items one by one instead of stacking them.

3.I am using this with Dungeon Events so players can complete the dungeon and obtain experience items as rewards.
Is there any way to improve compatibility or behavior in this situation?
https://codefling.com/plugins/dungeon-events

4.I really need to prevent any additional bonus from occurring. This function is very necessary.

  • Curator
imthenewguy

Posted

34 minutes ago, 9527 said:

 

1.The shop can indeed be used through commands — I have already considered this.

2.This issue only occurs with the items from this plugin itself. Is there any way to improve it?
At the moment, the only workaround is encouraging players to use the items one by one instead of stacking them.

3.I am using this with Dungeon Events so players can complete the dungeon and obtain experience items as rewards.
Is there any way to improve compatibility or behavior in this situation?
https://codefling.com/plugins/dungeon-events

4.I really need to prevent any additional bonus from occurring. This function is very necessary.

2. Can you tell me what items are causing this issue? A video would be even more helpful.

3. I will add support for DungeonEvents. It will be under the Event loot source with the "DungeonEvent" identifier.

4. I will add a field in the next update that will allow you to prevent modifiers from being applied.

9527

Posted

As shown in the video, it consumes all of them at once. Is there any way to prevent this or improve it?

  • Curator
imthenewguy

Posted

Behaves differently for me.

I have released a new version that may fix the issue, but it will break all pre-existing skill tree items on your server.
I recommend updating to it when you wipe your server next.

 

9527

Posted

Using the test version has improved the problem.

2.3m

Downloads

Total number of downloads.

10.6k

Customers

Total customers served.

152.7k

Files Sold

Total number of files sold.

3.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.