Jump to content

Den

Inactive Member
  • Posts

    110
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Posts posted by Den

  1. Before:

    std::ifstream exppet_table_open("/usr/home/game/share/exppettable.txt");

    Add:

    std::string temp_exp_line;
    #ifdef NEW_PET_SYSTEM
    	std::string temp_exp_line;
    	std::ifstream exppet_table_open("/usr/home/game/share/exppettable.txt");
    	/*if (!exp_table_open.is_open())
    	return 0;*/
    
    	int exppet_table_counter = 0;
    	int tmppet_exp = 0;
    	while (!exppet_table_open.eof())
    	{
    		exppet_table_open >> temp_exp_line;
    		str_to_number(exppet_table_common[exppet_table_counter], temp_exp_line.c_str());
    		if (exppet_table_common[exppet_table_counter] < 2147483647) {
    			sys_log(0, "Livelli Pet caricati da exppettable.txt: %d !", exppet_table_common[exppet_table_counter]);
    			exppet_table_counter++;
    		}
    		else {
    			fprintf(stderr, "[main] Impossibile caricare la tabella exp valore non valido\n");
    			break;
    		}
    	}
    #endif

    Learn some basics of C++ - it doesn't hurt.

  2. 6 hours ago, Agorin said:

    I have 2 question;
    1: How can i block exp on map i mean after level up to next map, i dont want get exp on last map after max lv for map.
    2: How to turn on this emoticons? because after enter this on chat effect is not showing only like on the picture..
    1tC2zem.jpg

    1.

    char.cpp find void CHARACTER::PointChange(BYTE type, int amount, bool bAmount, bool bBroadcast) after:

    		case POINT_EXP:
    		[ ... ]
    				else
    				{
    					if (gPlayerMaxLevel <= GetLevel())
    						return;

    add:

    					if (GetMapIndex() == 1 && GetLevel >= 75) //instead of 1 insert your map index and instead of 75 insert your level
    						return;

    Mind that it will also block exp from missions.

  3. 1 hour ago, Riner said:

    like that allow you to make another thing to another people in game?

    like teleport? but not you the another player?

    You can use it like that for example:

    when 20019.chat."testing here" begin
    	say("test")
    	local npc_vid = npc.get_vid() --getting npc vid for the future use
    	if npc_vid !=0 then
    		target.vid("__TARGET__", npc_vid, "test_target") --targeting npc you've just talked to
    	end
    end
    
    when __TARGET__.target.click begin
    	say("test")
    	target.delete("__TARGET__")
    end

     

    • Love 1
  4. 16 minutes ago, Riner said:

    so that true thx

    do you know what this func do?

    
    npc.get_vid

    why you tell me this Im get shocked@@ 20 quest will change with this wrong information but thx

    The function will return virtual ID of npc. You can use this in some function that takes vid as an argument.

    Quote

    d.regen_file -d.set_regen_file whats the different 

    d.regen_file() will spawn mobs only once, d.set_regen_file() will loop regen (mobs will be respawned like in normal maps).

     

    • Love 1
  5. 2 minutes ago, Riner said:

    I know there is quest like this and thx for it but I need to teleport all people in the map to dungeon

    and no body can meet the first people that already going to dungeon

    there is any way to do this?

    I've edited the post above with the explanation of the functions. Do you want teleport them to the private dungeon map (10000+) or global map?

    • Love 1
  6. 1 hour ago, charparodar said:
    
    gdb /usr/home/game/share/bin/game /usr/home/game/cores/channel1/game2/game.core
    GNU gdb 6.1.1 [FreeBSD]
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "amd64-marcel-freebsd"...Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/home/game/share/bin/game]
    
    "/usr/home/game/cores/channel1/game2/game.core" is not a core dump: File format is ambiguous
    (gdb)
    
    

     

    Use it like this:

    set gnutarget i386-marcel-freebsd
    file /usr/home/game/share/bin/game
    core /usr/home/game/cores/channel1/game2/game.core
    bt full

     

  7. 2 hours ago, charparodar said:
    
    bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)
    {
    	switch(ch->GetMapIndex())
    	{
    		case 113:
    		case 219:
    		case 240:
    		case 351:
    		case 352:
    			return false;
    	}

     

    Try

    bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim)
    {
    	// »ó´ëąćŔĚ Á׾úŔ¸¸é Áß´ÜÇŃ´Ů.
    	if (victim->IsDead())
    		return false;
    
    	switch(ch->GetMapIndex())
    	{
    		case 113:
    		case 219:
    		case 240:
    		case 351:
    		case 352:
    			{
    				if (victim->IsPC())
    					return false;
    			}
    	}
    
    ...

     

    • Love 1
  8. Try to insert space on the end of string where you've used national characters e.g.:

     say("لقد أقدم بعض الخونه على سرقه مجموعة من عتادي المحبوب مني")

     say("لقد أقدم بعض الخونه على سرقه مجموعة من عتادي المحبوب مني ")

    The other thing is that you didn't define xx

    if pc.count_item ( xx ) == 1 then

    And I don't know if it's allowed to use ";" in lua so you can also try to remove them.

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