Jump to content

damcej

Inactive Member
  • Posts

    12
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by damcej

  1. Don't work this quest, pls help.

     

    	quest nowe_pety begin
        state start begin
            function get_pet_info(itemVnum)
                pet_info_map = {
                    [1500] = {33011, "Misio", 0},
                }
                itemVnum = tonumber(itemVnum)
                return pet_info_map[itemVnum]
            end
            function get_spawn_effect_file(idx)
                effect_table = {
                    [0] = nil,
                    [1] = "d:\\\\ymir work\\\\effect\\\\etc\\\\appear_die\\\\npc2_appear.mse",
                }
                return effect_table [idx]
            end
            when 1500.use begin 
                local pet_info = pet_system.get_pet_info(item.vnum)
                if null != pet_info then
                    local mobVnum = pet_info[1]
                    local petName = pet_info[2]
                    local spawn_effect_file_name = pet_system.get_spawn_effect_file(pet_info[3])
                    if true == pet.is_summon(mobVnum) then
                        if spawn_effect_file_name != nil then
                            pet.spawn_effect (mobVnum, spawn_effect_file_name)
                        end
                        pet.unsummon(mobVnum)
                    else
                        if pet.count_summoned() < 1 or pc.is_gm() then
                            pet.summon(mobVnum, " ".. petName, false)
                        else
                            syschat("Nie możesz przywołać kilku zwierzaków.")
                        end
                        if spawn_effect_file_name != nil then
                            pet.spawn_effect(mobVnum, spawn_effect_file_name)
                        end
                    end
                end
            end
        end
    end
    	

  2. Hi, I have a problem and get tired already with him for two days.

     

    I made myself pulled the seals by ctrl + g.

    I made it here this code:

    Group    SpecialMountGroup
    {
        Vnum    10030
        1    1400    1    100
        2    1401    1    100
        3    1402    1    100    
        4    1404    1    100
        5    1405    1    100
        6    1406    1    100    
        7    1407    1    100    
        8    1408    1    100
        9    1409    1    100
    }

     

    All the seals work but two:

    1402 and 1406

    I did it again 4 times but continue the same.

     

    Pls help me and sorry for my english. ;)

  3. 9 hours ago, wezt said:

    Take a look in char_item.cpp -> bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) -> rows like this "item->SetCount(item->GetCount() - 1);"
    Also you may want to look in item.cpp -> "bool CItem::SetCount(DWORD count)"

    Function bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) I do not have this entry item->SetCount(item->GetCount() - 1);

    You had to see you item.cpp, so that entry is five bonus, and which life dragon god itp. (sorry, my engilsh is bad)

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