Jump to content
  • 0
Luffy

[Request] A Daily Lucky Spin Like this?

Question

37 answers to this question

Recommended Posts

  • 0

Judging by that, the arrow just spins around. With my cutin the items spin around. But meh, I'm not making the script so either way pick which ever works for you guys.

Share this post


Link to post
Share on other sites
  • 0

I was a too lazy to get the correct Item IDs/Aegis Names, but here it's, as far as I've tested it's working fine. I've used @@GmOcean cutins.

It is in a function so you can handle its requirements in the way you want. just callfunc "F_LuckSpin"; The example in the end uses an on login method that runs once per day per account.

 

function	script	F_LuckSpin	{	// Prizes ID, Prize Ammount	// You can use IDs:	//		0 - Nothing	// 		1 - Zeny	setarray .@Prizes[0],		0, 0,		1, 100000,		502, 2,		503, 3,		504, 4,		505, 5,		506, 6,		507, 7,		508, 8,		509, 9,		510, 10,		511, 11,		512, 12,		513, 13,		514, 14,		515, 15,		516, 16,		517, 17,		518, 18,		519, 19,		520, 20,		521, 21,		522, 22,		523, 23;		.@size = getarraysize(.@Prizes)/2;	.@fullSpins = rand(1, 3);	.@stop = rand(0, .@size);		for (.@i = 0; .@i < .@fullSpins; .@i++) {		for (.@j = 0; .@j < .@size; .@j++) {			cutin "spin_" + (.@j + 1), 4;			sleep2 50;		}	}		for (.@i = 0; .@i < .@stop; .@i++) {		cutin "spin_" + (.@i + 1), 4;		sleep2 50 + 30 * .@stop; // Makes it go slower each time	}		.@pId = .@Prizes[.@stop * 2];	.@pAm = .@Prizes[(.@stop * 2 + 1)];		if (.@pId == 0)		return;	else if (.@pId == 1)		Zeny += .@pAm;	else		getitem .@pId, .@pAm;		sleep2 500;	cutin "", 255;		return;}-	script	DailyLuckSpin	-1,{OnPCLoginEvent:	.@today = atoi(gettimestr("%Y%m%d",10));		if (#LastSpinDay < .@today) {		callfunc "F_LuckSpin";		#LastSpinDay = .@today;	}	end;}

If someone rans into any problem, let me know.

Share this post


Link to post
Share on other sites
  • 0

well any news? did someone already tried what @@KirieZ post?

 

okay i tried it, and its working.

 

i will improve the design.

Edited by Luffy

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.