Jump to content

Seryov

Member
  • Posts

    89
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Seryov

  1. 39 minutes ago, Fleon said:

    Yes i mean can you paste here the snippet for that def?
    So we can understand if the two parameters are correctly processed by python.

    Unfortunately i don`t have the code with me so if you could provide here it would be great.

     

    If you can provide even the petlifeg would be even better

    it's here

     

    	def SetPercentage(self, curValue, maxValue):
    		if maxValue:
    			self.SetRenderingRect(0.0, 0.0, -1.0 + float(curValue) / float(maxValue), 0.0)
    		else:
    			self.SetRenderingRect(0.0, 0.0, 0.0, 0.0)

     

  2. Hi Metin2Dev,

    I have problem using COSTUME_MOUNT, the time of the item dont show in tooltip...

    This is the proto:

    71198    ºÎÈ°Àý º´¾Æ¸® ¼ÒȯÆÐ(r)    ITEM_COSTUME    COSTUME_MOUNT    1    ANTI_DROP | ANTI_SELL | ANTI_GIVE | ANTI_STACK | ANTI_MYSHOP    QUEST_USE_MULTIPLE | LOG    WEAR_SHIELD    NONE    0    0    0    0    0    LIMIT_NONE    0    LIMIT_NONE    0    APPLY_NONE    0    APPLY_NONE    0    APPLY_NONE    0    1440    0    0    0    0    0    0    0    0


    Help me please, thank u guys.

     

    Suryov

  3. Hi Guys, someone can help me with this problem?

    Thank you so much guys.

    First Debug:
     

    #0  CHARACTER::GetName (this=0x3) at basic_string.h:280
    280           { return  _M_dataplus._M_p; }


    Using bt:
     

    (gdb) bt
    #0  CHARACTER::GetName (this=0x3) at basic_string.h:280
    #1  0x081736cd in ITEM_MANAGER::SaveSingleItem (this=0xffffa280,
        item=0x31a8f1a0) at item_manager.cpp:484
    #2  0x081758a4 in ITEM_MANAGER::Update (this=0xffffa280)
        at item_manager.cpp:544
    #3  0x08293cd3 in heartbeat (ht=0x29129580, pulse=171577) at main.cpp:344
    #4  0x08293e24 in idle () at main.cpp:943
    #5  0x08295665 in main (argc=742211464, argv=0x365e3308) at main.cpp:591
    



    Line: 484 of item_manager.cpp:
    sys_log(1, "ITEM_SAVE %s:%d in %s window %d", item->GetName(), item->GetID(), item->GetOwner()->GetName(), item->GetWindow());

    Line 544 of item_manager.cpp:
    in function: void ITEM_MANAGER::Update():

    Line 544: SaveSingleItem(item);

    Line 344 of main.cpp:
    in function idle()
    line 344:
    heartbeat(thecore_heart, ++thecore_heart->pulse);

    Line 591 of file main.cpp:

    function: 
    int main(int argc, char **argv)

    Line 591:
    while (idle());


    Help me please!!!!!!!!!!!!!

  4. On 27/09/2016 at 6:21 PM, Suainzettello said:

    System don't work.

    My ActorIstanceCollisionDetection.cpp

    Binary successfully compiled, but, when i Spawn a Pet (34004 for example Mini Azrael, collision don't work.

     

      Reveal hidden contents

    BOOL CActorInstance::TestActorCollision(CActorInstance & rVictim)
    {
    #ifdef ENABLE_STOP_COLISSION_GLOBAL
    /*********************************************************************
    * date        : 2016.02.16
    * function    : Stop Colission
    * developer    : VegaS
    * skype        : sacadatt.amazon
    * description : Checks if the victim is one of the examples below you can easily configure. If the victim was found 
                    success as vnum site / breed ve you could go through it no longer block.
    */    
    /************
    * The first value is the minimum value and the second value is the maximum value of pet vnum (mob_proto) - change 34051 with your max vnum of pet */    
        int pListPet[2] = {34001, 34016};    
    /************
    * You can add whatever you like vnum of npc or monster (mob_proto) */
        int pListGlobal[] = {};
    /************
    * You can add what mapname you want for enable this stop collission global like pet / npc */    
        const char* strMapListGlobal[] = {
        "metin2_map_a1", 
        "metin2_map_c1", 
        "metin2_map_a3", 
        "metin2_map_guild_01",
        "metin2_map_monkeydungeon",
        "metin2_guild_village_01",
        "metin2_map_monkeydungeon_02",
        "metin2_guild_village_02",
        "metin2_map_c3",
        "metin2_map_guild_03",
        "metin2_map_monkeydungeon_03",
        "metin2_guild_village_03",
        "map_n_snowm_01",
        "metin2_map_n_flame_01",
        "metin2_map_n_desert_01",
        "metin2_map_milgyo",
        "metin2_map_deviltower1",
        "metin2_map_trent",
        "metin2_map_trent02",
        "season1/metin2_map_WL_01",
        "season1/metin2_map_nusluck01",
        "metin2_map_spiderdungeon_02",
        "metin2_map_skipia_dungeon_02",
        "metin2_map_spiderdungeon",
        "metin2_map_wedding_01",
        "metin2_map_t3",
        "metin2_map_t4",
        "metin2_map_duel",
        "season1/metin2_map_sungzi_snow",
        "season2/metin2_map_empirewar03",
        "metin2_map_devilsCatacomb",
        "metin2_map_skipia_dungeon_boss",
        "metin2_map_spiderdungeon_03"};
    /************
    * Location name of the map where the event takes place ox */        
        const char* strMapEventOx = "season1/metin2_map_oxevent";                                
        
        
        std::string stringName = CPythonBackground::Instance().GetWarpMapName();
        
        for (int i = 0; i < _countof(strMapListGlobal); i++)
        {
        #ifdef ENABLE_STOP_COLLISION_PLAYER_OX
            if (!strcmp(strMapEventOx, stringName.c_str())) // Check if u are place in map ox
            {    
                if (0 <= rVictim.GetRace() && rVictim.GetRace() <= 7) // Check if the victim through which pass over a player (change 7 with 8 if u have wolfman)
                    return FALSE;    // Stop collission for player --> You can go through players now successfully without lock yourself        
            }
        #endif        
            if (strMapListGlobal == stringName) // Check if you are in one of the maps listed in the global list
            {
                for (int i = 0; i < _countof(pListGlobal); i++)
                {
                    if (rVictim.GetRace() == pListGlobal || pListPet[0] <= rVictim.GetRace() && rVictim.GetRace() <= pListPet[1]) // Verify that the victim is npc vnum listed above, or if a pet.
                        return FALSE;    // Stop collission for global vnum like a pet or npc                            
                }
            }    
        }    
    #endif

     

     

    do not say that the system does not work, use your brain and think....

    just change:
     int pListPet[2] = {34001, 34016};   
    to
     int pListPet[3] = {34001, 34016, 34004};   

  5. 9 hours ago, .plechito' said:

    But why do you want make it so complicated? You can easy put .mse file (via .pre file ofc) with World edtior. I don't understand why do you want to use c++ for positing effect on the map. That doesn't make any sense.

    Because i want to create effect in specific ocassion, like it:
    2f1acb8afe4642e6a74e56fdb395f12d.png

    9 hours ago, MichaelM said:

    Maybe he needs dynamic object spawns. :)

    Exactly! but i want to create only the effect.

    Thank you guys for answering!

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