OldHero 12 Report post Posted August 8, 2016 Hello guys i want ask you how i can make if you want enter in 1x map any need rto use 95 uns ?? or some set Quote Share this post Link to post Share on other sites
Billy 164 Report post Posted August 8, 2016 try this: http://pastebin.com/UWM3uPDq Havent had time to test it, but should work (forum wont let me paste in code tags for some reason) 1 Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 8, 2016 Hm i need make clean lua for this or ?? Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 8, 2016 Cos i need that for feeders .. example in cod they feed with char with no eq so i want block it if they want enter in map they cant enter clean char or some nab set they atleast need have 95 uns Quote Share this post Link to post Share on other sites
Billy 164 Report post Posted August 8, 2016 put it in a .lua file, edit the maps table to have the ItemID and mapname you want, load the lua file Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 8, 2016 but how i can put more maps KickToMap = 'garner', i will put example there deathcircle what now if i want do 1x more map ?? Quote Share this post Link to post Share on other sites
Billy 164 Report post Posted August 8, 2016 KickToMap is the map the player is kicked to if they enter in an allowed equip, then change to another equip. Maps = { --Maps is the table of maps ['map1'] = { Fusable = true, KickToMap = 'garner', Equips = { Head = nil, Armour = {2549,192,2920}, Gloves = {2550,1234,678}, Boots = {2551}, LeftHand = nil, RightHand = nil, LeftRing = {82}, RightRing = nil, Necklace =nil, } }, ['map2'] = { Fusable = false, KickToMap = 'garner', Equips = { Head = nil, Armour = {2549}, Gloves = {2550,999}, Boots = {2551}, LeftHand = nil, RightHand = nil, LeftRing = nil, RightRing = nil, Necklace =nil, } }, } } Is the map config, so if you wanted PKmap to only allow people in kylin set, you would add: Maps = { --Maps is the table of maps ['map1'] = { Fusable = true, KickToMap = 'garner', Equips = { Head = nil, Armour = {2549,192,2920}, Gloves = {2550,1234,678}, Boots = {2551}, LeftHand = nil, RightHand = nil, LeftRing = {82}, RightRing = nil, Necklace =nil, } }, ['map2'] = { Fusable = false, KickToMap = 'garner', Equips = { Head = nil, Armour = {2549}, Gloves = {2550,999}, Boots = {2551}, LeftHand = nil, RightHand = nil, LeftRing = nil, RightRing = nil, Necklace =nil, } }, ['PKmap'] = { Fusable = false, KickToMap = 'garner', Equips = { Head = nil, Armour = {825}, Gloves = {826}, Boots = {827}, LeftHand = nil, RightHand = nil, LeftRing = nil, RightRing = nil, Necklace =nil, } }, } } 1 Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 8, 2016 (edited) So this map1 and map2 need stay no need touch it or i can edit this or can just copy this and edit how i want ? ['PKmap'] = { Fusable = false, KickToMap = 'garner', Equips = { Head = nil, Armour = {825}, Gloves = {826}, Boots = {827}, LeftHand = nil, RightHand = nil, LeftRing = nil, RightRing = nil, Necklace =nil, } }, } } Edited August 8, 2016 by OldHero Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 8, 2016 and yea why 1x more question what this mean Fusable = true, what if i change to false ? Quote Share this post Link to post Share on other sites
Billy 164 Report post Posted August 8, 2016 map1 and map2 are just example map names Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 9, 2016 But on ur script map1 is Fusable = true, and on map2 Fusable = false, what that mean to sets ? Quote Share this post Link to post Share on other sites
Billy 164 Report post Posted August 9, 2016 Option for if set can be fused Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 9, 2016 so if i want kylin set fused put in this script i put true ? right Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 10, 2016 i puted this in my files and i still can enter in cod with 95 uns or without set.. . i put all maps id of set and still Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted August 10, 2016 Why don't you just explain what's your problem , what @7n6 said is true .You have just not explained your problem really well. Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted August 10, 2016 I tested @7n6 it's perfectly Working.Explain what's ur problem Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 11, 2016 Wer u put this lua on script calculate or in script folder? Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 11, 2016 Look my prob is i want stop ppl from feed so i want make in map if u want enter map u cant enter with some nab set or something like that i want if ppl want enter map they need have 95 uns .. atleast. Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 11, 2016 ??? bump Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted August 13, 2016 @OldHero There is function check_can_enter_xxx(role, copy_mgr), were xxx is map name. The function is defined in entry.lua for each map. You can put necessary checks here. 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
OldHero 12 Report post Posted August 13, 2016 Yea bro but how ... i dont know i already try but no work u can give me some example ? Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 13, 2016 I dont get how i can block for ppl without eq cant enter in mapp and how i can make only ppl with kylin and 95 can enter .. if u can give me some help example? Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted August 13, 2016 22 minutes ago, OldHero said: I dont get how i can block for ppl without eq cant enter in mapp and how i can make only ppl with kylin and 95 can enter .. if u can give me some help example? ~.~ you don't know to make addons? Quote Share this post Link to post Share on other sites
OldHero 12 Report post Posted August 13, 2016 i made. omg but this script dont work for me .. Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted August 14, 2016 12 hours ago, OldHero said: i made. omg but this script dont work for me .. There has been numerous examples within the whole thread, why not simply look through your files? There are function that give glows to player when using certain sets like the Lv75 Death Torso and Lv85 Ring. Take that function and add it to the "can_enter_X" map function. Quote Share this post Link to post Share on other sites