Jump to content
  • 0

convert that script from zeny to item


cedric0109

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  04/26/12
  • Last Seen:  

Hi Newbie Here

I'm trying to make convert that script from zeny to item 

i want to put it on my RO so players can play that

the game is simple

you bet your item ( ex. TCG ) then you guess the number from 1 - 100 if you loses your TCG will be stored until someone guess the number right

Jackpot game but still i cant do it right can someone help me

thats the sample im basing of

jackpot.txt

Edited by Emistry
Please use a Proper Topic Title!
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   599
  • Joined:  11/25/11
  • Last Seen:  

Support on this session must be in english.
For any other language, use one of these subforums.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  04/26/12
  • Last Seen:  

16 hours ago, Haziel said:

Support on this session must be in english.
For any other language, use one of these subforums.

sorry wait ill translate

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2351
  • Joined:  10/28/11
  • Last Seen:  

I think the script itself look fine, just a some bug that can be exploit. 


	mes "[Leon]";
	mes "You guessed the correct number!";
	next;
	mes "[Leon]";
	mes "Congratulations! You have won the Jackpot of ^008800"+$JackpotAmount+" zeny^000000!";
	set zeny,zeny+$JackpotAmount;
	announce "[ Jackpot ]: "+strcharinfo(0)+" has won the Jackpot of "+$JackpotAmount+" zeny !!",0x76EE00;
	set $JackpotAmount,0;
	close2;
	announce "[ Jackpot ]: The number that won the Jackpot was "+$JackpotNumber+".",0x76EE00;
	set $JackpotNumber,0;
	sleep2 5000;
	announce "[ Jackpot ]: To win Jackpot come chip in some zeny and take a guess!",0x76EE00;
	end;

change to

	input .@JackpotPick;
	if( .@JackpotPick < 1 || .@JackpotPick > 100 ) { 
		next; 
		mes "[Leon]"; 
		mes "You must enter a number between ^FF00001^000000 and ^FF0000100^000000. I do not give refunds!";
		goto JackpotStart; 
	}
	else {
		mes "["+strcharinfo(0)+"]";
		mes "My number is ^880000"+.@JackpotPick+"^000000!";
		next;
		if(.@JackpotPick!=$JackpotNumber) { 
			mes "[Leon]"; 
			mes "You guessed the wrong number."; 
			mes "You can always try again!"; 
			goto JackpotStart; 
		}
		mes "[Leon]";
		mes "Congratulations! You have won the Jackpot of ^008800"+$JackpotAmount+" zeny^000000!";
		set Zeny,Zeny + $JackpotAmount;
		announce "[ Jackpot ]: "+strcharinfo(0)+" has won the Jackpot of "+$JackpotAmount+" zeny !!",0x76EE00;
		announce "[ Jackpot ]: The number that won the Jackpot was "+$JackpotNumber+".",0x76EE00;
		set $JackpotAmount,0;
		set $JackpotNumber,0;
		close2;
		announce "[ Jackpot ]: To win Jackpot come chip in some zeny and take a guess!",0x76EE00;
		end;
	}

You just need more practice and testing on the script.

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
Answer this question...

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