Jump to content

avertuss

Inactive Member
  • Posts

    480
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by avertuss

  1. 2 godziny temu, enzi napisał:

    Do you try it like that?
     

      Odkryj ukrytą treść

    when kill with npc.is_pc() and pc.get_map_index() == 41 begin
                local points = query("SELECT points from player.player_arena WHERE name = '"..pc.get_name().."';")
                local namet = pc.get_name()
                local levt = pc.get_level()
                local vid = npc.get_vid()
                local old_pc = pc.select(vid)
                if old_pc != 0 then
                    local lev = pc.get_level()
                    local name = pc.get_name()
                    query("UPDATE player.player_arena SET deaths = deaths+1 where name = '"..name.."';")
                    pc.select(old_pc)
                    if lev == levt then
                        pkt = 2
                        query("UPDATE player.player_arena SET points = points+"..pkt.." WHERE name = '"..namet.."';")
                        local points = query("SELECT points from player.player_arena WHERE name = '"..pc.get_name().."';")
                        chat("2 points")
                        chat("You have: "..points.." points.")
                        query("UPDATE player.player_arena SET kills = kills+1 WHERE name = '"..namet.."';")
                    elseif lev > levt then
                        pkt = 3
                        query("UPDATE player.player_arena SET points = points+"..pkt.." WHERE name = '"..namet.."';")
                        local points = query("SELECT points from player.player_arena WHERE name = '"..pc.get_name().."';")
                        chat("3 points")
                        chat("You have: "..points.." points.")
                        query("UPDATE player.player_arena SET kills = kills+1 WHERE name = '"..namet.."';")
                    elseif lev < levt and lev >= levt-5 then
                        pkt = 1
                        query("UPDATE player.player_arena SET points = points+"..pkt.." WHERE name = '"..namet.."';")
                        local points = query("SELECT points from player.player_arena WHERE name = '"..pc.get_name().."';")
                        chat("1 point")
                        chat("You have: "..points.." points.")
                        query("UPDATE player.player_arena SET kills = kills+1 WHERE name = '"..namet.."';")
                    else
                        chat("0 points")
                    end
                end
            end

     

    Still the same. I think that it doesn't work because i don't have query to add nickname to name column but i'm not sure. 

  2. Hi. I have

    when kill with npc.is_pc() and pc.get_map_index() == 41 begin
    			local points = query("SELECT points from player.player_arena WHERE name = '"..pc.get_name().."';")
    			local namet = pc.get_name()
    			local levt = pc.get_level()
    			local vid = npc.get_vid()
    			local old_pc = pc.select(vid)
    			if old_pc != 0 then
    				local lev = pc.get_level()
    				local name = pc.get_name()
    				query("UPDATE player.player_arena SET deaths = deaths+1 where name = '"..name.."';")
    				pc.select(old_pc)
    				if lev == levt then
    					pkt = 2
    					query("UPDATE player.player_arena SET points = points+"..pkt.." WHERE name = '"..namet.."';")
    					local points1 = query("SELECT points from player.player_arena WHERE name = '"..pc.get_name().."';")
    					chat("2 points")
    					chat("You have: "..points1.." points.")
    					query("UPDATE player.player_arena SET kills = kills+1 WHERE name = '"..namet.."';")
    				elseif lev > levt then
    					pkt = 3
    					query("UPDATE player.player_arena SET points = points+"..pkt.." WHERE name = '"..namet.."';")
    					local points1 = query("SELECT points from player.player_arena WHERE name = '"..pc.get_name().."';")
    					chat("3 points")
    					chat("You have: "..points1.." points.")
    					query("UPDATE player.player_arena SET kills = kills+1 WHERE name = '"..namet.."';")
    				elseif lev < levt and lev >= levt-5 then
    					pkt = 1
    					query("UPDATE player.player_arena SET points = points+"..pkt.." WHERE name = '"..namet.."';")
    					local points1 = query("SELECT points from player.player_arena WHERE name = '"..pc.get_name().."';")
    					chat("1 point")
    					chat("You have: "..points1.." points.")
    					query("UPDATE player.player_arena SET kills = kills+1 WHERE name = '"..namet.."';")
    				else
    					chat("0 points")
    				end
    			end
    		end

    My player_arena table looks like 

    4eb6feb5a5b834cbc7ffa3b1c5ab12b8.png

    I don't know why but query doesn't work, i have still empty table. In syserr i have 

    attempt to concatenate local `points1' (a nil value)

     

  3. Hi. I have quest(tp to friend)

    quest teleport_to_player begin
    	state start begin
    		when login begin
    			cmdchat("teleport "..q.getcurrentquestindex())
    		end
    		when button or info begin
    		if get_time() < pc.getqf("duration_tp") then
    			return
    		end	
    			sname = getinput("getinput")
    			if sname == "" then
    				return
    			end	
    
    			local u_vid = find_pc_by_name(sname)
    			local m_vid = pc.get_vid()
    			if u_vid == 0 then
    				return
    			end
    			
    			local m_name = pc.name
    			local old = pc.select(u_vid)
    			local x,y = pc.get_x()*100,pc.get_y()*100
    			local is_blocked = pc.getf("teleport_to_player_block", m_name)				
    			pc.select(old)
    			if u_vid == m_vid then
    				return
    			end		
    			if is_blocked == 1 then
    				syschat("Player: "..sname.." blocked tp.")
    			else	
    				local ok_sign = confirm(u_vid, string.format("Player "..m_name.." wants tp.", pc.name), 30) 
    				if ok_sign == CONFIRM_OK then
    					pc.setqf("duration_tp",get_time()+1*5*1)
    					pc.warp(x,y)		
    				end	
    			end	
    		end
    	end
    end	
    		
    		

    but i don't know how can i make that players can tp only to players from the same guild. Any ideas? 

  4. Hi. I want make item in which time flies only when it is equiped so i'm using TIMER_BASED_ON_WEAR but item disappear after 1 minute. Any ideas? I want to make item for 8 hours. 

    71135	"71135"	"ITEM_UNIQUE"	"UNIQUE_NONE"	1	"NONE"	"NONE"	"WEAR_SHIELD"	"NONE"	0	0	0	0	0	"TIMER_BASED_ON_WEAR"	28800	"LIMIT_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	0	0	0	0	0	0	0	0	0
  5. 11 minut temu, ElBrujoo napisał:

    Ok, then if "LOG | STACKABLE" makes your item working then try adding ITEM_STACKABLE to the "list" of flags

    -> "LOG | STACKABLE | ITEM_STACKABLE" 

    if still doesn t work i can help you on skype

    PS: on sql you just had to add 4 to the flag value :P

    PPS: better restore the values to 71051 and 71052 because you have to edit them in the source too if you edit in the db in order to have them work

    It works. Thank you. Omg why metin is so stupid XD

    • Love 1
  6. 8 minut temu, ElBrujoo napisał:

    first of all, ensure your db is read from txt, and that you restarted your server. Then the flag is correct(even if i suggest using sql protos, which i found very easier to work on), so if you drop them on the ground and pick on it should stack them. To stack them by dragging you have to edit some things in the client too

    I'm using txt protos. I hate proto i navicat. When i have item_stackable i can't add/change bonus with them because i don't have green background on item if you know what i mean. I have red. If i don't have item_stackable it works well so idk. I had original values 71051,71052 and the same error so i change values to 35122, 32123 but still the same. I don't know what happend. Item_stackable make that these items doesn't work. 

  7. I. I have 6/7

    35122	"35122"	"ITEM_USE"	"USE_SPECIAL"	1	"NONE"	"LOG | STACKABLE"	"NONE"	"NONE"	0	0	0	0	0	"LIMIT_NONE"	0	"LIMIT_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	0	0	0	0	0	0	0	0	0
    35123	"35123"	"ITEM_USE"	"USE_SPECIAL"	1	"NONE"	"LOG | STACKABLE"	"NONE"	"NONE"	0	0	0	0	0	"LIMIT_NONE"	0	"LIMIT_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	0	0	0	0	0	0	0	0	0

    I want to make them stackable so i make it like that

    35122	"35122"	"ITEM_USE"	"USE_SPECIAL"	1	"NONE"	"LOG | ITEM_STACKABLE"	"NONE"	"NONE"	0	0	0	0	0	"LIMIT_NONE"	0	"LIMIT_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	0	0	0	0	0	0	0	0	0
    35123	"35123"	"ITEM_USE"	"USE_SPECIAL"	1	"NONE"	"LOG | ITEM_STACKABLE"	"NONE"	"NONE"	0	0	0	0	0	"LIMIT_NONE"	0	"LIMIT_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	"APPLY_NONE"	0	0	0	0	0	0	0	0	0	0

    but when i have item_stackable 6/7 bonus doesn't work. Any ideas? 

  8. Hi. I added new map but i have property errors

    0703 20:38:14801 ::  CArea::LoadObject Property(2101881193) Load ERROR
    0703 20:38:14801 ::  CArea::LoadObject Property(2627009095) Load ERROR
    0703 20:38:16033 ::  CArea::LoadObject Property(1601001901) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(710490145) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(801773336) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(1098027084) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(1098027084) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(1438485573) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(2101881193) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(2101881193) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(2266660253) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(3104473707) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(3133340257) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(3949842369) Load ERROR
    0703 20:38:16253 ::  CArea::LoadObject Property(3949842369) Load ERROR
    0703 20:38:17492 ::  CArea::LoadObject Property(3104473707) Load ERROR
    0703 20:38:17492 ::  CArea::LoadObject Property(3133340257) Load ERROR
    0703 20:38:17492 ::  CArea::LoadObject Property(4281053806) Load ERROR

     

    How can i find these models names? I want delete or add that models but i don't know name or something. 

  9. 43 minuty temu, Mali61 napisał:

    Do you update item_scale.txt?

    85019    JOB_ASSASSIN    M    73    73    73    0    0    0.24
    85019    JOB_ASSASSIN    F    54    65    62    0    0    0.38
    85019    JOB_SHAMAN    M    78    78    78    0    0    0.2
    85019    JOB_SHAMAN    F    62    62    62    0    0    0.45
    85019    JOB_SURA    M    85    85    85    0    0    0.15
    85019    JOB_SURA    F    62    62    62    0    0    0.45
    85019    JOB_WARRIOR    M    83    83    83    0    0    0.14
    85019    JOB_WARRIOR    F    72    75    72    0    0    0.26

     

    with this the same. 

  10. Hi. i have error when i want to compile his source

    1>------ Build started: Project: BetaStatic, Configuration: Release Win32 ------
    2>------ Build started: Project: BetaDynamic_self, Configuration: Release Win32 ------
    3>------ Build started: Project: BetaDynamic, Configuration: Release Win32 ------
    4>------ Build started: Project: BetaConsole, Configuration: Release Win32 ------
    3>  Functions.cpp
    1>  AdjustPrivileges.cpp
    2>  Functions.cpp
    4>  main.cpp
    2>  main.cpp
    3>  main.cpp
    1>  AntiAnalysis.cpp
    4>LINK : fatal error LNK1104: cannot open file '../__Output/BetaStatic/Release/BetaStatic.lib'
    5>------ Build started: Project: BetaBox, Configuration: Release Win32 ------
    2>  Generating Code...
    3>  Generating Code...
    5>  main.cpp
    2>LINK : fatal error LNK1104: cannot open file '../__Output/BetaStatic/Release/BetaStatic.lib'
    3>LINK : fatal error LNK1104: cannot open file '../__Output/BetaStatic/Release/BetaStatic.lib'
    1>  AntiBreakpoint.cpp
    1>  AntiDebug.cpp
    5>  Generating code
    1>  AntiEmulation.cpp
    5>  All 468 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
    5>  Finished generating code
    1>  AntiMacro.cpp
    5>  BetaBox.vcxproj -> C:\Users\user\Desktop\BetaShield-master\BetaBox\..\__Output\BetaBox\Release\BetaBox.exe
    5>  BetaBox.vcxproj -> ..\__Output\BetaBox\Release\BetaBox.pdb (Full PDB)
    1>  AntiThread.cpp
    1>  AntiVirtual.cpp
    1>  ApfnHooks.cpp
    1>  BasePointers.cpp
    1>  BetaShadow.cpp
    1>  CLog.cpp
    1>  CRC32.cpp
    1>  Data.cpp
    1>  DigSignScan.cpp
    1>  DirFuncs.cpp
    1>  DLLNotificationCallback.cpp
    1>  DNSScan.cpp
    1>  DriverScan.cpp
    1>  DynamicWinapi.cpp
    1>  Generating Code...
    1>  Compiling...
    1>  ElevationAccess.cpp
    1>  EnumerateHandles.cpp
    1>  EventLogScan.cpp
    1>  ExceptionHandlers.cpp
    1>  File_verification.cpp
    1>  Functions.cpp
    1>  GeneralAccess.cpp
    1>  HiddenProcessScan.cpp
    1>  InitCheck.cpp
    1>  License.cpp
    1>  Main.cpp
    1>  ManualMap.cpp
    1>  MemoryScan.cpp
    1>  Metin2_Plugin.cpp
    1>  MiniDump.cpp
    1>  ModuleScan.cpp
    1>  NktHookWrapper.cpp
    1>  ProberCallback.cpp
    1>  ProjectMain.cpp
    1>  Screenshot.cpp
    1>  Generating Code...
    1>  Compiling...
    1>  SectionChecksumScan.cpp
    1>  SectionScan.cpp
    1>  SelfInlineHooks.cpp
    1>  SelfRestart.cpp
    1>  SelfThreads.cpp
    1>  SetDACL.cpp
    1>  InternetAPI.cpp
    1>  SetMitigationPolicy.cpp
    1>  Test.cpp
    1>  TestFunctions.cpp
    1>  TestSignScan.cpp
    1>  ThreadEnumerator.cpp
    1>  Threads.cpp
    1>  ThreadScan.cpp
    1>  Utils.cpp
    1>  Watchdog.cpp
    1>  WindowCountScan.cpp
    1>  WindowsScan.cpp
    1>  Wow64HookScan.cpp
    1>  Generating Code...
    1>Screenshot.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
    1>  BetaStatic.vcxproj -> C:\Users\user\Desktop\BetaShield-master\BetaStatic\..\__Output\BetaStatic\Release\BetaStatic.lib
    ========== Build: 2 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========

    Any ideas? 

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