Level 95 & 85 Glow

Go down

Level 95 & 85 Glow

Post  Admin on Sun Oct 23, 2011 8:36 pm

Level 85 Glow:

This into cha_timer ( functions.lua):

local Dina_xl = GetEquipItemP(role,Cool
local Dina_xl_ID= GetItemID (Dina_xl)
local Dina_x2 = GetEquipItemP(role,2)
local Dina_x2_ID= GetItemID (Dina_x2)
if Dina_xl_ID==2577 and Dina_x2_ID==2817 then
local statelv = 1
local statetime = 3600
AddState ( role , role , STATE_BBRING1 , statelv , statetime )
elseif Dina_xl_ID==2578 and Dina_x2_ID==2820 then
local statelv = 1
local statetime = 3600
AddState ( role , role , STATE_BBRING2 , statelv , statetime )
elseif Dina_xl_ID==2579 and Dina_x2_ID==2823 then
local statelv = 1
local statetime = 3600
AddState ( role , role , STATE_BBRING3 , statelv , statetime )
elseif Dina_xl_ID==2580 and Dina_x2_ID==2826 then
local statelv = 1
local statetime = 3600
AddState ( role , role , STATE_BBRING4 , statelv , statetime )
elseif Dina_xl_ID==2581 and Dina_x2_ID==2832 then
local statelv = 1
local statetime = 3600
AddState ( role , role , STATE_BBRING5 , statelv , statetime )
elseif Dina_xl_ID==2582 and Dina_x2_ID==2829 then
local statelv = 1
local statetime = 3600
AddState ( role , role , STATE_BBRING6 , statelv , statetime )
else
local statelv_bbring1 = GetChaStateLv ( role , STATE_BBRING1 )
if statelv_bbring1~=0 then
RemoveState ( role , STATE_BBRING1 )
end
local statelv_bbring2 = GetChaStateLv ( role , STATE_BBRING2 )
if statelv_bbring2~=0 then
RemoveState ( role , STATE_BBRING2 )
end
local statelv_bbring3 = GetChaStateLv ( role , STATE_BBRING3 )
if statelv_bbring3~=0 then
RemoveState ( role , STATE_BBRING3 )
end
local statelv_bbring4 = GetChaStateLv ( role , STATE_BBRING4 )
if statelv_bbring4~=0 then
RemoveState ( role , STATE_BBRING4 )
end
local statelv_bbring5 = GetChaStateLv ( role , STATE_BBRING5 )
if statelv_bbring5~=0 then
RemoveState ( role , STATE_BBRING5 )
end
local statelv_bbring6 = GetChaStateLv ( role , STATE_BBRING6 )
if statelv_bbring6~=0 then
RemoveState ( role , STATE_BBRING6 )
end
end



variable.lua :

STATE_BBRING1 = 200 --85BBÅ£½ä¼Ó³É
STATE_BBRING2 = 201 --85BBË«½ä¼Ó³É
STATE_BBRING3 = 202 --85BBÁÔ½ä¼Ó³É
STATE_BBRING4 = 203 --85BBº½½ä¼Ó³É
STATE_BBRING5 = 204 --85BB·â½ä¼Ó³É
STATE_BBRING6 = 205 --85BBÊ¥½ä¼Ó³É




Level 95 Glow
Into Cha_timer (functions.lua)

ZhongShenTaoZhuang(role,now_tick)



at the end of functions.lua

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
function CheckItem_ZHONGSHEN ( role )


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


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

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 )
local head_gem_id = GetItemAttr ( head , ITEMATTR_VAL_FUSIONID )

body_gem_id=Body_ID
hand_gem_id=Hand_ID
foot_gem_id=Foot_ID
head_gem_id=Head_ID
if body_gem_id ~= 6105 and body_gem_id ~= 6109 and body_gem_id ~= 6113 and body_gem_id ~= 6117 and body_gem_id ~= 6121 and body_gem_id ~= 6125 then
return 0
end
if hand_gem_id ~= 6106 and hand_gem_id ~= 6110 and hand_gem_id ~= 6114 and hand_gem_id ~= 6118 and hand_gem_id ~= 6122 and hand_gem_id ~= 6126 then
return 0
end
if foot_gem_id ~= 6107 and foot_gem_id ~= 6111 and foot_gem_id ~= 6115 and foot_gem_id ~= 6119 and foot_gem_id ~= 6123 and foot_gem_id ~= 6127 then
return 0
end
if head_gem_id ~= 6104 and head_gem_id ~= 6108 and head_gem_id ~= 6112 and head_gem_id ~= 6116 and head_gem_id ~= 6120 and head_gem_id ~= 6124 then
return 0
end
return 1
end



variable.lua:


STATE_zhongshen = 229 --95BB
avatar
Admin
Admin

Posts : 23
Join date : 2011-10-23

View user profile http://bloodyserverguide.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum