Anonymous | Login | Signup for a new account | 02-01-25 20:46 CET |
Main | My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||
ID | Project | Category | View Status | Date Submitted | Last Update | |
0001866 | SphereServer | executable - generic | public | 14-12-10 05:33 | 24-03-13 19:44 | |
Reporter | Coruja | |||||
Assigned To | RanXerox | |||||
Priority | normal | Severity | minor | Reproducibility | always | |
Status | resolved | Resolution | fixed | |||
Platform | OS | OS Version | ||||
Product Version | ||||||
Target Version | Fixed in Version | |||||
Summary | 0001866: Sphere setting random MORE2 for t_potion on worldsave | |||||
Description | When you create an custom potion without MORE2, sphere will set a random MORE2 for this potion if it using t_potion typedef. This random value get stored on the item after any worldsave. This thing makes potions unable to stack because of different MORE2 | |||||
Steps To Reproduce | PART 1 (creating the potion) -Create the potion with .add i_potion_mana -Type ".xshow dMORE2" and it will return 0 -Type ".save" (for worldsave, lol) -Type ".xshow dMORE2" again and now it will return a new value from 0~1000 PART 2 (stacking the potion) -Create a new i_potion_mana -It will come with MORE2=0 and will not stack on any another mana potion with random MORE2 set by sphere | |||||
Additional Information | Itemdef used to reproduce the bug [ITEMDEF i_potion_Mana] ID=0f0e NAME=Mana Refresh TYPE=t_potion TDATA1=i_bottle_empty RESOURCES=i_reag_eye_of_newt 3, i_bottle_empty SKILLMAKE=ALCHEMY 40.0 VALUE=19 ON=@DClick SRC.MANA += 50 IF (<SRC.MANA> > <SRC.MAXMANA>) SRC.MANA=<SRC.MAXMANA> ENDIF | |||||
Tags | No tags attached. | |||||
Nightly Version | 09-09-2008 | |||||
Experimental Flags | None | |||||
Option Flags | None | |||||
Internal Build Number | ||||||
Attached Files | ||||||
Notes | |
(0000782) ShiryuX (developer) 18-12-10 21:32 |
You have to remember that potion are spells inside items. Now, these spells must have a strength, or else it will be an invalid item. So I recommend you to set MORE2=1 below @Create in your script. |
(0000783) Coruja (developer) 19-12-10 07:14 |
I already do it, but it's not a good idea when you have 409356209483562340975632094652370984563420987563428709 potions on the server, because every potion stack will raise another "MORE2=1" line on save files thats why I used it without MORE2 :D |
(0001523) RanXerox (developer) 24-03-13 19:44 |
As ShiryuX said, the server adds a random MORE2 value on any t_potion object that is missing one because potions are essentially spells, and a spell needs to have strength... If you want to make stack-able custom potions that are not related to spells, use a custom type, or set the MORE2 value to a positive number in @Create (extra lines in the save file don't make that much difference...) |
Issue History | |||
Date Modified | Username | Field | Change |
14-12-10 05:33 | Coruja | New Issue | |
18-12-10 21:32 | ShiryuX | Note Added: 0000782 | |
19-12-10 07:14 | Coruja | Note Added: 0000783 | |
21-12-10 02:23 | MrSugarCube | Severity | major => minor |
24-03-13 19:44 | RanXerox | Note Added: 0001523 | |
24-03-13 19:44 | RanXerox | Status | new => resolved |
24-03-13 19:44 | RanXerox | Resolution | open => fixed |
24-03-13 19:44 | RanXerox | Assigned To | => RanXerox |
Copyright © 2000 - 2010 MantisBT Group |