Illusions 1 Report post Posted October 12, 2016 So; The Medal of Honor doesn't quite work as intended; it doesn't register honor pts and CA pts; tested by using famous cake (yes item functions are fine) and by killing a player. Seems something is wrong with the book itself but I cant seem to figure out what. Quote Share this post Link to post Share on other sites
Billy 164 Report post Posted October 12, 2016 i guess you didnt make the item properly. look at the npc which gives you the item, it has to be made with a certain parameter to be able to record stats. 1 Quote Share this post Link to post Share on other sites
WVWMK 121 Report post Posted October 12, 2016 local ATKER_RYZ = GetChaItem2 ( ATKER , 2 , 3849 ) local DEFER_RYZ = GetChaItem2 ( defer , 2 , 3849 ) local Lv_ATKER = LV( ATKER ) local Lv_DEFER = LV( defer ) local Lv_dif = Lv_ATKER - Lv_DEFER local money = GetChaAttr ( role , ATTR_GD ) --Murder local tester = GetItemAttr ( DEFER_RYZ , ITEMATTR_VAL_DEX ) --Honour local chest = GetItemAttr ( ATKER_RYZ , ITEMATTR_VAL_STR ) local Chester = GetItemAttr ( DEFER_RYZ , ITEMATTR_VAL_STR ) --Deaths local test = GetItemAttr ( ATKER_RYZ , ITEMATTR_VAL_AGI ) SetItemAttr ( ATKER_RYZ , ITEMATTR_VAL_STR, chest+4 ) SetItemAttr ( DEFER_RYZ , ITEMATTR_VAL_STR, Chester-5 ) --Murder\Death SetItemAttr ( ATKER_RYZ , ITEMATTR_VAL_AGI, test+1 ) SetItemAttr ( DEFER_RYZ , ITEMATTR_VAL_DEX tester+1 ) Try this code 1 Quote Делай добро и бросай его в воду Share this post Link to post Share on other sites
Illusions 1 Report post Posted October 12, 2016 18 minutes ago, Billy said: i guess you didnt make the item properly. look at the npc which gives you the item, it has to be made with a certain parameter to be able to record stats. 13 minutes ago, NMS3RR said: local ATKER_RYZ = GetChaItem2 ( ATKER , 2 , 3849 ) local DEFER_RYZ = GetChaItem2 ( defer , 2 , 3849 ) local Lv_ATKER = LV( ATKER ) local Lv_DEFER = LV( defer ) local Lv_dif = Lv_ATKER - Lv_DEFER local money = GetChaAttr ( role , ATTR_GD ) --Murder local tester = GetItemAttr ( DEFER_RYZ , ITEMATTR_VAL_DEX ) --Honour local chest = GetItemAttr ( ATKER_RYZ , ITEMATTR_VAL_STR ) local Chester = GetItemAttr ( DEFER_RYZ , ITEMATTR_VAL_STR ) --Deaths local test = GetItemAttr ( ATKER_RYZ , ITEMATTR_VAL_AGI ) SetItemAttr ( ATKER_RYZ , ITEMATTR_VAL_STR, chest+4 ) SetItemAttr ( DEFER_RYZ , ITEMATTR_VAL_STR, Chester-5 ) --Murder\Death SetItemAttr ( ATKER_RYZ , ITEMATTR_VAL_AGI, test+1 ) SetItemAttr ( DEFER_RYZ , ITEMATTR_VAL_DEX tester+1 ) Try this code Cheers; I've had another look at the item functions and for some reason I've had two functions for the medal so I'm guessing the system got a bit confused lol, not sure what happened there haha all sorted now though! Quote Share this post Link to post Share on other sites
Lucky 65 Report post Posted October 12, 2016 20 minutes ago, Billy said: i guess you didnt make the item properly. look at the npc which gives you the item, it has to be made with a certain parameter to be able to record stats. if im not wrong the parameter is 97? Quote Share this post Link to post Share on other sites
Illusions 1 Report post Posted October 12, 2016 17 minutes ago, Lucky said: if im not wrong the parameter is 97? Correct Quote Share this post Link to post Share on other sites