Jump to content
  • 0
ZelosAvalon

[Daily Reward System]

Question

I'm working on a system of daily rewards, which I will share with you when you finish, I would like to know how to add a button on a cuttin, for example:

the image appears:

 

receive.png

 

but I only receive the reward if you click receive

 

received.png

 

some1 can help me with it ?
 

 

Share this post


Link to post
Share on other sites

33 answers to this question

Recommended Posts

  • 0

Not sure if it's possible without heavily modding the client right?

 

maybe if I put to click on the image, and I could put them apart, like this:

 

reward3.png Reward img without button

 

reward2.png button img for click

 

reward2_h.png button after click

 

reward1.jpg as it will appear at the end

 

reward1_2.jpgand after receiving the reward

Edited by ZelosAvalon

Share this post


Link to post
Share on other sites
  • 0

The easiest way is to make a cutin with 'click in menu to receive' and another with 'received', and of course a menu that says 'receive'. I know that is not what you want but... that's the best I can tell so far.

 

Another best option to make a big cutin with all rewards and remarked with the which one correspond today if you are available to get it, and click in the menu 'receive reward'.

 

 

PS: If you are good enough to make this script why wouldn't you make the simple sql query to know the "top 10" of t_event_points? xd

 

EDIT:

*cutin("<filename>", <position>)

This command will display a picture, usually an NPC illustration, also 
called cutin, for the currently attached client. The position parameter 
determines the placement of the illustration and takes following values:

	0 - bottom left corner 
	1 - bottom middle 
	2 - bottom right corner 
	3 - middle of screen in a movable window with an empty title bar 
	4 - middle of screen without the window header, but still movable 

