Shapamoe 20 Report post Posted March 14, 2018 --------------------------------------------------Усилители Стремлений-------------------------------------------------- ----1128 Мини-Усилитель Натиска function ItemUse_WeiXing( role , Item ) local lv_star = GetChaAttr( role , ATTR_LV) if lv_star > 40 then SystemNotice ( role , "\196\235\255 \239\229\240\241\238\237\224\230\229\233 \237\232\230\229 40\227\238 \243\240\238\226\237\255!" ) UseItemFailed ( role ) return end local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_SBJYGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 120 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBJYGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \204\232\237\232-\211\241\232\235\232\242\229\235\252 \205\224\242\232\241\234\224!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end --3844 небесная ягода function ItemUse_MoreExpGz( role , Item ) local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_SBJYGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBJYGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \205\229\225\229\241\237\224\255 \223\227\238\228\224!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end ---3094 усилитель стремлений function ItemUse_MoreExpGzA( role , Item ) local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_SBJYGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 1800 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBJYGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \211\241\232\235\232\242\229\235\252 \209\242\240\229\236\235\229\237\232\233!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end ---3095 Супер Усилитель стремлений function ItemUse_MoreExpGzLv3A( role , Item ) local Lv = Lv( role ) if Lv < 60 then SystemNotice(role ,"\196\235\255 \239\229\240\241\238\237\224\230\229\233 \243\240\238\226\237\255 60 \232 \226\251\248\229!") UseItemFailed ( role ) return end local statelv = 3 local ChaStateLv = GetChaStateLv ( role , STATE_SBJYGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 1800 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBJYGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \209\243\239\229\240 \211\241\232\235\232\242\229\235\252 \209\242\240\229\236\235\229\237\232\233!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end --5694 --3.5x Усилитель стремлений function ItemUse_MoreExpGzLv3x5A( role , Item ) local Lv = Lv( role ) if Lv < 75 then SystemNotice(role ,"\196\235\255 \239\229\240\241\238\237\224\230\229\233 \243\240\238\226\237\255 75 \232 \226\251\248\229!") UseItemFailed ( role ) return end local statelv = 4 local ChaStateLv = GetChaStateLv ( role , STATE_SBJYGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 1800 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBJYGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. 3,5x \211\241\232\235\232\242\229\235\252 \209\242\240\229\236\235\229\237\232\233!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end --5695 4x Усилитель стремлений function ItemUse_MoreExpGzLv4A( role , Item ) local Lv = Lv( role ) if Lv < 80 then SystemNotice(role ,"\196\235\255 \239\229\240\241\238\237\224\230\229\233 \243\240\238\226\237\255 80 \232 \226\251\248\229!") UseItemFailed ( role ) return end local statelv = 5 local ChaStateLv = GetChaStateLv ( role , STATE_SBJYGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 1800 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBJYGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. 4x \211\241\232\235\232\242\229\235\252 \209\242\240\229\236\235\229\237\232\233!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end --3879 Особый тайнофрукт function ItemUse_MoreExpGzLv2( role , Item ) local Lv = Lv( role ) if Lv < 40 then SystemNotice(role ,"\196\235\255 \239\229\240\241\238\237\224\230\229\233 \243\240\238\226\237\255 40 \232 \226\251\248\229!") UseItemFailed ( role ) return end local statelv = 2 local ChaStateLv = GetChaStateLv ( role , STATE_SBJYGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBJYGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \206\241\238\225\251\233 \242\224\233\237\238\244\240\243\234\242!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end --3880 Супер тайнофрукт function ItemUse_MoreExpGzLv3( role , Item ) local Lv = Lv( role ) if Lv < 60 then SystemNotice(role ,"\196\235\255 \239\229\240\241\238\237\224\230\229\233 \243\240\238\226\237\255 60 \232 \226\251\248\229!") UseItemFailed ( role ) return end local statelv = 3 local ChaStateLv = GetChaStateLv ( role , STATE_SBJYGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBJYGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \209\243\239\229\240 \242\224\233\237\238\244\240\243\234\242!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end --849 Фрукт опыта отряда function ItemUse_ZD_MoreExpGz( role , Item ) local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_ZDSBJYGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_ZDSBJYGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \212\240\243\234\242 \238\239\251\242\224 \238\242\240\255\228\224!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end -----дроп --3845 Зачарованная Ягода function ItemUse_MoreItemGz( role , Item ) local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_SBBLGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBBLGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \199\224\247\224\240\238\226\224\237\237\224\255 \223\227\238\228\224!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end --3096 Усилитель удачи function ItemUse_MoreItemGzA( role , Item ) local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_SBBLGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 1800 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBBLGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \211\241\232\235\232\242\229\235\252 \211\228\224\247\232!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end --3097 Большой усилитель удачи function ItemUse_MoreItemGzLv3A( role , Item ) local Lv = Lv( role ) if Lv < 60 then SystemNotice(role ,"\196\235\255 \239\229\240\241\238\237\224\230\229\233 \243\240\238\226\237\255 60 \232 \226\251\248\229") UseItemFailed ( role ) return end local statelv = 3 local ChaStateLv = GetChaStateLv ( role , STATE_SBBLGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 1800 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBBLGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \193\238\235\252\248\238\233 \211\241\232\235\232\242\229\235\252 \211\228\224\247\232!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end -- 3881 Особый счастье-фрукт function ItemUse_MoreItemGzLv2( role , Item ) local Lv = Lv( role ) if Lv < 40 then SystemNotice(role ,"\196\235\255 \239\229\240\241\238\237\224\230\229\233 \243\240\238\226\237\255 40 \232 \226\251\248\229") UseItemFailed ( role ) return end local statelv = 2 local ChaStateLv = GetChaStateLv ( role , STATE_SBBLGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBBLGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \206\241\238\225\251\233 \241\247\224\241\242\252\229-\244\240\243\234\242!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end -- 3881 Супер счастье-фрукт function ItemUse_MoreItemGzLv3( role , Item ) local Lv = Lv( role ) if Lv < 60 then SystemNotice(role ,"\196\235\255 \239\229\240\241\238\237\224\230\229\233 \243\240\238\226\237\255 60 \232 \226\251\248\229!") UseItemFailed ( role ) return end local statelv = 3 local ChaStateLv = GetChaStateLv ( role , STATE_SBBLGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBBLGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \209\243\239\229\240 \241\247\224\241\242\252\229-\244\240\243\234\242!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end --898 Волшебный фрукт function ItemUse_MoreItemAndExpGz( role , Item ) local Lv = Lv( role ) if Lv < 30 then SystemNotice(role ,"\196\235\255 \239\229\240\241\238\237\224\230\229\233 \243\240\238\226\237\255 30 \232 \226\251\248\229!") UseItemFailed ( role ) return end local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_SBBLGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_SBJYGZ , statelv , statetime ) AddState( role , role , STATE_SBBLGZ , statelv , statetime ) SystemNotice ( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \194\238\235\248\229\225\237\251\233 \244\240\243\234\242!") else SystemNotice ( role ,"\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!") UseItemFailed ( role ) return end end -------------------------------------------------------------------------МОЙ КУК---------------------------------------------------------------------------- --850 Зелье легкости function ItemUse_MspdYSB ( role , Item ) local statelv = 1 local statetime = 900 local Cha_Boat = 0 local ChaStateLv = GetChaStateLv ( role , STATE_QINGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_QINGZ , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \199\229\235\252\229 \235\229\227\234\238\241\242\232!" ) else SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end end --851 Боевой строй function ItemUse_XEZJB ( role , Item ) local statelv = 1 local statetime = 900 local ChaStateLv = GetChaStateLv ( role , STATE_KUANGZ ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_KUANGZ , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \193\238\229\226\238\233 \209\242\240\238\233!" ) else SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end end ---852 Полный доспех function ItemUse_DenglongB ( role , Item ) local statelv = 1 local statetime = 900 local ChaStateLv = GetChaStateLv ( role , STATE_QUANS ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_QUANS , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \207\238\235\237\251\233 \228\238\241\239\229\245!" ) else SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end end --3339 Зелье ускорения function ItemUse_MspdYS ( role , Item ) local statelv = 1 local statetime = 900 local ChaStateLv = GetChaStateLv ( role , STATE_YSMspd ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_YSMspd , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \199\229\235\252\229 \243\241\234\238\240\229\237\232\255!" ) else SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end end ---3105 Зелье скольжения function ItemUse_MspdYSA ( role , Item ) local statelv = 1 local statetime = 1800 local ChaStateLv = GetChaStateLv ( role , STATE_YSMspd ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_YSMspd , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \199\229\235\252\229 \241\234\238\235\252\230\229\237\232\255!" ) else SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end end --3342 Светильник function ItemUse_Denglong ( role , Item ) local statelv = 1 local statetime = 600 local ChaStateLv = GetChaStateLv ( role , STATE_DENGLONG ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_DENGLONG , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \209\226\229\242\232\235\252\237\232\234!" ) else SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end end --3107 Фестивальная лампа function ItemUse_DenglongA ( role , Item ) local statelv = 1 local statetime = 900 local ChaStateLv = GetChaStateLv ( role , STATE_DENGLONG ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat == nil then AddState( role , role , STATE_DENGLONG , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \212\229\241\242\232\226\224\235\252\237\224\255 \235\224\236\239\224!" ) else SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end end ------ 1078 Парная булочка HP+200,атк+50 function ItemUse_MANTOU( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local hp = GetChaAttr( role , ATTR_HP ) local hp_resume = 200 hp = hp + hp_resume local mxhp = GetChaAttr( role , ATTR_MXHP) if hp > mxhp then hp = mxhp end SetCharaAttr(hp, role, ATTR_HP) local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_MANTOU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 AddState( role , role , STATE_MANTOU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \207\224\240\237\224\255 \225\243\235\238\247\234\224!" ) end ------ 1079 Булочка: ЖХ +400 и Сила атаки +150 в течение 10 минут function ItemUse_BAOZI( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local hp = GetChaAttr( role , ATTR_HP ) local hp_resume = 400 hp = hp + hp_resume local mxhp = GetChaAttr( role , ATTR_MXHP) if hp > mxhp then hp = mxhp end SetCharaAttr(hp, role, ATTR_HP) local statelv = 2 local ChaStateLv = GetChaStateLv ( role , STATE_MANTOU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 600 AddState( role , role , STATE_MANTOU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \193\243\235\238\247\234\224!" ) end --1080--Бисквит: 600 очков ЖЗ и 250 очков силы атаки на 7 минут+B1348 function ItemUse_DABING( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local hp = GetChaAttr( role , ATTR_HP ) local hp_resume = 600 hp = hp + hp_resume local mxhp = GetChaAttr( role , ATTR_MXHP) if hp > mxhp then hp = mxhp end SetCharaAttr(hp, role, ATTR_HP) local statelv = 3 local ChaStateLv = GetChaStateLv ( role , STATE_MANTOU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 420 AddState( role , role , STATE_MANTOU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \193\232\241\234\226\232\242!" ) end --1081----Поджаренная лепешка: ЖЗ +800 и Сила атаки +350 в течение 5 минут function ItemUse_YOUTIAO( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local hp = GetChaAttr( role , ATTR_HP ) local hp_resume = 800 hp = hp + hp_resume local mxhp = GetChaAttr( role , ATTR_MXHP) if hp > mxhp then hp = mxhp end SetCharaAttr(hp, role, ATTR_HP) local statelv = 4 local ChaStateLv = GetChaStateLv ( role , STATE_MANTOU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 300 AddState( role , role , STATE_MANTOU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \207\238\228\230\224\240\229\237\237\224\255 \203\229\239\184\248\234\224!" ) end --1082-Весноградский свиток: увеличивает ЖЗ на 1000, а силу атаки на 450 на 2,5 минуты function ItemUse_CHUNJUAN( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local hp = GetChaAttr( role , ATTR_HP ) local hp_resume = 1000 hp = hp + hp_resume local mxhp = GetChaAttr( role , ATTR_MXHP) if hp > mxhp then hp = mxhp end SetCharaAttr(hp, role, ATTR_HP) local statelv = 5 local ChaStateLv = GetChaStateLv ( role , STATE_MANTOU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 150 AddState( role , role , STATE_MANTOU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \194\229\241\237\238\227\240\224\228\241\234\232\233 \241\226\232\242\238\234!" ) end ------вина --1084 Вино девы ----Вино девы: МН +100 и Дух +5 в течение 15 минут function ItemUse_NVER( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local sp = GetChaAttr( role , ATTR_SP ) local sp_resume = 100 sp = sp + sp_resume local mxsp = GetChaAttr( role , ATTR_MXSP) if sp > mxsp then sp = mxsp end SetCharaAttr(sp, role, ATTR_SP) local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_NVER ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 AddState( role , role , STATE_NVER , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \194\232\237\238 \196\229\226\251!" ) end --1085 Вино ученых function ItemUse_ZHUANGYUAN( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local sp = GetChaAttr( role , ATTR_SP ) local sp_resume = 200 sp = sp + sp_resume local mxsp = GetChaAttr( role , ATTR_MXSP) if sp > mxsp then sp = mxsp end SetCharaAttr(sp, role, ATTR_SP) local statelv = 2 local ChaStateLv = GetChaStateLv ( role , STATE_NVER ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 600 AddState( role , role , STATE_NVER , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \194\232\237\238 \243\247\229\237\251\245!" ) end --1087 Вино мао function ItemUse_DUKANG( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local sp = GetChaAttr( role , ATTR_SP ) local sp_resume = 300 sp = sp + sp_resume local mxsp = GetChaAttr( role , ATTR_MXSP) if sp > mxsp then sp = mxsp end SetCharaAttr(sp, role, ATTR_SP) local statelv = 3 local ChaStateLv = GetChaStateLv ( role , STATE_NVER ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 420 AddState( role , role , STATE_NVER , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \194\232\237\238 \204\224\238!" ) end --1088 Дукановое вино function ItemUse_MAOTAI( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local sp = GetChaAttr( role , ATTR_SP ) local sp_resume = 400 sp = sp + sp_resume local mxsp = GetChaAttr( role , ATTR_MXSP) if sp > mxsp then sp = mxsp end SetCharaAttr(sp, role, ATTR_SP) local statelv = 4 local ChaStateLv = GetChaStateLv ( role , STATE_NVER ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 300 AddState( role , role , STATE_NVER , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \196\243\234\224\237\238\226\238\229 \226\232\237\238!" ) end ---1089 Вино с женьшенем function ItemUse_RENSHEN( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local sp = GetChaAttr( role , ATTR_SP ) local sp_resume = 500 sp = sp + sp_resume local mxsp = GetChaAttr( role , ATTR_MXSP) if sp > mxsp then sp = mxsp end SetCharaAttr(sp, role, ATTR_SP) local statelv = 5 local ChaStateLv = GetChaStateLv ( role , STATE_NVER ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 180 AddState( role , role , STATE_NVER , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \194\232\237\238 \241 \230\229\237\252\248\229\237\229\236!" ) end --1090 Тоник из тигриной кости function ItemUse_HUGU( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local sp = GetChaAttr( role , ATTR_SP ) local sp_resume = 600 sp = sp + sp_resume local mxsp = GetChaAttr( role , ATTR_MXSP) if sp > mxsp then sp = mxsp end SetCharaAttr(sp, role, ATTR_SP) local statelv = 6 local ChaStateLv = GetChaStateLv ( role , STATE_NVER ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 120 AddState( role , role , STATE_NVER , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \210\238\237\232\234 \232\231 \242\232\227\240\238\226\238\233 \234\238\241\242\232!" ) end ----хп --4019 Паровое судно Треска function ItemUse_XUEYU( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 1 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 900 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \207\224\240\238\226\238\229 \241\243\228\237\238 \210\240\229\241\234\224!" ) end --4020 Осетрина с бамбуком function ItemUse_CUIZHU( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 2 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 600 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \206\241\229\242\240\232\237\224 \241 \225\224\236\225\243\234\238\236!" ) end ---4021 Вкусная рыба-шар function ItemUse_HUIXIANG( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 3 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 600 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \194\234\243\241\237\224\255 \240\251\225\224-\248\224\240!" ) end --4022 Суп из осетра function ItemUse_YINGYUE( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 4 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 480 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \209\243\239 \232\231 \238\241\229\242\240\224!" ) end --4023 Суп из жареных устриц function ItemUse_LANGBEI( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 5 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 480 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \209\243\239 \232\231 \230\224\240\229\237\251\245 \243\241\242\240\232\246!" ) end --4024 Креветочная пышка function ItemUse_XIAOXIAO( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 6 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 360 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \202\240\229\226\229\242\238\247\237\224\255 \239\251\248\234\224!" ) end --4025 Обломок кости рыбы-тигра function ItemUse_HUPI( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 7 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 300 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \206\225\235\238\236\238\234 \234\238\241\242\232 \240\251\225\251-\242\232\227\240\224!" ) end ---4026 Рис с рыбой-химерой function ItemUse_YINJIAO( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 8 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 180 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \208\232\241 \241 \240\251\225\238\233-\245\232\236\229\240\238\233!" ) end --4027 Глина для изготовления фарфора function ItemUse_TAOTU( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 9 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 180 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \195\235\232\237\224 \228\235\255 \232\231\227\238\242\238\226\235\229\237\232\255 \244\224\240\244\238\240\224!" ) end --4028 Барбекю из акульего плавника function ItemUse_BAIWANG( role , Item ) local Cha_Boat = 0 Cha_Boat = GetCtrlBoat ( role ) if Cha_Boat ~= nil then SystemNotice( role , "\205\229\235\252\231\255 \232\241\239\238\235\252\231\238\226\224\242\252 \237\224 \236\238\240\229!" ) UseItemFailed ( role ) return end local statelv = 10 local ChaStateLv = GetChaStateLv ( role , STATE_XUEYU ) if ChaStateLv >= statelv then SystemNotice ( role , "\221\244\244\229\234\242 \240\224\225\238\242\224\229\242! \207\238\239\240\238\225\243\233\242\229 \239\238\231\230\229." ) UseItemFailed ( role ) return end local statetime = 60 AddState( role , role , STATE_XUEYU , statelv , statetime ) SystemNotice( role , "\221\244\244\229\234\242 \239\238\235\243\247\229\237. \193\224\240\225\229\234\254 \232\231 \224\234\243\235\252\229\227\238 \239\235\224\226\237\232\234\224!" ) end 1 Quote Share this post Link to post Share on other sites