Jump to content

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


Zetsu

Recommended Posts

 

 

 

 

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.

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

 

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

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

 

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.

Link to comment
Share on other sites

quest awards_day begin
	state start begin
		when xx.chat."award" with game.get_event_flag("awards_day") == 1 begin	--	you can use `when xx.use` also, you have to edit item type to ITEM_QUEST from txt or 18 from table
			local items = {1, 2, 3, 4, 5, 6, 7}	--	put vnum items 
			local award = number(1,table.getn(items))
			if pc.getqf("award_time") < get_time() then
				say("")
				pc.give_item2(award, 1)
				pc.setqf("award_time", get_time()+60*60*24)	-- 24h
			else
				say("")
			end	--	if
		end	-- when
	end	--	state
end	--	quest

i think it's same idea but in short way

  • Love 1
Link to comment
Share on other sites

  • 2 weeks later...

I am this eroor . 

1102 14:32:41975 ::   File "networkModule.py", line 239, in SetGamePhase

1102 14:32:41975 ::   File "game.py", line 137, in __init__

1102 14:32:41976 ::   File "game.py", line 2222, in __ServerCommand_Build

1102 14:32:41976 :: AttributeError
1102 14:32:41976 :: : 
1102 14:32:41976 :: 'GameWindow' object has no attribute 'ZetsuGiftSystem__init__'
1102 14:32:41976 :: 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

 

I am this eroor . 

1102 14:32:41975 ::   File "networkModule.py", line 239, in SetGamePhase

1102 14:32:41975 ::   File "game.py", line 137, in __init__

1102 14:32:41976 ::   File "game.py", line 2222, in __ServerCommand_Build

1102 14:32:41976 :: AttributeError
1102 14:32:41976 :: : 
1102 14:32:41976 :: 'GameWindow' object has no attribute 'ZetsuGiftSystem__init__'
1102 14:32:41976 :: 


Can you help me with this eroor ?

 

Link to comment
Share on other sites

  • 2 weeks later...

i have problem the client Stops here https://metin2.download/picture/TOp833jGHHPFd32cmgTd74u5hf7QSMuE/.jpg

 

syserr 

1209 21:27:08797 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
1209 21:28:21414 :: Traceback (most recent call last):

1209 21:28:21416 ::   File "networkModule.py", line 231, in SetGamePhase

1209 21:28:21417 ::   File "system.py", line 130, in __pack_import

1209 21:28:21417 ::   File "
1209 21:28:21417 :: <string>
1209 21:28:21417 :: ", line 
1209 21:28:21417 :: 118
1209 21:28:21417 :: 

1209 21:28:21417 ::     
1209 21:28:21417 :: self.stream=stream

1209 21:28:21417 ::     
1209 21:28:21417 :: ^

1209 21:28:21417 :: SyntaxError
1209 21:28:21417 :: : 
1209 21:28:21417 :: invalid syntax
1209 21:28:21417 :: 

  i Followed the instructions, but I faced this problem

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 2 weeks later...
  • Premium
            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.give_item2(tonumber(mysql_query('SELECT box'..random_nr..' from player.surprisebox WHERE openorclose=1 LIMIT 1;')))
Link to comment
Share on other sites

            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.give_item2(tonumber(mysql_query('SELECT box'..random_nr..' from player.surprisebox WHERE openorclose=1 LIMIT 1;')))

 

Your way is wrong because you didn't call the boxY value

The right way is this:

pc.give_item2(tonumber(mysql_query('SELECT box'..random_nr..' as gift_box from player.surprisebox WHERE openorclose=1 LIMIT 1;').gift_box[1]))
  • Love 1
Link to comment
Share on other sites

i have problem the client Stops here https://metin2.download/picture/TOp833jGHHPFd32cmgTd74u5hf7QSMuE/.jpg

 

syserr 

1209 21:27:08797 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted.
1209 21:28:21414 :: Traceback (most recent call last):

1209 21:28:21416 :: File "networkModule.py", line 231, in SetGamePhase

1209 21:28:21417 :: File "system.py", line 130, in __pack_import

1209 21:28:21417 :: File "
1209 21:28:21417 :: <string>
1209 21:28:21417 :: ", line
1209 21:28:21417 :: 118
1209 21:28:21417 ::

1209 21:28:21417 ::
1209 21:28:21417 :: self.stream=stream

1209 21:28:21417 ::
1209 21:28:21417 :: ^

1209 21:28:21417 :: SyntaxError
1209 21:28:21417 :: :
1209 21:28:21417 :: invalid syntax
1209 21:28:21417 ::

  i Followed the instructions, but I faced this problem

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

  • 1 month later...

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.