#272 Lua function(s) needed for vitality potions XP. TSkill. AA

باز‌کردن
3 سال پیش باز شده توسط image · 3 دیدگاه

I need more criteria for this honestly

I need more criteria for this honestly
neatz09 نظر 3 سال پیش
همكار

625 ITEM_STAT_COMBATEXPMOD
626 ITEM_STAT_TRADESKILLEXPMOD
627 ITEM_STAT_ACHIEVEMENTEXPMOD

guess theres an item stat for them that needs to be wired

625 ITEM_STAT_COMBATEXPMOD 626 ITEM_STAT_TRADESKILLEXPMOD 627 ITEM_STAT_ACHIEVEMENTEXPMOD guess theres an item stat for them that needs to be wired
image نظر 3 سال پیش
همكار

we already support combat exp mod

bool Player::AddXP(int32 xp_amount){
	MStats.lock();
	xp_amount += (int32)(((float)xp_amount) * stats[ITEM_STAT_COMBATEXPMOD]) / 100;
	MStats.unlock();

and tradeskill xp


bool Player::AddTSXP(int32 xp_amount){
	MStats.lock();
	xp_amount += ((xp_amount)*stats[ITEM_STAT_TRADESKILLEXPMOD]) / 100;
	MStats.unlock();

ITEM_STAT_ACHIEVEMENTEXPMOD is the only one that isn't in it seems

we already support combat exp mod ``` bool Player::AddXP(int32 xp_amount){ MStats.lock(); xp_amount += (int32)(((float)xp_amount) * stats[ITEM_STAT_COMBATEXPMOD]) / 100; MStats.unlock(); ``` and tradeskill xp ``` bool Player::AddTSXP(int32 xp_amount){ MStats.lock(); xp_amount += ((xp_amount)*stats[ITEM_STAT_TRADESKILLEXPMOD]) / 100; MStats.unlock(); ``` ITEM_STAT_ACHIEVEMENTEXPMOD is the only one that isn't in it seems
image نظر 3 سال پیش
همكار

since aaxp needs a complete implementation this is low on the list.

since aaxp needs a complete implementation this is low on the list.
برای پیوستن به گفتگو، وارد شودید.
بدون نقطه عطف
بدون مسئول رسیدگی
2 مشارکت کننده
درحال بارگذاری...
لغو
ذخيره
هنوز محتوایی ایجاد نشده.