Jump to content

Zetsu

Inactive Member
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Posts posted by Zetsu

  1. EN: It was much better if in the quest was a function who do a buff when you press on that box. Whatever, very nice release Zetsu. 

    RO: Felicitari Zetsu pentru acest system. Vad ca dau de multi romani pe alte site-uri pentru modarea unui privat. 

     

    Well, you can add that buff by yourself. I mean, you can do anything with this quest. Thank you!

     

    I've been away for more than 6 months. People still create/play on pservers? xD I tought metin was 'dead'...

  2. I would just like to be a quest may bring show the gift box, and if I click it, the quest continue.

    How to solve it?

     

    Sorry for my bad english.. ><

     

    Hey!

     

    I've made a new version and I think it works... I can't test it cause I don't have a server (i'm not "sponsorized").

    Here you have:

    Quest - http://pastebin.com/fVH6fa5W

    Client side - http://pastebin.com/2z667SvR

     

    For a correct installation, copy the codes from "RAW Paste Data" label situated at the bottom of PASTEBIN.COM page.

     

    Good luck!

  3. Hi guys! I'm using the mysql version and it works! so thanks zetsu!

    I've a question, how can i do to doesn't make appear the gift-box when i relogin or change map?

     

    P.s: sorry for my english

     

    Search: 

    cmdchat("zetsugfsys "..q.getcurrentquestindex())
    

    Under this add

    if pc.getqf("giftsystemuse") <= get_time() then
        cmdchat("giftsyshide")
    

    If you added hide function to your client.

  4.  

     

     

     

     

     

    I've already resolved that ^^ but thank you the same :) Now my problem is that:

     

    Okay, now when i click the gift icon it says: I: The box it's opening... but nothing happens... It just stays the same ><

     

     

    Check your mysql table / your module / your quest (if you don't use mysql quest)

     

    I think everything is okay with the MySql table, i use the mysql quest, and what is the module? ><

     

    Use no_mysql_query version of the quest, but you will have to update the quest daily.

     

    Why do i need to update it daily? :/

     

    To change reword items' vnum.

  5.  

     

     

     

    I've already resolved that ^^ but thank you the same :) Now my problem is that:

     

    Okay, now when i click the gift icon it says: I: The box it's opening... but nothing happens... It just stays the same ><

     

     

    Check your mysql table / your module / your quest (if you don't use mysql quest)

     

    I think everything is okay with the MySql table, i use the mysql quest, and what is the module? ><

     

    Use no_mysql_query version of the quest, but you will have to update the quest daily.

  6.  

    1011 23:47:09011 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item2.mse) Error
    1011 23:47:09011 :: CInstanceBase::RegisterEffect(eEftType=270, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item2.mse, isCache=1) - Error
    1011 23:47:09013 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/buff/buff_item4.mse) Error
    1011 23:47:09013 :: CInstanceBase::RegisterEffect(eEftType=272, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/buff/buff_item4.mse, isCache=1) - Error
    1011 23:47:21681 :: Traceback (most recent call last):
     
    1011 23:47:21681 ::   File "networkModule.py", line 245, in SetGamePhase
     
    1011 23:47:21682 ::   File "system.py", line 130, in __pack_import
     
    1011 23:47:21682 ::   File "
    1011 23:47:21682 :: game.py
    1011 23:47:21682 :: ", line 
    1011 23:47:21682 :: 2218
    1011 23:47:21682 :: 
     
    1011 23:47:21682 ::     
    1011 23:47:21682 :: def ZetsuGiftSystem__init__(self, index):   
     
    1011 23:47:21682 ::     
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 ::  
    1011 23:47:21682 :: ^
     
    1011 23:47:21682 :: IndentationError
    1011 23:47:21682 :: : 
    1011 23:47:21682 :: unindent does not match any outer indentation level
    1011 23:47:21682 :: 

     
    What can it be? oO

     

    M2dev replaces TAB key space with normal SPACE key (i don't know if you understood xD )...

  7. &nbsp;

    Can anyone tell me the right slot_rotation wolfchar?

    &nbsp;

    360 just for 4 characters not more. Ymir entartaiment make new character select screen because 5th character not adapted in 360.

    Best Regards

    Ellie

     

     

    You have some angles.. Their position is determined in a circle. Basically, you need math xD .

     

    B r

  8. Well, nobody posts tutorials with M2 interface coding xD so you can't find any. If you want to create an interface by yourself (own codes) start by replacing existing elements (images and positions) then remove what's useless, but before, be careful at functions. If you remove ServersList box, you must remove functions too that's based on that element.

     

    Good luck! Try some python tutorials and get inspired on other releases(codes) :D .

  9.  

    (one each 30minutes) 

     

    To be used by player or auto-open it at 30min.?

     

    You know that quest have

     

    pc.setqf("giftsystemuse", get_time()+60*30) -- 30 mins

    cmdchat("giftsyshide") -- this hide the box

     

    I meant a normal box that can be putted

    in the inventory and player can use it every 30 minutes

     

     

    Oh...That's from quest side. Use pc.setqf("GiveItAName", get_time()+60*30) -- 30 mins and then

    if pc.getqf("GiveItAName") < get_time() then

            action...

    end

     

  10. 3.july.2014 - v1.3 - Quest repaired. Added no-mysql_query version and shows box only when you can use it.

    A lot of people have problems with mysql_query command, so i've made a quest version with array. Now it's easy to edit random items and also you can add more without alter a table (easy, no?  :D ). More than that, it's annoying when you see it on the screen but you can't use it, so i've added a condition which shows the box only if time is over.

     

    No-MySql_Query

    -- © 2014 Zetsu - This system it's made by me for metin2Dev.org
    -- Do not change Copyrights or re-post on another stupid forums!
    quest thsgiftdev begin
        state start begin
            when login begin
                cmdchat("zetsugfsys "..q.getcurrentquestindex())
    			if pc.getqf("giftsystemuse") > get_time() then
    				cmdchat("giftsyshide")
    			end
            end
             
            function giverandomitem()
                local random_nr = number(1,5)
                chat("I: The box it's opening...") -- Opening 
                random_items = { 45009, 28013, 30044, 27105, 30029,} -- Items list
    			
                pc.give_item2(tonumber(random_items[random_nr]))
    			
                pc.setqf("giftsystemuse", get_time()+60*60*12) -- 12 hours (60*minutes*hrs, 30 minutes example: 60*30, 10 minutes example: 60*10)
                cmdchat("giftsyshide")
            end
     
            when button or info begin
                if pc.getqf("giftsystemuse") <= get_time() then
                    thsgiftdev.giverandomitem()
                else
                    chat("W: You have no gift. Try after 12 hours...") -- Played 
                end
            end
        end
    end

    MySql_Query version:

    -- © 2014 Zetsu - This system it's made by me for metin2Dev.org
    -- Do not change Copyrights or re-post on another stupid forums!
    quest thsgiftdev begin
        state start begin
            when login begin
                cmdchat("zetsugfsys "..q.getcurrentquestindex())
    			if pc.getqf("giftsystemuse") > get_time() then
    				cmdchat("giftsyshide")
    			end
            end
             
            function giverandomitem()
                local random_nr = number(1,5)
                chat("I: The box it's opening...") -- Opening 
                if random_nr==1 then
                    pc.give_item2(tonumber(mysql_query('SELECT box1 from player.surprisebox WHERE openorclose=1 LIMIT 1;').box1[1]))
                elseif random_nr==2 then
                    pc.give_item2(tonumber(mysql_query('SELECT box2 from player.surprisebox WHERE openorclose=1 LIMIT 1;').box2[1]))
                elseif random_nr==3 then
                    pc.give_item2(tonumber(mysql_query('SELECT box3 from player.surprisebox WHERE openorclose=1 LIMIT 1;').box3[1]))
                elseif random_nr==4 then
                    pc.give_item2(tonumber(mysql_query('SELECT box4 from player.surprisebox WHERE openorclose=1 LIMIT 1;').box4[1]))
                elseif random_nr==5 then
                    pc.give_item2(tonumber(mysql_query('SELECT box5 from player.surprisebox WHERE openorclose=1 LIMIT 1;').box5[1]))
                end
                pc.setqf("giftsystemuse", get_time()+60*60*12) -- 12 hours (60*minutes*hrs)
                cmdchat("giftsyshide")
            end
     
            when button or info begin
                if pc.getqf("giftsystemuse") <= get_time() then
                    thsgiftdev.giverandomitem()
                else
                    chat("W: You have no gift. Try after 12 hours...") -- Played 
                end
            end
        end
    end

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