Jump to content

[ Dead Download Link ] [Release]Gift system(Updated: 3.july.2014) [ We Need You ]


Zetsu

Recommended Posts

 

 

Hi, so i have put the quest, the navicat, the item_proto, item_list, the tga how put i can open the box what do i have to do? I'm using game 2089

You can use the item or button should appear near energy system(old interface)

 

 

 

Ok but the dowload link for the button is down

 

It's just an icon. You can use any.

Link to comment
Share on other sites

 

 

 

Hi, so i have put the quest, the navicat, the item_proto, item_list, the tga how put i can open the box what do i have to do? I'm using game 2089

You can use the item or button should appear near energy system(old interface)

 

 

 

Ok but the dowload link for the button is down

 

It's just an icon. You can use any.

 

 

But i would like to use that :( can you pls give me in PM?

Link to comment
Share on other sites

 

 

 

 

Hi, so i have put the quest, the navicat, the item_proto, item_list, the tga how put i can open the box what do i have to do? I'm using game 2089

You can use the item or button should appear near energy system(old interface)

 

 

 

Ok but the dowload link for the button is down

 

It's just an icon. You can use any.

 

 

But i would like to use that :( can you pls give me in PM?

 

I'm busy for the next 6 hrs. After that, i'll solve the link.

Link to comment
Share on other sites

 

 

 

 

 

Hi, so i have put the quest, the navicat, the item_proto, item_list, the tga how put i can open the box what do i have to do? I'm using game 2089

You can use the item or button should appear near energy system(old interface)

 

 

 

Ok but the dowload link for the button is down

 

It's just an icon. You can use any.

 

 

But i would like to use that :( can you pls give me in PM?

 

I'm busy for the next 6 hrs. After that, i'll solve the link.

 

 

If you can PM me the link or post here i would apreciate it

Link to comment
Share on other sites

  • 2 weeks later...

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

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...

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
Link to comment
Share on other sites

 

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

 

rookie mistake... you have forgoten TABS

  • Love 1
Link to comment
Share on other sites

 

 

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

 

rookie mistake... you have forgoten TABS

 

You were right, now i can enter in game normally, but when i click the gift button it does nothing, but i'll resolve that tomorrow, i need to go now, thank you man ^^

Link to comment
Share on other sites

 

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 )...

Link to comment
Share on other sites

 

 

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 )...

 

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 ><

Link to comment
Share on other sites

  • Premium

 

 

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)

Link to comment
Share on other sites

 

 

 

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? ><

Link to comment
Share on other sites

 

1014 02:13:01585 ::   File "ui.py", line 1016, in CallEvent
 
1014 02:13:01585 ::   File "game.py", line 2453, in ZetsuGiftSystem__deff__
 
1014 02:13:01585 :: NameError
1014 02:13:01585 :: : 
1014 02:13:01585 :: global name 'event' is not defined :((((

 

add:

import event

 

in first lines of game.py

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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