Jump to content
Sign in to follow this  
OldHero

95 unseal .. effect

Recommended Posts

Hello guys i need help something i have this script in my files and when i fuse set ... it dont give me glow back 95 unseal

-- 1st part any help??

function ZhongShenTaoZhuang(role,now_tick)
        local ZhongShen_Value = CheckItem_ZHONGSHEN (role)
        if ZhongShen_Value ~= 0 then
                local statelv = 1
                local statetime = 3600
                AddState ( role , role , STATE_zhongshen , statelv , statetime )
                return
        else
                local statelv_ZhongShen = GetChaStateLv ( role , STATE_zhongshen )
                if statelv_ZhongShen~=0 then
                                RemoveState ( role ,STATE_zhongshen ) 
                        return
                        end
                return
        end
end

 

 

2nd part
function CheckItem_ZHONGSHEN ( role )

    
    local body = GetChaItem ( role , 1 , 2 )
    local hand = GetChaItem ( role , 1 , 3 )
    local foot = GetChaItem ( role , 1 , 4 )
    

     
    local Body_ID = GetItemID ( body )
    local Hand_ID = GetItemID ( hand )
    local Foot_ID = GetItemID ( foot )
    

        local body_gem_id = GetItemAttr ( body , ITEMATTR_VAL_FUSIONID )
        local hand_gem_id = GetItemAttr ( hand , ITEMATTR_VAL_FUSIONID )
    local foot_gem_id = GetItemAttr ( foot , ITEMATTR_VAL_FUSIONID )
    

        body_gem_id=Body_ID
        hand_gem_id=Hand_ID
        foot_gem_id=Foot_ID
        
    if body_gem_id ~= 3494 and body_gem_id ~= 3498 and body_gem_id ~= 3502 and body_gem_id ~= 3506 and body_gem_id ~= 3510 and body_gem_id ~= 3514 then
       return 0
    end
    if hand_gem_id ~= 3495 and hand_gem_id ~= 3499 and hand_gem_id ~= 3503 and hand_gem_id ~= 3507 and hand_gem_id ~= 3511 and hand_gem_id ~= 3515 then
       return 0
    end
    if foot_gem_id ~= 3496 and foot_gem_id ~= 3500 and foot_gem_id ~= 3504 and foot_gem_id ~= 3508 and foot_gem_id ~= 3512 and foot_gem_id ~= 3516 then 
       return 0
    end
    return 1
end

 

 

Share this post


Link to post
Share on other sites

        body_gem_id=Body_ID
        hand_gem_id=Hand_ID
        foot_gem_id=Foot_ID

 

You are setting your variables equal to the item ID after setting them equal to the fuse ID, so it wont work when fused.
        

Share this post


Link to post
Share on other sites

depends what you are tying to do: if you want it to only work when fused, then just remove it.

 

If you want it to work when fused or unfused in any combination, add it to your if statements, eg:

 

if body_gem_id ~= 3494 and body_gem_id ~= 3498 and body_gem_id ~= 3502 and body_gem_id ~= 3506 and body_gem_id ~= 3510 and body_gem_id ~= 3514 and Body_ID ~= 3494 and Body_ID ~= 3498 and Body_ID ~= 3502 and Body_ID ~= 3506 and Body_ID ~= 3510 and Body_ID ~= 3514 then
	return 0
end

(you would do that for each part)

 

 

If you wanted either the complete set to be fused, or the complete set unfused, you would have 2 blocks of if statements.

 

 

Personally I dont like doing set glows that way, and use this instead:

 

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...