[Daily Reward System]

ZelosAvalon

New member
Messages
218
Points
0
Age
34
Emulator
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 ?
 

 
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.jpg
and after receiving the reward

 
Last edited by a moderator:
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:

Code:
*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;
 
Last edited by a moderator:
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

 
Last edited by a moderator:
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.

 
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!

 
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?

 
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!

 
Looking good there! Maybe when you're done, we can also share it on MC?
default_biggrin.png
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?
default_swt3.gif


 
Last edited by a moderator:
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

 
Last edited by a moderator:
Back
Top