[Help] Add stats to weapon

04/16/2020 01:17 VicetoN#1
Hey guys, I have a scroll that should add +5 to all stats and +100 to HP, I have succeed on adding only STR, STA and HP because i used:
Code:
g_xRandomOptionProperty->SetParam(pTarget->GetRandomOptItemIdPtr(), 35, 100);
but i want all of the 5:
str, sta, dex, int and hp

can some one please help me how to add all of the 5? Thanks!
04/16/2020 07:37 Naltalah#2
Code:
#define DST_STAT_ALLUP			10003
04/16/2020 12:26 VicetoN#3
Quote:
Originally Posted by Naltalah View Post
Code:
#define DST_STAT_ALLUP			10003
Ok thanks for your help but i want to add more than that, like cirtical damage and etc... how can i add the upgrades to my item not the "awakening" way :)
04/16/2020 14:23 Naltalah#4
That would be propItem then?
04/16/2020 14:53 VicetoN#5
Quote:
Originally Posted by Naltalah View Post
That would be propItem then?
Maybe I didn't make myself clear,
I have this scroll:
[Only registered and activated users can see links. Click Here To Register...]

I want that when I apply this scroll on weapon or armor all of what it is saying will appear on the item.
again thanks for your time :)
04/16/2020 14:56 Naltalah#6
That many stats can't be done without changing a lot in the source, it basically requires new parameters for items.
04/16/2020 15:38 VicetoN#7
Quote:
Originally Posted by Naltalah View Post
That many stats can't be done without changing a lot in the source, it basically requires new parameters for items.
Ok thanks for your help
04/17/2020 00:42 Avalion#8
DST_STAT_ALLUP won't work for awakenings either. Dst Value cannot be above 255 for awakenings; However, if it is using the randomOpt (flyff rarity system), you can do that in propitemetc.
04/17/2020 01:06 VicetoN#9
Quote:
Originally Posted by Avalion View Post
DST_STAT_ALLUP won't work for awakenings either. Dst Value cannot be above 255 for awakenings; However, if it is using the randomOpt (flyff rarity system), you can do that in propitemetc.
Im trying to fix my rarity system
04/17/2020 15:08 xToffer#10
Quote:
Originally Posted by VicetoN View Post
Im trying to fix my rarity system
Just modify the propitemect.inc
Code:
	RandomOptItem	1	IDS_PROPITEMETC_INC_000083	10	90000000
or this fix awakening scroll.
[Only registered and activated users can see links. Click Here To Register...]
04/17/2020 17:10 Tweeney#11
This will exactly be fixed your problem

at Rarity.inc

Code:
	RandomOptItem	54	IDS_PROPITEMETC_CUS_000005	0xffff3300 54
	{
		DST_STAT_ALLUP	5
		DST_HP_MAX 1000
		DST_ATKPOWER_RATE 4
		DST_ADJDEF_RATE 5
		DST_MONSTER_DMG 6
		DST_HP_MAX_RATE 8
		DST_PVP_DMG 3
		DST_EXPERIENCE 4
	}
Regards,
the one who develops your files.
04/17/2020 17:14 VicetoN#12
Quote:
Originally Posted by xToffer View Post
Just modify the propitemect.inc
Code:
	RandomOptItem	1	IDS_PROPITEMETC_INC_000083	10	90000000
or this fix awakening scroll.
[Only registered and activated users can see links. Click Here To Register...]
I'll try that, anyway i don't have problem with the awake scroll

I have those in a file called Rarity.inc:
Code:
	RandomOptItem	50	IDS_PROPITEMETC_CUS_000001	0xff996600 50
	{
		DST_STAT_ALLUP	1
		DST_HP_MAX 300
	}

	RandomOptItem	51	IDS_PROPITEMETC_CUS_000002	0xff66cccc 51 
	{
		DST_STAT_ALLUP	2
		DST_HP_MAX 400
	}

	RandomOptItem	52	IDS_PROPITEMETC_CUS_000003	0xff333366 52
	{
		DST_STAT_ALLUP	3
		DST_HP_MAX 500
		DST_ATKPOWER_RATE 1
		DST_ADJDEF_RATE 1
		DST_MONSTER_DMG 1
		DST_HP_MAX_RATE 4
	}

	RandomOptItem	53	IDS_PROPITEMETC_CUS_000004	0xffff6600 53
	{
		DST_STAT_ALLUP	4
		DST_HP_MAX 700
		DST_ATKPOWER_RATE 2
		DST_ADJDEF_RATE 3
		DST_MONSTER_DMG 3
		DST_HP_MAX_RATE 6
	}

	RandomOptItem	54	IDS_PROPITEMETC_CUS_000005	0xffff3300 54
	{
		DST_STAT_ALLUP	5
		DST_HP_MAX 1000
		DST_ATKPOWER_RATE 4
		DST_ADJDEF_RATE 5
		DST_MONSTER_DMG 6
		DST_HP_MAX_RATE 8
		DST_PVP_DMG 3
		DST_EXPERIENCE 4
	}