Jump to content

FlorinMarian

Premium
  • Posts

    305
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by FlorinMarian

  1. I've never used this 

    DB_ADDR: xxx.xxx.xxx.158

    Just create from example 

    /usr/home/game
    /usr/home/game2

    and for every game folder change DB_PORT (15001 & 15002 for example).

    You have to be carefully with ports  too , example:

    /usr/home/game/auth
    PORT: 31009
    P2P_PORT: 41100
    
    /usr/home/game2/auth
    PORT: 31010
    P2P_PORT: 41200

    If u create folders like this be sure u correct the symlinks.

    Greetings.

  2. 32 minutes ago, Cyber36 said:

    Only remove the affect in the entergame function in the source -> input_main.cpp :)

     

    MfG

    Cyber

        if (FindAffect(AFFECT_SKILL_NO_BOOK_DELAY))
        {
            RemoveAffect(AFFECT_SKILL_NO_BOOK_DELAY);
        }
        
        if (FindAffect(AFFECT_SKILL_BOOK_BONUS))
        {
            RemoveAffect(AFFECT_SKILL_BOOK_BONUS);
        }

     

    In which function i have to add these?

  3. 11 hours ago, tierrilopes said:
    
     if (ch->GetMapIndex() == 110)
            {
                ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cant use this here."));
                return -1;
            }

    Is this what you want?

    You can use the vnum of the item you want to block, or just add it to the function, for example mount one for the horse.

    Okay, thank you.

    Now, anybody can create a function/quest which dismount/send horse away when a player enter on these maps?

    Thank you!

  4. 6 hours ago, EnKor said:

    in quest summon_horse.quest and ride.quest

     

     

     

     

    After:

    
    # when xxxxxx.use begin
    
    
    # paste
    
    if pc.get_map_index() >= 110000 and pc.get_map_index() <= 110500 then
    	return
    end
                                                                   
    if pc.get_map_index() >= 111000 and pc.get_map_index() <= 111500 then
    	return
    end
                                                                   

     

    so:

    - pc.get_map_index need to be exactly map_index (110 and 111 in my case)

    eg: pc.get_map_index == 110 or pc.get_map_index == 111

    - between pc.get_map_index() need to be "or" not "and" beccause if you say "and" will never happen. A player cannot be in two maps same time.

    Happ new year !

  5. 3 hours ago, EnKor said:

    in quest summon_horse.quest and ride.quest

     

     

     

     

    After:

    
    # when xxxxxx.use begin
    
    
    # paste
    
    if pc.get_map_index() >= 101000 and pc.get_map_index() <= 110500 then
    	return
    end
                                                                   
    if pc.get_map_index() >= 111000 and pc.get_map_index() <= 111500 then
    	return
    end
                                                                   

     

    Thank you for this idea but it will not work, you tried to help me but with my noob level i can see some mistakes

×
×
  • 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.