Abdelrahman Hajjaj 3 Report post Posted October 1, 2016 Hi i have a problem with kong Admiral Cloak , i followed the instruction but still the cloak wont show in the game the item itself is there but nothing happend , in scene or effect here is what i have done: iteminfo: 7990 Admiral Cloak n2570 10130005 0 0 0 0 0 0 88 0 0 0 7 1 0 0 0 1 1 1 0 -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 1,1 1,1 1,1 1,1 1,1 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 1000,1000 1000,1000 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0 0 A Cloak commisioned by Argent's Admiral.A commendation for all the vigilant defenders of the country (Effective only when placed on the 2nd row, 1st slot of the Inventory Bar). 0 sceneeffectinfo: 4015 cap1.par cap model Sea Wave 1 0 24 -1 0 0 0 -1 4016 cap2.par cap model Sea Wave 1 0 24 -1 0 0 0 -1 4017 cap3.par cap model Sea Wave 1 0 24 -1 0 0 0 -1 4018 cap4.par cap model Sea Wave 1 0 24 -1 0 0 0 -1 skilleff: 235 cap1 -1 0 State_CAPE_Add State_CAPE_Rem 3 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 4015 24 0 0 0 0 0 0 0 236 cap2 -1 0 State_CAPE_Add State_CAPE_Rem 3 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 4016 24 0 0 0 0 0 0 0 237 cap3 -1 0 State_CAPE_Add State_CAPE_Rem 3 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 4017 24 0 0 0 0 0 0 0 238 cap4 -1 0 State_CAPE_Add State_CAPE_Rem 3 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 -1 0 0 0 4018 24 0 0 0 0 0 0 0 variable: STATE_CAPE1 = 235 STATE_CAPE2 = 236 STATE_CAPE3 = 237 STATE_CAPE4 = 238 functions: function AdmiralCloak() local cha = TurnToCha ( role ) local cha_type = GetChaTypeID ( cha ) local Cape_bg = GetChaItem ( role , 2 , 4 ) local Cape_id = GetItemID ( Cape_bg ) if Cape_id == 7990 and cha_type == 1 then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_CAPE1 , statelv , statetime ) elseif Cape_id == 7990 and cha_type == 2 then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_CAPE2 , statelv , statetime ) elseif Cape_id == 7990 and cha_type == 3 then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_CAPE3 , statelv , statetime ) elseif Cape_id == 7990 and cha_type == 4 then local statelv = 1 local statetime = 3600 AddState ( role , role , STATE_CAPE4 , statelv , statetime ) else local statelv_cape1 = GetChaStateLv ( role , STATE_CAPE1 ) if statelv_cape1~=0 then RemoveState ( role , STATE_CAPE1 ) end local statelv_cape2 = GetChaStateLv ( role , STATE_CAPE2 ) if statelv_cape2~=0 then RemoveState ( role , STATE_CAPE2 ) end local statelv_cape3 = GetChaStateLv ( role , STATE_CAPE3 ) if statelv_cape3~=0 then RemoveState ( role , STATE_CAPE3 ) end local statelv_cape4 = GetChaStateLv ( role , STATE_CAPE4 ) if statelv_cape4~=0 then RemoveState ( role , STATE_CAPE4 ) end end end did i do somthing wrong? plz help thanks in advance Quote Share this post Link to post Share on other sites
InuYasha 4 Report post Posted October 1, 2016 (edited) 1 hour ago, Abdelrahman Hajjaj said: function AdmiralCloak() remove this also put ur functions at cha_timer and try Edited October 1, 2016 by InuYasha 1 Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted October 1, 2016 Hello @Abdelrahman Hajjaj! Try use IDs less than 200 in skilleff.txt. Do not forget to make table_bin for client. 2 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
Abdelrahman Hajjaj 3 Report post Posted October 1, 2016 @InuYasha @V3ct0r thank you it works nw Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 1, 2016 Instead,if you don't want to make your cha_timer full of stuff. create a function called custom_cha_timer and run hooks on it as an extension Eg: Hook:AddPostHook("custom_cha_timer",AdmiralCloak) 2 Quote Share this post Link to post Share on other sites
Abdelrahman Hajjaj 3 Report post Posted October 3, 2016 On 10/1/2016 at 5:12 PM, Vasil said: Instead,if you don't want to make your cha_timer full of stuff. create a function called custom_cha_timer and run hooks on it as an extension Eg: Hook:AddPostHook("custom_cha_timer",AdmiralCloak) yea this much better thnx alot @Vasil Quote Share this post Link to post Share on other sites
mordela 0 Report post Posted November 21, 2016 (edited) On 10/3/2016 at 1:28 PM, Abdelrahman Hajjaj said: yea this much better thnx alot @Vasil On 10/1/2016 at 10:12 AM, Vasil said: Instead,if you don't want to make your cha_timer full of stuff. create a function called custom_cha_timer and run hooks on it as an extension Eg: Hook:AddPostHook("custom_cha_timer",AdmiralCloak) I create new function custom_cha_timer(role, freq, time) cha locales = TurnToCha (papel) cha_type locales = GetChaTypeID (CHA) locales Cape_bg = GetChaItem (papel, 2, 4) locales Cape_id = GetItemID (Cape_bg) si Cape_id == 7626 y cha_type == 1 entonces locales statelv = 1 statetime locales = 3600 ADDSTATE (papel, papel, STATE_CAPE1, statelv, statetime) elseif Cape_id == == 7626 y cha_type 2 a continuación, locales statelv = 1 statetime locales = 3600 ADDSTATE (papel, papel, STATE_CAPE2, statelv, statetime) elseif Cape_id == == 7626 y cha_type 3 a continuación, locales statelv = 1 statetime locales = 3600 ADDSTATE (papel, papel, STATE_CAPE3, statelv, statetime) elseif Cape_id == == 7626 y cha_type 4 a continuación, locales statelv = 1 statetime locales = 3600 ADDSTATE (papel, papel, STATE_CAPE4, statelv, statetime) más statelv_cape1 locales = GetChaStateLv (papel, STATE_CAPE1) si statelv_cape1 ~ = 0 entonces RemoveState (papel, STATE_CAPE1) fin statelv_cape2 locales = GetChaStateLv (papel, STATE_CAPE2) si statelv_cape2 ~ = 0 entonces RemoveState (papel, STATE_CAPE2) fin statelv_cape3 locales = GetChaStateLv (papel, STATE_CAPE3) si statelv_cape3 ~ = 0 entonces RemoveState (papel, STATE_CAPE3) fin statelv_cape4 locales = GetChaStateLv (papel, STATE_CAPE4) si statelv_cape4 ~ = 0 entonces RemoveState (papel, STATE_CAPE4) fin fin fin and error Edited November 23, 2016 by KONG CODES Quote Share this post Link to post Share on other sites
Rinor 59 Report post Posted November 21, 2016 @mordela change those " papel " to " role " and those " fin " to " end " Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted November 21, 2016 I guess this is Lua in BR Version Quote Share this post Link to post Share on other sites
Guest Report post Posted November 21, 2016 On 10/1/2016 at 6:12 PM, Vasil said: Instead,if you don't want to make your cha_timer full of stuff. create a function called custom_cha_timer and run hooks on it as an extension Eg: Hook:AddPostHook("custom_cha_timer",AdmiralCloak) you'd still have to hook original timer, such a waste of resources. Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted November 22, 2016 23 hours ago, qwerty said: you'd still have to hook original timer, such a waste of resources. Still it's a better way to not consumn the cha_timer memory. Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted November 23, 2016 4 hours ago, Vasil said: Still it's a better way to not consumn the cha_timer memory. Not a better way since you're still calling the original function while hooking if I remember correctly. Quote Share this post Link to post Share on other sites
Jelo 7 Report post Posted November 23, 2016 10 hours ago, Vasil said: Still it's a better way to not consumn the cha_timer memory. i suggest you to get out of the thread. you dont know what you are talking about. Quote Share this post Link to post Share on other sites
BETEP/macs509 87 Report post Posted November 23, 2016 В 01.10.2016 в 14:53, V3ct0r сказал: Hello @Abdelrahman Hajjaj! Try use IDs less than 200 in skilleff.txt. Do not forget to make table_bin for client. @V3ct0r а почему именно ниже 200, id которые выше зарезервированы в гейм.ехе? Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted November 23, 2016 2 часа назад, BETEP/macs509 сказал: @V3ct0r а почему именно ниже 200, id которые выше зарезервированы в гейм.ехе? Потому что эффекты с ID > 200 не отображаются клиентом. 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
Vasil 71 Report post Posted November 23, 2016 6 hours ago, Jelo said: i suggest you to get out of the thread. you dont know what you are talking about. Oh really,may you read exactly what the guy asked of and what did he tell me? Kindly without invoking any problem? Quote Share this post Link to post Share on other sites