Jump to content

hachiwari

Active Member
  • Posts

    299
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by hachiwari

  1. 4 godziny temu, attila1995 napisał:

    It's a very simple thing. I dont want to speak about it now, its so long. 

    (You can get player's name where the code sends inviter packet. And you can put that to rewrote packet. It's a easy thing, but i dont want to lead your hand from step to step.)

    You should look around in your source, there are so mutch same example what you want to make...

    Good luck!

    Yes, good luck.

     

    ReFresh, we dont give you a full solution, step by step, it will be good for you. In every topic you waited for full solution, no way ?

  2. 1 godzinę temu, xUniverse napisał:

    Open ../game/src/regen.cpp and search:

    
    				else if (p->m_table.bType == CHAR_TYPE_NPC || p->m_table.bType == CHAR_TYPE_WARP || p->m_table.bType == CHAR_TYPE_GOTO)
    				{
    					SECTREE_MANAGER::instance().InsertNPCPosition(lMapIndex,
    							p->m_table.bType,
    							p->m_table.szLocaleName,
    							(regen->sx+regen->ex) / 2 - base_x,
    							(regen->sy+regen->ey) / 2 - base_y);
    				}

    And do some like that:

    
    				else if (p->m_table.bType == CHAR_TYPE_NPC || p->m_table.bType == CHAR_TYPE_WARP || p->m_table.bType == CHAR_TYPE_GOTO)
    				{
    					if (regen->vnum != 9004)
    					{
    						SECTREE_MANAGER::instance().InsertNPCPosition(lMapIndex,
    								p->m_table.bType,
    								p->m_table.szLocaleName,
    								(regen->sx+regen->ex) / 2 - base_x,
    								(regen->sy+regen->ey) / 2 - base_y);
    					}
    				}

    If you need to hide more than one npc, you can make a list with the vnums and check if the list doesn't contain regen->vnum.

    lol, only remove form atlas, noo dont spawn npc xD

     

    I think in Client/UserInterface/PythonMiniMap.cpp in Update method 

    'else if (pkInstEach->IsNPC())'  change to 'else if (pkInstEach->IsNPC() && pkInstEach->GetRace() != 9004)'

    however, it will be pretty if you add new type of mob and not in PythonMiniMap.cpp

  3. 16 godzin temu, MrMuniez napisał:

    Thanks YOu BRO. That Pastebin code Works perfect. Can you tell me only function to walk to character ? 

    These functions:

    	x, y = chr.GetPixelPosition(vid)[:2]
    	myX, myY = player.GetMainCharacterPosition()[:2]
    	chr.MoveToDestPosition(player.GetMainCharacterIndex(), x, y)

    Good luck!

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