Jump to content

Quests, Games: Slot Machine With Random Reward and Running at Spesified OnClock


Recommended Posts


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

Slot Machine With Random Reward and Running at Spesified OnClock


Hi All,

Here i want share with you my modification script from @GmOcean 

Thanks.

For GM access level change at line 3

Quote

if( getgmlevel() == 99 ) {
        mes "Welcome Administrator.","What would you like to do?";
        menu "Play Game",-,"Change Slot Machine Mode",iMode;
        next;
        }

for item/zeny payment change at line 235 ~ 238

Quote

// Payment Settings
// Payment Type
// 0 = Zeny, 1 = Item, 2 = Zeny&Item
.payment = 1;
// [0] = Zeny, [1] = Item ID, [2] = Item Amount;
setarray .ssm_payment[0],100000,7539,2; // Single Slot Machine Payment Price
setarray .tsm_payment[0],100000,7539,2; // Triple Slot Machine Payment Price

for OnClock, change at line 191~196

Quote

OnClock0400:
OnClock0830:
OnClock1200:
OnClock1600:
OnClock2000:
OnClock0000:

This Slot Machine will disapear after 5 Minutes

If you want replace, change it at line 201

Quote

sleep 300000;

For random reward, change at line 31~76 and 106~151

Quote

switch(rand(15)) {
                case 0:
                    getitem 603,5;
                    break;
                case 1:
                    getitem 617,5;    
                    break;
                case 2:
                    getitem 644,5;    
                    break;
                case 3:
                    getitem 616,1;
                    break;
                case 4:
                    getitem 31053,1;
                    break;
                case 5:
                    getitem 18571,1;
                    break;
                case 6:
                    getitem 7539,100;
                    break;
                case 7:
                    getitem 17271,1;
                    break;
                case 8:
                    getitem 17272,1;
                    break;
                case 9:
                    getitem 17273,1;
                    break;
                case 10:
                    getitem 17274,1;
                    break;
                case 11:
                    getitem 17275,1;
                    break;
                case 12:
                    getitem 12208,5;
                    break;
                case 13:
                    getitem 12103,2;
                    break;
                case 14:
                    getitem 12259,1;
                    break;
                }

Special thanks to

1. @GmOcean for slot machine script

2. @Emistry for enable hideoffnpc and hideonnpc

3. @Nova for inspired slot machine function


 

Edited by hendra814
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

this is what im looking for ^_^

 

BTW a little bit of bug when testing to it

 

if the npc is gone and the slot machine event is over the players can continue spinning with out the npc

 

the can keep the dialog box and spin as many as they can

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

5 hours ago, Quesooo said:

this is what im looking for ^_^

 

BTW a little bit of bug when testing to it

 

if the npc is gone and the slot machine event is over the players can continue spinning with out the npc

 

the can keep the dialog box and spin as many as they can

Okay, I'll try to fix it and i will notice you if already update.

Edited by hendra814
  • Like 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

16 hours ago, hendra814 said:

Okay, I'll try to fix it and i will notice you if already update.

thank you

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

2 hours ago, Quesooo said:

thank you

i'm already fix the script, please download and test the new script.

Thanks

  • Like 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.08
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

another report player gets stock if the gold coins is not enough

 

also player stock after the event over

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

13 hours ago, Quesooo said:

another report player gets stock if the gold coins is not enough

 

also player stock after the event over

already tried, mine works well

this for not enough payment

Spoiler

 

screenrAthena018.thumb.jpg.6d1baa6a6f10045c441af0c32eeba7d6.jpg

screenrAthena019.thumb.jpg.718bb8dbba2b0e30eb8b6bbebc1174ea.jpg

 

 

and this for slot machine when already finished

Spoiler

screenrAthena020.thumb.jpg.e327e051a1520908abd8a5f039f22658.jpg

 

 

Edited by hendra814
  • Like 1
Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  05/24/20
  • Last Seen:  

my machine slot its costing only "to play" im trying to change all the costs and nothing works

Link to comment
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

×
×
  • Create New...