Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( attackskill != SKILL_WEAPON_MARTIAL_ARTS ) {
- if ( cdata(CDATA_EXIST, tc) != CHAR_STATE_ALIVE ) {
- cw = attackitem
- if ( ibit(ITEM_BIT_ALIVE, cw) ) {
- if ( inv(INV_ITEM_GROWTH, cw) < 25 ) { //garfu increase living weapon max level
- if ( inv(INV_ITEM_EXP, cw) < calcexpalive(inv(INV_ITEM_GROWTH, cw)) ) {
- if ( cbit(CHARA_BIT_SPLIT_KEEP_EFFECT, tc) != 1 & cbit(CHARA_BIT_SPLIT_NO_EFFECT, tc) != 1 & cbit(CHARA_BIT_SUMMONED, tc) != 1 & cbit(CHARA_BIT_LIVESTOCK, tc) != 1 & cbit(CHARA_BIT_NECRO, tc) != 1 & cdata(CDATA_ROLE, tc) != ROLE_BOUNTY_HUNTER & cdata(CDATA_ROLE, tc) != ROLE_GUARD ) {
- ikihosei = 0
- }
- else {
- ikihosei = 50
- }
- inv(INV_ITEM_EXP, cw) += rnd(cdata(CDATA_LEVEL, tc) / (inv(INV_ITEM_GROWTH, cw) + ikihosei) + 1) //garfu living weapons level faster
- inv(INV_ITEM_EXP, cw) += 50
- if ( inv(INV_ITEM_EXP, cw) >= calcexpalive(inv(INV_ITEM_GROWTH, cw)) ) {
- txtef COLOR_GREEN
- snd SOUNDLIST_DING3
- txt lang(itemname(cw) + "は十分に血を味わった!", itemname(cw) + " has tasted enough blood!")
- }
- }
- }
- }
- }
- }
- ----------------------------
- if ( inv(INV_ITEM_PARAM1, ci) >= 25 ) { //garfu edit - max level before bleed = 25 so no bleed
- txt lang("その力は次第に脅威になっている。", "Its power is becoming a threat.")
- //encadd ci, ENCHANT_SUCK_BLOOD, 50 //garfu edit - remove bleed just in case
- if ( stat == 0 ) {
- inv(STARTING_INV_ITEM_ENCHANT + (15 - 1) * 2, ci) = 0
- txt lang(itemname(ci) + "はエンチャントを消した。", itemname(ci) + " removes an enchantment.")
- encadd ci, ENCHANT_SUCK_BLOOD, 50
- if ( stat == 0 ) {
- inv(STARTING_INV_ITEM_ENCHANT + (15 - 2) * 2, ci) = 0
- txt lang(itemname(ci) + "はさらにエンチャントを消した。", itemname(ci) + " removes an enchantment.")
- }
- }
- }
- ----------------------------
- if ( gdata(STARTING_GDATA_FLAG + 347) == 100 & rnd(20) == 0 ) {
- if ( reftype == FILTER_RANGE | reftype == FILTER_WEAPON ) {
- ibitmod ITEM_BIT_ALIVE, ci, 1
- inv(INV_ITEM_PARAM1, ci) = 1
- if ( fixlv == FIX_QUALITY_GODLY ) {
- encadd ci, randomenc(99), (randomencp() + 1) / 2 + 600 //garfu edit - additional living weapon enchants
- encadd ci, randomenc(99), (randomencp() + 1) / 2 + 500
- encadd ci, randomenc(99), (randomencp() + 1) / 2 + 400
- encadd ci, randomenc(99), (randomencp() + 1) / 2 + 300
- }
- if ( fixlv == FIX_QUALITY_MIRACLE ) {
- encadd ci, randomenc(99), (randomencp() + 1) / 3 + 400
- encadd ci, randomenc(99), (randomencp() + 1) / 3 + 300
- encadd ci, randomenc(99), (randomencp() + 1) / 3 + 200
- }
- return
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement