Tbol
Well-Known Member
- Joined
- Apr 7, 2019
- Messages
- 526
- Reaction score
- 54
Hello, so i got weird issue i have potions in traders and you can loot them from monsters and i noticed that, the ones which drops from monsters they get actionid on them so basically it becomes inpossible to stack them anymore because of it.
So this one is looted from monsters
You see 3 Potions.
They weigh 3.00 oz.
health +2.000, mana +2.00
Item ID: 2779, Action ID: 65535
Position: 906, 139, 7
And these ones from traders bought ones
You see 45 Potions.
They weigh 45.00 oz.
health +2.000, ki +2.00
Item ID: 2779
Position: 906, 139, 7
So i tried looking for this actionid in data files and found only
Then checked how its created in monsters where it drops and how it sells from traders
Any ideas how remove this giving actionid from potion when they drop it from monster?
So this one is looted from monsters
You see 3 Potions.
They weigh 3.00 oz.
health +2.000, mana +2.00
Item ID: 2779, Action ID: 65535
Position: 906, 139, 7
And these ones from traders bought ones
You see 45 Potions.
They weigh 45.00 oz.
health +2.000, ki +2.00
Item ID: 2779
Position: 906, 139, 7
So i tried looking for this actionid in data files and found only
Code:
C:\Server\data\actions\scripts\tools\pick.lua:
16 end
17
18: if (ground.uid > 65535 or ground.actionid == 0) and not isInArray(groundIds, ground.itemid) then
19 return false
20 end
C:\Server\data\movements\scripts\walkback.lua:
1 function onStepIn(creature, item, position, fromPosition)
2: if item.uid > 0 and item.uid <= 65535 then
3 creature:teleportTo(fromPosition, false)
4 end
2 matches across 2 files
Then checked how its created in monsters where it drops and how it sells from traders
XML:
<item id="2779" countmax="1" chance1="10000" chancemax="1"/>
Lua:
shopModule:addBuyableItem({'potion'}, 2779, 20000, 1, 'potion')
Any ideas how remove this giving actionid from potion when they drop it from monster?