Jump to content

Recommended Posts

index.php?app=downloads&module=display&section=screenshot&id=198

File Name: Zeny & Cash Gambler NPC
File Submitter: Aeromesi
File Submitted: 10 Apr 2015
File Category: Quest, Shops, Functions & Algorithms

[Zeny & Cash Gambler NPC v1.2]
Explanation:

/* Zeny & Cash Gambler NPCCreated by: AeromesiVersion 1.21.2 Features:Added in Second Chance Option (Edit .S_Chance to to Enable/Disable the Second Chance)Second chance only applies if you LOSE the gambleEdit .S_ChanceRate to change the % Rate at which players have the opportunity for a Second Chance.Default is set to 50% for a Second Chance and is enabled by default!Also fixed a bug where users could input 0 Zeny or Cash Points, didn't effect anything but the check for an input of 0 needed to be added in.Enjoy 1.2 Hercules! ~ AeromesiVersion: 1.11.1 Features (Massive Update)Control the Winning rates at the bottom of the OnInit.zWinningRate handles the winning rate for Zeny.cWinningRate handles the winning rate for Cash PointsNow you're able to input what you want to bet for Zeny and Cash PointsExample: You have 100 Zeny, you bet 100 Zeny (It takes 100 Zeny from you, in hopes you double your bet, gaining a total of 200 Zeny.Same goes for Cash Points, you spend 50 Cash points in hopes you get 100 Cash Points total.)Special thanks to GmOcean's Script "Slot Machine" for the cutins and wav files for this script.Special thanks to my girlfriend for helping me with the equation, and Max on the Hercules forum for the suggestion!Enjoy another release Hercules!If you like my work, please rep up my profile or consider viewing my Scripting services  */



How to install:
Unrar the attachment "zeny_cash_gambler.rar".
Merge "gambler.grf" with your custom GRF so the sound effects and illustrations display correctly.
Install "zeny_cash_gambler.txt" into your servers NPC folder.
Edit the header of the script to your own map coordinates.

And after that's all done, enjoy!

Remember, if you like my work, it wouldn't hurt to rep me up or view my Scripting Services! ^_^

Click here to download this file

Edited by Aeromesi

Share this post


Link to post
Share on other sites

I had this idea before and I told to Dastgir if he could make it.

 

But my idea is a little bit different. The option to bet with Cash should be the following:

The players can bet using cash, and the NPC will show how many bets was made till now and the amount of cash acumulated..

The player can bet only 5 cash, this way will be fair to everyone.

 

Example:

Total Bets: 5 bets

Total Cash Acumulated: 25 cash

 

And in the end of the month the NPC will give the prize to a player (random).

 

You can do this?

Edited by Yoh Asakura

Share this post


Link to post
Share on other sites

File is ready, please wait until it is approved by @@Mysterious or someone else.

 

Version 1.2 Features:

	Version 1.2	1.2 Features:	Added in Second Chance Option (Edit .S_Chance to Enable/Disable the Second Chance)	Second chance only applies if you LOSE the gamble	Edit .S_ChanceRate to change the % Rate at which players have the opportunity for a Second Chance.	Default is set to 50% for a Second Chance and is enabled by default!	Also fixed a bug where users could input 0 Zeny or Cash Points, didn't effect anything but the check for an input of 0 needed to be added in.	Enjoy 1.2 Hercules! ~ Aeromesi
Edited by Aeromesi

Share this post


Link to post
Share on other sites

@@Aeromesi

What if I put -1000000000 :P

I will get 1 billion xD

I didn't know that, I tested by putting a lot of numbers as the bet:

 

Example:

 

input "2323320230230230230230" and it would limit it down to a somewhat big number, but I think it was the max integer the input command supports, or MAX_ZENY

 

So should I include a check on if inpuit >= 1billion it would say sorry you can't input over 1b Zeny/Cash points? Logging in to skype I'll give you a message :D @@Dastgir

 

I just tested what you stated and if I put -"ANY INTEGER" it returns the "Sorry but you entered "0" Zeny, sorry but that is impossible etc" so you will not gain anything if you input anything at 0 or below 0. If you didn't test my script then shame on you! XD

Edited by Aeromesi

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

×   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.