Dreter 0 Report post Posted April 13, 2016 Hi guys i have a problem with the arrest warrent when i use it dosen't teleport the player to the prision island 5720 Lv4 Arrest Warrant n2116 10130005 0 0 0 0 0 0 71 0 0 0 0 0 0 1 0 1 99 0 4000 -1,-2,-2,-2 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0,0 0,0 0 0 0 0 0 0 0 0 0 0471 3 0 0 0,0 0 0 Its owners can arrest any player below level 150. 0 This is the skillefect function that is in my server ---------------------------Arrest Warrant----------- function SkillCooldown_Daibuzheng4( sklv ) local Cooldown = 5000 return Cooldown end function Skill_Daibuzheng4_End ( ATKER , DEFER , sklv ) local atker_name = GetChaDefaultName ( ATKER ) local defer_name = GetChaDefaultName ( DEFER ) local NocLock = KitbagLock( ATKER, 0 ) local re_type = IsPlayer ( DEFER ) local State_baitan = GetChaStateLv ( DEFER, STATE_BAT ) local State_jiaoyi = GetChaStateLv ( DEFER, STATE_JY ) if re_type == 0 then SystemNotice ( ATKER, "Can Not Arrest Monters") return end --[[if State_baitan >= 1 then SystemNotice ( ATKER, "Can Not Arrest Players While he is Stalling") return end if State_jiaoyi >= 1 then SystemNotice ( ATKER, "Can Not Arrest While he is Trading") return end--]] if atker_name == defer_name then -------------------kokora080328 SystemNotice ( ATKER, "Can Not Arrest Self") return end if NocLock == LUA_FALSE then SystemNotice( ATKER , "Inventory is Locked") return 0 end local item_count = CheckBagItem ( ATKER , 5720 ) --´þ²¶Ö¤ if item_count <= 0 then return SystemNotice ( ATKER , "Does not possess required item to use skill" ) end local statelv_bkdb = GetChaStateLv ( DEFER , STATE_BKDB ) --È¡²»¿É´þ²¶×´Ì¬µÈ¼¶ if statelv_bkdb >=1 then return SystemNotice ( ATKER, "Unable to send to Prison") end --[[local Lv_defer = Lv ( DEFER ) if Lv_defer > 150 then return SystemNotice ( ATKER, "Can Not Arrest Player is Too Strong") end --]] local a = DelBagItem ( ATKER , 5720 , 1 ) --ɾ³ý´þ²¶Ö¤ local Num_Haorenzheng = CheckBagItem( DEFER , 5721 ) --ºÃÈËÖ¤ local Num_Liangminzheng = CheckBagItem( DEFER , 5722 ) --Á¼ÃñÖ¤ if Num_Haorenzheng >= 1 then DelBagItem ( DEFER, 5721, 1) --ɾ³ýºÃÈËÖ¤ SystemNotice( DEFER, " player "..atker_name.." for you to use a warrant card protects you by the good guys, an arrest warrant is invalid!") Notice ( defer_name.." By the good cards protects been able to escape the prison is really gratifying!") else if Num_Liangminzheng >= 1 then DelBagItem ( DEFER, 5722, 1) --ɾ³ýÁ¼ÃñÖ¤ SystemNotice( ATKER, "You're trying to frame-up good guy ".. defer_name ..", found guilty and sentenced to imprisonment for 3 Moths!") Notice ( atker_name.." Is trying to frame-up " .. defer_name .. " a good man, and found guilty and sentenced to imprisonment for 3 Months!") SetSpawnPos ( ATKER , "Prison Island" ) --prison MoveCity( ATKER , "Prison Island") --Prison check else local Notice_all = ""..defer_name.." was arrested by " .. atker_name .. " and brought to justice! Sentenced to imprisonment!" RLOG('PrisonSent',''..defer_name..' was arrested by '.. atker_name ..' and brought to justice! Sentenced to imprisonment!') SetSpawnPos ( DEFER , "Prison Island" ) --Prison SetChaAttr(DEFER, ATTR_LV,1 ) SetChaAttr(DEFER, ATTR_CEXP,1 ) Notice ( Notice_all ) MoveCity( DEFER , "Prison Island") --Prison end end end Hope some one can help Thank's in advance Quote Share this post Link to post Share on other sites
Lucky 65 Report post Posted April 14, 2016 if you are arresting lv150 then not work try this edit this if Lv_defer > 150 then to if Lv_defer > 151 then why because if player >(lower) than 150 means only to 149 can be arrested. Quote Share this post Link to post Share on other sites
Dreter 0 Report post Posted April 14, 2016 5 hours ago, Lucky said: if you are arresting lv150 then not work try this edit this if Lv_defer > 150 then to if Lv_defer > 151 then why because if player >(lower) than 150 means only to 149 can be arrested. In my server the max level is 120 that's why i put 150, but i put 151 and still dosent work Quote Share this post Link to post Share on other sites
Lucky 65 Report post Posted April 14, 2016 skilleff you added? Quote Share this post Link to post Share on other sites
Dreter 0 Report post Posted April 14, 2016 1 hour ago, Lucky said: skilleff you added? yea this is the funciont in my skileff ---------------------------Arrest Warrant----------- function SkillCooldown_Daibuzheng4( sklv ) local Cooldown = 5000 return Cooldown end function Skill_Daibuzheng4_End ( ATKER , DEFER , sklv ) local atker_name = GetChaDefaultName ( ATKER ) local defer_name = GetChaDefaultName ( DEFER ) local NocLock = KitbagLock( ATKER, 0 ) local re_type = IsPlayer ( DEFER ) local State_baitan = GetChaStateLv ( DEFER, STATE_BAT ) local State_jiaoyi = GetChaStateLv ( DEFER, STATE_JY ) if re_type == 0 then SystemNotice ( ATKER, "Can Not Arrest Monters") return end --[[if State_baitan >= 1 then SystemNotice ( ATKER, "Can Not Arrest Players While he is Stalling") return end if State_jiaoyi >= 1 then SystemNotice ( ATKER, "Can Not Arrest While he is Trading") return end--]] if atker_name == defer_name then -------------------kokora080328 SystemNotice ( ATKER, "Can Not Arrest Self") return end if NocLock == LUA_FALSE then SystemNotice( ATKER , "Inventory is Locked") return 0 end local item_count = CheckBagItem ( ATKER , 5720 ) --´þ²¶Ö¤ if item_count <= 0 then return SystemNotice ( ATKER , "Does not possess required item to use skill" ) end local statelv_bkdb = GetChaStateLv ( DEFER , STATE_BKDB ) --È¡²»¿É´þ²¶×´Ì¬µÈ¼¶ if statelv_bkdb >=1 then return SystemNotice ( ATKER, "Unable to send to Prison") end --[[local Lv_defer = Lv ( DEFER ) if Lv_defer > 150 then return SystemNotice ( ATKER, "Can Not Arrest Player is Too Strong") end --]] local a = DelBagItem ( ATKER , 5720 , 1 ) --ɾ³ý´þ²¶Ö¤ local Num_Haorenzheng = CheckBagItem( DEFER , 5721 ) --ºÃÈËÖ¤ local Num_Liangminzheng = CheckBagItem( DEFER , 5722 ) --Á¼ÃñÖ¤ if Num_Haorenzheng >= 1 then DelBagItem ( DEFER, 5721, 1) --ɾ³ýºÃÈËÖ¤ SystemNotice( DEFER, " player "..atker_name.." for you to use a warrant card protects you by the good guys, an arrest warrant is invalid!") Notice ( defer_name.." By the good cards protects been able to escape the prison is really gratifying!") else if Num_Liangminzheng >= 1 then DelBagItem ( DEFER, 5722, 1) --ɾ³ýÁ¼ÃñÖ¤ SystemNotice( ATKER, "You're trying to frame-up good guy ".. defer_name ..", found guilty and sentenced to imprisonment for 3 Moths!") Notice ( atker_name.." Is trying to frame-up " .. defer_name .. " a good man, and found guilty and sentenced to imprisonment for 3 Months!") SetSpawnPos ( ATKER , "Prison Island" ) --prison MoveCity( ATKER , "Prison Island") --Prison check else local Notice_all = ""..defer_name.." was arrested by " .. atker_name .. " and brought to justice! Sentenced to imprisonment!" RLOG('PrisonSent',''..defer_name..' was arrested by '.. atker_name ..' and brought to justice! Sentenced to imprisonment!') SetSpawnPos ( DEFER , "Prison Island" ) --Prison SetChaAttr(DEFER, ATTR_LV,1 ) SetChaAttr(DEFER, ATTR_CEXP,1 ) Notice ( Notice_all ) MoveCity( DEFER , "Prison Island") --Prison end end end i don't know if i need to put something in functions.lua or in another folder Quote Share this post Link to post Share on other sites
Rinor 59 Report post Posted April 14, 2016 (edited) what lucky meant was Skilleff.txt, MAYBE Edited April 14, 2016 by Rinor Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted April 14, 2016 skillinfo.txt 0468 Lv1 Arrest warrant 1 -1,10 1,-1 1,-1 1,-1 -1 0 1 1 -1 -1 1 1 1 1000 5 1 0 0 0 0 0 0 0 0 0 0 Skill_Daibuzheng1_End 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SkillCooldown_Daibuzheng1 1 1 -1 -1 0 -1 0 0 0 0,0 0,0 0 5 -1 0 0 -1 -1 -1 0 0 0 0 0 0 5717 0 0 0 0469 Lv2 Arrest warrant 1 -1,10 1,-1 1,-1 1,-1 -1 0 1 1 -1 -1 1 1 1 1000 5 1 0 0 0 0 0 0 0 0 0 0 Skill_Daibuzheng2_End 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SkillCooldown_Daibuzheng2 1 1 -1 -1 0 -1 0 0 0 0,0 0,0 0 5 -1 0 0 -1 -1 -1 0 0 0 0 0 0 5718 0 0 0 0470 Lv3 Arrest warrant 1 -1,10 1,-1 1,-1 1,-1 -1 0 1 1 -1 -1 1 1 1 1000 5 1 0 0 0 0 0 0 0 0 0 0 Skill_Daibuzheng3_End 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SkillCooldown_Daibuzheng3 1 1 -1 -1 0 -1 0 0 0 0,0 0,0 0 5 -1 0 0 -1 -1 -1 0 0 0 0 0 0 5719 0 0 0 0471 Lv4 Arrest warrant 1 -1,10 1,-1 1,-1 1,-1 -1 0 1 1 -1 -1 1 1 1 1000 5 1 0 0 0 0 0 0 0 0 0 0 Skill_Daibuzheng4_End 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SkillCooldown_Daibuzheng4 1 1 -1 -1 0 -1 0 0 0 0,0 0,0 0 5 -1 0 0 -1 -1 -1 0 0 0 0 0 0 5720 0 0 0 Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites