Jump to content

block mount on map


Recommended Posts

27 minutes ago, ds_aim said:

How about 

if (ch->GetMapIndex == number ) {

    if (ch->IsHorseRiding()) {
        ch->StopRiding();
        return;
    }

}

void CPetActor::Unmount()
{
    if (0 == m_pkOwner)
        return;
        
    if (ch->GetMapIndex == number ) {    

    if (m_pkOwner->IsHorseRiding())
        m_pkOwner->StopRiding();
    }    
}

 

so?

Link to comment
Share on other sites

            local map_index = {110,111}
                if tab_(map_index, pc.get_map_index()) then
                syschat("<Sistem Mount> You can not do this in this map!")
                return
            end

 

questlib.lua

function tab_(self, fuckoff)
   for i = 1, table.getn(self) do
      if self==fuckoff then
         return true
      end
   end
   return false
end        

questfunction:

tab_

 

Example :

 

SMn1ysk.png

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 2
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.