StaffEN 3 Report post Posted January 3 Hi, someone can help (share) me with Global ranking npc scripts? i was looking around the whole forum, and didnt see any help about that Quote Share this post Link to post Share on other sites
1g0rS1lv4 68 Report post Posted January 4 On 1/2/2024 at 10:17 PM, StaffEN said: Hi, someone can help (share) me with Global ranking npc scripts? i was looking around the whole forum, and didnt see any help about that https://mega.nz/folder/OUMUgTYb#jtCsqh7halK_O9uzWyaG0g/folder/yRc0lQ5Y 1 Quote Being better than others is for those who are weak; what matters is to be true to yourself. Share this post Link to post Share on other sites
StaffEN 3 Report post Posted January 4 (edited) thank you bro, you know what im missing? i got this error >> Loading Kill/Death Ratio By Saeed resource/script\KD\init.lua:81: attempt to call global `file_exists' (a nil value) Edited January 4 by StaffEN Quote Share this post Link to post Share on other sites
1g0rS1lv4 68 Report post Posted January 5 On 1/4/2024 at 5:12 AM, StaffEN said: thank you bro, you know what im missing? i got this error >> Loading Kill/Death Ratio By Saeed resource/script\KD\init.lua:81: attempt to call global `file_exists' (a nil value) function file_exists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end Quote Being better than others is for those who are weak; what matters is to be true to yourself. Share this post Link to post Share on other sites
StaffEN 3 Report post Posted January 6 15 hours ago, 1g0rS1lv4 said: function file_exists(name) local f=io.open(name,"r") if f~=nil then io.close(f) return true else return false end end >> Loading Kill/Death Ratio By Saeed resource/script\KD\init.lua:87: attempt to call field `Load' (a nil value) Quote Share this post Link to post Share on other sites
StaffEN 3 Report post Posted January 8 Someone can help me with this? Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted January 9 Hello @StaffEN, --[[ NpcSdk.lua Lines elseif item.func == GetRankingListing then GetRankingListing( character,item.p1) elseif item.func == PlayerPkPMazeCheck then PlayerPkPMazeCheck( character,item.p1) elseif item.func == PlayerPkPCheck then PlayerPkPCheck( character) elseif item.func == PvPWinnerReward then PvPWinnerReward( character) elseif item.func == PvPWinnerReward2 then PvPWinnerReward2( character) MissionSdk.lua Lines add this somewhere around line 2500 elseif conditions[i].func == CheckIsPvPWinner then PRINT( "ConditionsTest:CheckIsPvPWinner, p1 = ", conditions[i].p1 ) local ret = CheckIsPvPWinner( character, conditions[i].p1 ) if ret ~= LUA_TRUE then PRINT( "ConditionsTest: CheckIsPvPWinner = false" ) return LUA_FALSE end elseif conditions[i].func == CheckIsPvPWinner2 then PRINT( "ConditionsTest:CheckIsPvPWinner, p1 = ", conditions[i].p1 ) local ret = CheckIsPvPWinner2( character, conditions[i].p1 ) if ret ~= LUA_TRUE then PRINT( "ConditionsTest: CheckIsPvPWinner2 = false" ) return LUA_FALSE end ]]-- Did you add these changes to files NpcSdk.lua and MissionSdk.lua? 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
StaffEN 3 Report post Posted January 9 3 hours ago, V3ct0r said: Hello @StaffEN, Did you add these changes to files NpcSdk.lua and MissionSdk.lua? Yes, i did, but i got that error now,"function npcproc transfer fail" Quote Share this post Link to post Share on other sites