Jump to content

flygun

Former Staff
  • Posts

    729
  • Joined

  • Last visited

  • Days Won

    7
  • Feedback

    0%

Posts posted by flygun

  1. hello guys i got made this python script as a start for learning python

    import os
    import app
    import ui
    
    class Points(ui.BoardWithTitleBar):
    	def __init__(self):
    		ui.BoardWithTitleBar.__init__(self)
    		self.LoadServerWindowWindow()
    		
    	def __del__(self):
    		ui.BoardWithTitleBar.__del__(self)
    		
    	def LoadServerWindowWindow(self):
    
    		self.SetSize(200, 250)
    		self.SetCenterPosition()
    		self.AddFlag("movable")
    		self.AddFlag("float")
    		self.SetTitleName(" نقاط القتل ")
    		self.Show()
    		
    		self.LoadButton()
    		
    	def LoadButton(self):
    		self.b1 = ui.Button()
    		self.b1.SetParent(self)
    		self.b1.SetPosition(75, 220)
    		self.b1.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")
    		self.b1.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")
    		self.b1.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")
    		self.b1.SetText(" اغلاق ")
    		self.b1.SetEvent(self.close)
    		self.b1.Show()
    
    	def close(self):
    		self.points.hide()
    Points()

    i got those things in game.py

    			# Points system
    			"points"				: self.points_show,
    			# END of Points system
    	# Points_system
    	def points_show(self):
    		import test_points
    		self.points = test_points.points()
    		self.Show()
    	#END of Points_system

    mmm let me say the the script right now is working

    but the problem is

    when i open any charectar the window shows

     

    i got this as a quest

    quest gm_panel begin 
        state start begin 
            when login with pc.is_gm() begin
                send_letter(" قائمه النقاط ")
            end
            when info or button begin
                say_title(" Team M2W ") 
                say(" هل تريد فتح القائمة ")
                local a = select(" نعم ")
                if a == 1 then
                    cmdchat("points")
                end
            end 
        end 
    end  
  2.  

    Help , im having same problem ! 

    client syserr : 

     

    0724 16:12:34174 :: CMapBase::LoadProperty(FileName=metin2_map_n_snow_dungeon_01MapProperty.txt) - LoadMultipleTextData ERROR ÆÄÀÏÀÌ ¾øÀ» °¡´É¼ºÀÌ ¸¹½À´Ï´Ù.
    0724 16:12:34174 :: CMapManager::LoadMap() Invalid Map Type
    0724 16:12:34175 :: CPythonBackground::SelectViewDistanceNum(int eNum=0) mc_pcurEnvironmentData is NULL
    

     

     

    you don't have the epk/eix file for the map

     

    or you didn't put it in the index file

     

  3. hello guys i got problem

     

    as you can see the "gold" and the "buy_price" in the client and in the server

    but in the game the prices is different

     

        <Item vnum="999500" name="ہ؛±« (5¸¸³ة)" gb2312name="قسيمة شراء 500 مليون" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="500000000" buy_price="500000000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
        <Item vnum="999250" name="ہ؛±« (10¸¸³ة)" gb2312name="قسيمة شراء 250 مليون" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="250000000" buy_price="250000000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
        <Item vnum="999100" name="±ف±« (50¸¸³ة)" gb2312name="قسيمة شراء 100 مليون" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="100000000" buy_price="100000000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
      999500    ±³ب¯±ا    قسيمة شراء 500 مليون    0    0    0    1    0    4    0        500000000    500000000    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    -1    -1    -1    -1    -1    0    0    0
    999250    ±³ب¯±ا    قسيمة شراء 250 مليون    0    0    0    1    0    4    0        250000000    250000000    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    -1    -1    -1    -1    -1    0    0    0
    999100    ±³ب¯±ا    قسيمة شراء 100 مليون    0    0    0    1    0    4    0        100000000    100000000    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    0    -1    -1    -1    -1    -1    -1    0    0    0
    

     

  4. yeah i know hahah

     

    but i got other problem

     

    as you can see the "gold" and the "buy_price" in the client

      <Item vnum="999500" name="ہ؛±« (5¸¸³ة)" gb2312name="قسيمة شراء 500 مليون" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="500000000" buy_price="500000000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
      <Item vnum="999250" name="ہ؛±« (10¸¸³ة)" gb2312name="قسيمة شراء 250 مليون" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="250000000" buy_price="250000000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
      <Item vnum="999100" name="±ف±« (50¸¸³ة)" gb2312name="قسيمة شراء 100 مليون" type="0" subtype="0" weight="0" size="1" antiflag="0" flag="4" wearflag="0" immuneflag="0" gold="100000000" buy_price="100000000" limittype0="0" limitvalue0="0" limittype1="0" limitvalue1="0" applytype0="0" applyvalue0="0" applytype1="0" applyvalue1="0" applytype2="0" applyvalue2="0" value0="0" value1="0" value2="0" value3="0" value4="0" value5="0" socket0="0" socket1="0" socket2="0" socket3="0" socket4="0" socket5="0" refine_vnum="0" refine_set="0" magic_pct="0" specular="0" socket_pct="0" />
       

    and in the server

    UPDATE `player`.`item_proto` SET `vnum`='999500', `name`='��ȯ��', `locale_name`='����� ���� 500 �����', `type`='0', `subtype`='0', `weight`='0', `size`='1', `antiflag`='0', `flag`='4', `wearflag`='0', `immuneflag`='', `gold`='500000000', `shop_buy_price`='500000000', `refined_vnum`='0', `refine_set`='0', `refine_set2`='0', `magic_pct`='0', `limittype0`='0', `limitvalue0`='0', `limittype1`='0', `limitvalue1`='0', `applytype0`='0', `applyvalue0`='0', `applytype1`='0', `applyvalue1`='0', `applytype2`='0', `applyvalue2`='0', `value0`='0', `value1`='0', `value2`='0', `value3`='0', `value4`='0', `value5`='0', `socket0`='-1', `socket1`='-1', `socket2`='-1', `socket3`='-1', `socket4`='-1', `socket5`='-1', `specular`='0', `socket_pct`='0', `addon_type`='0' WHERE (`vnum`='999500');
    UPDATE `player`.`item_proto` SET `vnum`='999250', `name`='��ȯ��', `locale_name`='����� ���� 250 �����', `type`='0', `subtype`='0', `weight`='0', `size`='1', `antiflag`='0', `flag`='4', `wearflag`='0', `immuneflag`='', `gold`='250000000', `shop_buy_price`='250000000', `refined_vnum`='0', `refine_set`='0', `refine_set2`='0', `magic_pct`='0', `limittype0`='0', `limitvalue0`='0', `limittype1`='0', `limitvalue1`='0', `applytype0`='0', `applyvalue0`='0', `applytype1`='0', `applyvalue1`='0', `applytype2`='0', `applyvalue2`='0', `value0`='0', `value1`='0', `value2`='0', `value3`='0', `value4`='0', `value5`='0', `socket0`='-1', `socket1`='-1', `socket2`='-1', `socket3`='-1', `socket4`='-1', `socket5`='-1', `specular`='0', `socket_pct`='0', `addon_type`='0' WHERE (`vnum`='999250');
    UPDATE `player`.`item_proto` SET `vnum`='999100', `name`='��ȯ��', `locale_name`='����� ���� 100 �����', `type`='0', `subtype`='0', `weight`='0', `size`='1', `antiflag`='0', `flag`='4', `wearflag`='0', `immuneflag`='', `gold`='100000000', `shop_buy_price`='100000000', `refined_vnum`='0', `refine_set`='0', `refine_set2`='0', `magic_pct`='0', `limittype0`='0', `limitvalue0`='0', `limittype1`='0', `limitvalue1`='0', `applytype0`='0', `applyvalue0`='0', `applytype1`='0', `applyvalue1`='0', `applytype2`='0', `applyvalue2`='0', `value0`='0', `value1`='0', `value2`='0', `value3`='0', `value4`='0', `value5`='0', `socket0`='-1', `socket1`='-1', `socket2`='-1', `socket3`='-1', `socket4`='-1', `socket5`='-1', `specular`='0', `socket_pct`='0', `addon_type`='0' WHERE (`vnum`='999100');
    

    the prices in game are different

     

  5. hello guys i made this quest .... but i need to know somthing

     

    how to make the quest resend the letter after click on it ??

     

    i mean i don't want the letter on the left side of the window disappear

     

    i can see a   a function called "restart_quest"

     

    but don't know how to use it

     

    quest tickets begin


    state start begin
    when letter begin
    send_letter ( " شراء قسائم " ) --Quest Name
    end
    when button or info begin
    say_yellow (" هل تريد شراء قسائم نقود ؟؟ ") --title
    say (" ")
    say (" ")
    say (" ")
    say_red (" من هنا يمكنك شراء قسائم نقود ")
    say_red (" اختر نوع القسيمه التي تريد شرائها ")
    local a = select (" قسيمه ام ال500 "," قسيمه ام ال 250 "," قسيمه ام ال 100 " , " اغلاق ")
    if 4==a then return

    elseif 1==a then
    say_red (" كم قسيمه تريد ان تاخذ ؟؟ ")
    local a1 = select (" واحدة500× ", " اثنتان500× ", " ثلاثه500× ", " اربعه500× ", " رجوع ")
    if 1==a1 then
    if pc.get_money () <= (499999999) then --check if player got the money ---
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999500,1)
    pc.change_gold (-500000000)
    end

    elseif 2==a1 then
    if pc.get_money () <= (999999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999500,2)
    pc.change_gold (-1000000000)
    end

    elseif 3==a1 then
    if pc.get_money () <= (1499999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999500,3)
    pc.change_gold (-1500000000)
    end

    elseif 4==a1 then
    if pc.get_money () <= (1999999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999500,4)
    pc.change_gold (-2000000000)
    end
    end

    elseif 2==a then
    say_red (" كم قسيمه تريد ان تاخذ ؟؟ ")
    local a2 = select (" واحدة250× ", " اثنتان250× ", " ثلاثه250× ", " اربعه250× ", " رجوع ")
    if 1==a2 then
    if pc.get_money () <= (249999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999250,1)
    pc.change_gold (-250000000)
    end

    elseif 2==a2 then
    if pc.get_money () <= (499999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999250,2)
    pc.change_gold (-500000000)
    end

    elseif 3==a2 then
    if pc.get_money() <= (749999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999250,3)
    pc.change_gold (-750000000)
    end

    elseif 4==a2 then
    if pc.get_money() <= (999999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999250,4)
    pc.change_gold (-1000000000)
    end
    end
    elseif 3==a then
    say_red (" كم قسيمه تريد ان تاخذ ؟؟ ")
    local a3 = select (" واحدة100× ", " اثنتان100× ", " ثلاثه100× ", " اربعه100× ", " رجوع ")
    if 1==a3 then
    if pc.get_money() <= (99999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999100,1)
    pc.change_gold (-100000000)
    end

    elseif 2 == a3 then
    if pc.get_money () <= (199999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999100,2)
    pc.change_gold (-200000000)
    end

    elseif 3 == a3 then
    if pc.get_money () <= (299999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999100,3)
    pc.change_gold (-300000000)
    end

    elseif 4 == a3 then
    if pc.get_money() <= (399999999) then
    chat (" انك لا تملك هذا المبلغ ")
    else
    pc.give_item2 (999100,4)
    pc.change_gold (-400000000)
    end
    return
    end
    end
    end
    end
    end

  6. and what about these problems ??

    SYSERR: Jul 14 20:55:25 :: main: Failed to Load ClientPackageCryptInfo File(package/)
    SYSERR: Jul 14 20:55:31 :: Show: cannot find sectree by 505653x920686 mapindex 1
    SYSERR: Jul 14 20:55:31 :: RegenNPC: Cannot create guild npc
    SYSERR: Jul 14 20:55:31 :: GetMotionFileName: Motion: spider_egg have not motlist.txt vnum(2095) folder(spider_egg)
    SYSERR: Jul 14 21:12:13 :: heart_idle: losing 43 seconds. (lag occured)
    SYSERR: Jul 14 21:25:15 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Jul 14 21:26:12 :: ForAttrRegion: Cannot find SECTREE_MAP by map index 1
×
×
  • 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.