Jump to content
  • 0

[Solved]How to add ratio


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

How to make this skull trader ratio 

to 1points : 3skulls needed

 

	mes "I'm collecting dead people skull.";
	mes "Hmm... well well looks like you have something there aye!";
	mes " ";
	mes " ";
	mes " ";
	mes "Let me just check it.............";
	next;
	mes "You have "+( .@skulls = countitem(7420) )+" skulls";
	mes "And";
	mes "You currently have " +#BattlePoints+ " Battle points";
	next;
	if ( !.@skulls ) {
		mes "I don't see any Skulls you have >_< so get LOSS! you wasting my time.";
		close;
	}
	if ( input ( .@amount, 1, .@skulls ) ) {
		mes "invalid amount";
		close;
	}
	delitem 7420, .@amount;
	#BattlePoints= #BattlePoints + .@amount *1;
	dispbottom "[ Cash ] Gained "+( .@amount *1 )+" Points. Total : "+#BattlePoints+" Points.";
	mes "Gained "+( .@amount *1 )+" Points.";
	mes "Total : "+#BattlePoints+" Points.";
	close;
}

oh my god..im so stupid, .@amount *3

i need a break...

solved. 

Edited by Mr BrycE
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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