Jump to content

tester12

Inactive Member
  • Posts

    50
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by tester12

  1. Hello, i have one query in quest like (ex.):

    local test= mysql_query("SELECT * FROM player.my_system WHERE player_id = '"..pc.get_player_id().."' AND time >= '"..max_time.."' LIMIT 1")
    if test == 0 then

    blabla

    end

    but in syserr i have all time:

    RunState: LUA_ERROR: locale/turkey/quest/questlib.lua:33: attempt to call global `split' (a nil value)

    33 line in function mysql_query is: for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi);

    screenshot: https://metin2.download/picture/wl9K9DEs2LoeO9WwbhiCLPzHuevut8ge/.png

    and in channel directory have much files mysql_data_***, which generate from mysql_query function:  local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{}

    how can fix it?

    • Sad 1
  2. Hello, I have problem with split inventory (special inventory), when i refine item with item which in split inventory, i can refine item if have half of what need items. Ex: I refine item ID 277 and need for refine item: 27992 x20(i check in refine_proto), and in split inventory I have 27992 x10, and it will refine up.. Where have check for count items in refine? in over9refine i cannot found any mistake

  3. hello, I have problem with mount, when I use mount and teleporting in another map, mount print remains in slot but mount disappears. I tried add in special_item_group like this:
    Group mounts
    {
    	Vnum 10090
    	1 71185 1 1
        2 71127 1 1
        3 71126 1 1
        4 71125 1 1
    	5 71171 1 1
    	6 71172 1 1
    }

     

    But it didn`t help.

     

  4. 5 hours ago, WeedHex said:

    Show the quest.

    quest reset_scroll begin
    	state start begin
    		when 71054.use begin
    			local yang = 1000000
    			local lvl = 50
    			say_title(" Change empire ")
    			if pc.is_engaged() then
    				say(" You cannot change empire if you are married.[ENTER] ")
    				return
    			end
    			if pc.is_married() then
    				say(" You cannot change your empire if you are married.[ENTER] ")
    				return
    			end
    			if pc.is_polymorphed() then
    				say(" You cannot change empire if you in polymorph.[ENTER] ")
    				return
    			end
    			if pc.has_guild() then
    				say(" You cannot change empire if you are in a guild.[ENTER] ")
    				return
    			end
    			say(" Continuing, you will change your empire. ")
    			say(" Are you sure you want to continue?[ENTER] ")
    			say_reward(" Price: "..yang.." yang ")
    			say_reward(" Min level: "..lvl.." [ENTER] ")
    			local b = select(" Yes ", " No ")
    			if b == 2 then
    				return
    			end
    			say_title(" Change empire ")
    			if pc.get_gold() < yang then
    				say(" You don`t have yang.[ENTER] ")
    				return
    			end
    			if pc.get_level() < liv then
    				say(" Your lvl is small.[ENTER] ")
    				return
    			end
    			say( "Choose your empire:[ENTER] ")
    			local emp = select(" Red ", " Yellow ", " Blue ", " Close ")
    			if emp == 4 then
    				return
    			end
    			local ret = pc.change_empire(emp)
    			if ret == 999 then -- this condition does not work, ret 999 does not return from the server source 
    				pc.change_gold(-yang)
    				pc.remove_item(item.get_vnum(), 1)
    				say_title(" Сhange empire ")
    				say(" The change is complete.[ENTER] ")
    			elseif ret == 1 then
    				say_title(" Сhange empire ")
    				say(" You cannot choose your own empire.[ENTER] ")
    			elseif ret == 2 then
    				say_title(" Change empire ")
    				say("")
    				say(" Impossible to change empire because you or other members ")
    				say(" on your account are in the guild. ")
    			elseif ret == 3 then
    				say_title(" Сhange empire ")
    				say("")
    				say(" Impossible to change empire because you were married ")
    				say(" less than 24 hours ago.[ENTER] ")
    			end			
    		end
    	end
    end

     

  5. Function pc.change_empure not return 999 for successful change empire. So problem in change empire, some players(some can change empire successful) cannot do it. Quest doesn't give any error, with test I check what quest return "ret" value not 999, and does not fall into the condition. 

    Player info: single(not marriage), no guild, above level 70, 1 character per account

    Where can be problem?

  6. I tried this fix

    But doesn't help..

    Which yet method have for fix it?

    Should i add in player->gold unsigned subtype?

     

     

    Not all players have this bug, I don’t know what it is connected with, but for many it doesn’t work, it says “you don’t have enough yang.”, but for some people it work, they can buy from shop npc in negative yang.

     

    @VegaS™ @xP3NG3Rx @martysama0134

    • Hello, I have one problem with mounts. System is mount around you (like horse), and here problem: when i call mount it, with click in print he come on and give bonus (load from item_proto applytype0..), but shouldn't, and when i click ctrl+G to climb on him, it give yet the same bonuses(x2).
      I want to give bonus only when print in panel slot mount. Have any method for check item in slot with lua? Or what are some ideas to fix this?
×
×
  • 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.