Jump to content
Sign in to follow this  
OldHero

Maps prob

Recommended Posts

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

Share this post


Link to post
Share on other sites

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,
            }
        },
    }
}

 

  • Like 1

Share this post


Link to post
Share on other sites

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 by OldHero

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

@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.


Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...