Jump to content

Zoom

Member
  • Posts

    28
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Zoom

  1. Try this:

     

    Open PythonMiniMap and search this:

     

    Spoiler

            float fDistanceFromCenter = sqrtf(fDistanceFromCenterX * fDistanceFromCenterX + fDistanceFromCenterY * fDistanceFromCenterY );
            if ( fDistanceFromCenter >= m_fMiniMapRadius )
                continue;

            TMarkPosition aMarkPosition;

     

    Then, after this add:

     

    Spoiler

            int blockID[] = {101, 102};
            
            for (int i = 0; i < _countof(blockID); i++)
            {
                if (pkInstEach->GetRace() != blockID[i])
                    return;
             }

     

    Just insert your ID in array blockID.

    • Sad 1
    • Lmao 1
  2. On 1/14/2021 at 9:44 PM, dattg1337 said:

    @Zoom did you edit correctly applytypes in clientside item_proto ?

    Yes, bonuses work perfectly.

     

    On 1/14/2021 at 9:48 PM, Hunger said:

    Show the python part.

     

    In python i have only new class of UI in uiiinventory and functions for open this gui with button.

     

    Uitooltip:

     

    elif item.ITEM_TYPE_RUNE == itemType:
    	self.__AppendLimitInformation()
    	self.__AppendAffectInformation()
    	self.__AppendAttributeInformation(attrSlot)

     

    Uiscriptfile and that's all in python part.

     

    Edit: I fixed my problem, thank you both of us for trying help :)

     

  3. Hello, i have a problem with skills on dungeons, like Enchanted Blade or shaman buff skills.

     

    When i use the skills and join to dungeon, skill icon (left-corner) disapears, when i use skills again, icons doesn't shows.

     

    When i finish dungeon, function teleporting me to village and i teleport to m1, skills icons are showing.

     

    When i use skills on city, icons are showing, when i teleporting to city or anyelse map, i have icons, problem is only on dungeon.

     

    Anybody have a solution for this or idea how to fix this, or where i can find some information for this in source?

     

    Best regards.

  4. I have a function from Koray that check if player standing next to water.

     

    bool CHARACTER::IsNearWater() const
    {
    	if (!GetSectree())
    		return false;
    	
    	for (int x = -1; x <= 1; ++x)
    	{
    		for (int y = -1; y <= 1; ++y)
    		{
    			if (IS_SET(GetSectree()->GetAttribute(GetX() + x * 100, GetY() + y * 100), ATTR_WATER))
    				return true;
    		}
    	}
    	
    	return false;
    }

     

    I need to use this function in quest, so i maked something like this:

     

    int pc_near_water(lua_State* L)
    	{
    		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
    		
    		if (ch)
    			lua_pushboolean(L, ch->IsNearWater());
    		
    		return 0;
    	}

     

    That's all i have but when i try fishing nex to water or anywhere i want, i can't.

     

    Anybody can help me?

  5. @Cunoo

     

    When i change my line of "if" to "if not pc.get_skill_group() == 1 and pc.get_job()== 0 or pc.get_job() == 4 then

    i doesn't work, when i change pc.get_skill_group() == 1 to pc.get_skill_group() == 2 (MENTAL) i can use item.

     

    Thanks for quests but in my case i can't use like this:

     

    if bla bla

       bla bla

    else <---- with else

      bla bla

     

    I have to include this "if" to this list:

     

    when xxx.use begin

     

    if pc.get_skill_group() == 0 then
                    syschat("...")
                    return
                end

    if table.getn(vnum_list) == 0 then
                    syschat("...")
                    return
                end
                
    if pc.count_item(50513) == 0 then
                    syschat("..")
                    return
                end
                
     if not pc.can_warp() then
                    syschat("..")
                    return
                end

     

    ----- HERE TO SPEACE FOR IF --

     

    "if" must end with return end :)

  6.  

    Hi, i have a problem with "if" in my quest.

     

    This quest looks like:

     

    
    when xxx.use begin
    
     
    
    [...]
    
     
    
    if pc.get_skill_group() != 1 and pc.get_job() != 0 or pc.get_job() != 4 then
        syschat("["..item.get_name().."]".." you are not a warrior body")
        return
    
    end
    
    

     

    Translate: When im not a BODY and WARRIOR MEN or WOMAN, return...

    but when i try use item on warrior with skills BODY, i got syschat "you are not a warrior body"

     

    Really i don't know why this doesn't work, this is a simple function, somebody have idea whats wrong?

     

    Best regards.

     

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