The picture is read from data\texture\유저인터페이스\illust, from both the 
GRF archive and data folder, and is required to be a bitmap. The file 
extension .bmp can be omitted. Magenta color (#ff00ff) is considered 
transparent. There is no limit placed on the size of the illustrations 
by the client, although loading of large pictures (about 700x700 and 
larger) causes the client to freeze shortly (lag). Typically the size is 
about 320x480. New illustrations can be added by just putting the new file 
into the location above.

The client is able to display only one cutin at the same time and each new 
one will cause the old one to disappear. To delete the currently displayed 
illustration without displaying a new one, an empty file name and position 
255 must be used.

	// Displays the Comodo Kafra illustration in lower right corner.
	cutin("kafra_07", 2);

	// Typical way to end a script, which displayed an illustration during a
	// dialog with a player.
	mes("See you.");
	close2();
	cutin("", 255);
	end;
Edited by rokimoki

Share this post


Link to post
Share on other sites
  • 0

 

The easiest way is to make a cutin with 'click in menu to receive' and another with 'received', and of course a menu that says 'receive'. I know that is not what you want but... that's the best I can tell so far.

 

Another best option to make a big cutin with all rewards and remarked with the which one correspond today if you are available to get it, and click in the menu 'receive reward'.

 

 

PS: If you are good enough to make this script why wouldn't you make the simple sql query to know the "top 10" of t_event_points? xd

 

EDIT:

*cutin("<filename>", <position>)

This command will display a picture, usually an NPC illustration, also 
called cutin, for the currently attached client. The position parameter 
determines the placement of the illustration and takes following values:

	0 - bottom left corner 
	1 - bottom middle 
	2 - bottom right corner 
	3 - middle of screen in a movable window with an empty title bar 
	4 - middle of screen without the window header, but still movable 

The picture is read from data\texture\유저인터페이스\illust, from both the 
GRF archive and data folder, and is required to be a bitmap. The file 
extension .bmp can be omitted. Magenta color (#ff00ff) is considered 
transparent. There is no limit placed on the size of the illustrations 
by the client, although loading of large pictures (about 700x700 and 
larger) causes the client to freeze shortly (lag). Typically the size is 
about 320x480. New illustrations can be added by just putting the new file 
into the location above.

The client is able to display only one cutin at the same time and each new 
one will cause the old one to disappear. To delete the currently displayed 
illustration without displaying a new one, an empty file name and position 
255 must be used.

	// Displays the Comodo Kafra illustration in lower right corner.
	cutin("kafra_07", 2);

	// Typical way to end a script, which displayed an illustration during a
	// dialog with a player.
	mes("See you.");
	close2();
	cutin("", 255);
	end;

 

I'm good to work with designers, but scripts I still have a lot to learn! I have many ideas, but lack knowledge to apply them!

I will follow your advice, and do some tests with cuttins, i have some ideas in my mind!

 

PS: About sql query (t_event_points), I was a long time without working with ragnarok scripts and sql I'm learning that period in college, before that I never needed to work with sql, always had a variable like #points, but when I tried to create a ranking I saw it would be a better option learn how to work with sQL, and you helped me a lot! xP tyvm

 

 

 

Edited by ZelosAvalon

Share this post


Link to post
Share on other sites
  • 0

 

 

The easiest way is to make a cutin with 'click in menu to receive' and another with 'received', and of course a menu that says 'receive'. I know that is not what you want but... that's the best I can tell so far.

 

Another best option to make a big cutin with all rewards and remarked with the which one correspond today if you are available to get it, and click in the menu 'receive reward'.

 

 

PS: If you are good enough to make this script why wouldn't you make the simple sql query to know the "top 10" of t_event_points? xd

 

EDIT:

*cutin("<filename>", <position>)

This command will display a picture, usually an NPC illustration, also 
called cutin, for the currently attached client. The position parameter 
determines the placement of the illustration and takes following values:

	0 - bottom left corner 
	1 - bottom middle 
	2 - bottom right corner 
	3 - middle of screen in a movable window with an empty title bar 
	4 - middle of screen without the window header, but still movable 

The picture is read from data\texture\유저인터페이스\illust, from both the 
GRF archive and data folder, and is required to be a bitmap. The file 
extension .bmp can be omitted. Magenta color (#ff00ff) is considered 
transparent. There is no limit placed on the size of the illustrations 
by the client, although loading of large pictures (about 700x700 and 
larger) causes the client to freeze shortly (lag). Typically the size is 
about 320x480. New illustrations can be added by just putting the new file 
into the location above.

The client is able to display only one cutin at the same time and each new 
one will cause the old one to disappear. To delete the currently displayed 
illustration without displaying a new one, an empty file name and position 
255 must be used.

	// Displays the Comodo Kafra illustration in lower right corner.
	cutin("kafra_07", 2);

	// Typical way to end a script, which displayed an illustration during a
	// dialog with a player.
	mes("See you.");
	close2();
	cutin("", 255);
	end;

 

I'm good to work with designers, but scripts I still have a lot to learn! I have many ideas, but lack knowledge to apply them!

I will follow your advice, and do some tests with cuttins, i have some ideas in my mind!

 

PS: About sql query (t_event_points), I was a long time without working with ragnarok scripts and sql I'm learning that period in college, before that I never needed to work with sql, always had a variable like #points, but when I tried to create a ranking I saw it would be a better option learn how to work with sQL, and you helped me a lot! xP tyvm

 

I understand, back in time I did my ranking with #vars and a sort method I did, but sql is easier and more powerful, and machines (servers) today are very powerful too and cheap.

Share this post


Link to post
Share on other sites
  • 0

Any news?

@ZelosAvalon

working...

 

daily_01.jpg

[uPDATE]

 

I'm working on it now, now just need to confirm the password, because I'm having some mistakes, I'm working on this code: RewardSystem

 

this code was for rathena emulator and i got some errors when try to modify to hercules, if someone wants to help me, i'll share the system when i finish with PSD.

 

daily_01.jpg

 

NEXT>

 

daily_02.jpg

 

PS: images may change, this was one of the thousands of ideas that I have!

Share this post


Link to post
Share on other sites
  • 0

 

Any news?

@ZelosAvalon

working...

 

daily_01.jpg

[uPDATE]

 

I'm working on it now, now just need to confirm the password, because I'm having some mistakes, I'm working on this code: RewardSystem

 

this code was for rathena emulator and i got some errors when try to modify to hercules, if someone wants to help me, i'll share the system when i finish with PSD.

 

daily_01.jpg

 

NEXT>

 

daily_02.jpg

 

PS: images may change, this was one of the thousands of ideas that I have!

Wow impressive! mate are you able to share the PSD?

Share this post


Link to post
Share on other sites
  • 0

 

 

Any news?

@ZelosAvalon

working...

 

daily_01.jpg

[uPDATE]

 

I'm working on it now, now just need to confirm the password, because I'm having some mistakes, I'm working on this code: RewardSystem

 

this code was for rathena emulator and i got some errors when try to modify to hercules, if someone wants to help me, i'll share the system when i finish with PSD.

 

daily_01.jpg

 

NEXT>

 

daily_02.jpg

 

PS: images may change, this was one of the thousands of ideas that I have!

Wow impressive! mate are you able to share the PSD?

 

yes I'll, I'm finishing some adjustments and will share it soon!

Share this post


Link to post
Share on other sites
  • 0

Looking good there! Maybe when you're done, we can also share it on MC? :D

 

new release:

 

LOG_IN_REWARDS_NEW.jpg

 

I'll share, so I finished, I'm just testing the functionality with the script, i use an script made for rathena, if someone wants to help to merge to Hercules this script: Daily_Reward_System

 

excuse my lack of information, but what is MC? :swt3:

Edited by ZelosAvalon

Share this post


Link to post
Share on other sites
  • 0

Released: midgard-community

 

PS: when I get a code that works with hercules i'll share here along with the code, for now I'm working on it, just the illust's were released

 

@Mysterious

@rokimoki

@Eternity

@True Zeal

Edited by ZelosAvalon

Share this post


Link to post
Share on other sites
  • 0

Released: midgard-community

 

PS: when I get a code that works with hercules i'll share here along with the code, for now I'm working on it, just the illust's were released

 

@Mysterious

@rokimoki

@Eternity

@True Zeal

Sorry, there is a problem

We could not locate the item you are trying to view.

Error code: 2D161/2

Share this post


Link to post
Share on other sites
  • 0

 

Released: midgard-community

 

PS: when I get a code that works with hercules i'll share here along with the code, for now I'm working on it, just the illust's were released

 

@Mysterious

@rokimoki

@Eternity

@True Zeal

Sorry, there is a problem

We could not locate the item you are trying to view.

Error code: 2D161/2

hmm ?

 

the error occurred when you try to open the link or download?

 

Here's working normally!

 

 

 

Share this post


Link to post
Share on other sites
  • 0

Isn't working would be great you can attach those images and script? and btw? why not using the Daily Rewards Latest script?

The last version was 1.7B

 

https://github.com/Stolao/Npc_Release/blob/master/Daily_Reward/DailyReward.txt

 

Old revision script was buggy. it would be great you can update too.

 

I need to know what isn't working, the download?

 

and note i only share the psd for illust's i'm still working on script, cuz this script is for rathena

Edited by ZelosAvalon

Share this post


Link to post
Share on other sites
  • 0

 

Isn't working would be great you can attach those images and script? and btw? why not using the Daily Rewards Latest script?

The last version was 1.7B

 

https://github.com/Stolao/Npc_Release/blob/master/Daily_Reward/DailyReward.txt

 

Old revision script was buggy. it would be great you can update too.

 

I need to know what isn't working, the download?

 

and note i only share the psd for illust's i'm still working on script, cuz this script is for rathena

Where's the PSD?

Share this post


Link to post
Share on other sites
  • 0

 

 

Isn't working would be great you can attach those images and script? and btw? why not using the Daily Rewards Latest script?

The last version was 1.7B

 

https://github.com/Stolao/Npc_Release/blob/master/Daily_Reward/DailyReward.txt

 

Old revision script was buggy. it would be great you can update too.

 

I need to know what isn't working, the download?

 

and note i only share the psd for illust's i'm still working on script, cuz this script is for rathena

Where's the PSD?

 

PSD here: https://www.midgard-community.com/forums/files/file/341-ragnarok-online-daily-reward/

Share this post


Link to post
Share on other sites
  • 0

 

 

 

Isn't working would be great you can attach those images and script? and btw? why not using the Daily Rewards Latest script?

The last version was 1.7B

 

https://github.com/Stolao/Npc_Release/blob/master/Daily_Reward/DailyReward.txt

 

Old revision script was buggy. it would be great you can update too.

 

I need to know what isn't working, the download?

 

and note i only share the psd for illust's i'm still working on script, cuz this script is for rathena

Where's the PSD?

 

PSD here: https://www.midgard-community.com/forums/files/file/341-ragnarok-online-daily-reward/

 

            Sorry, there is a problem

        

        

            We could not locate the item you are trying to view.

        

        

 

            Error code: 2D161/2

        

        

    

    

        

 

            

                Contact Us

            

 

 

 

 

Kindly please, post an attachement here instead posting at the Midgard-Community?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.