Jump to content

Utility: Kafra points converter


Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   5
  • Joined:  04/07/14
  • Last Seen:  

File Name: Kafra points converter

File Submitter: zeshan321

File Submitted: 17 Jun 2014

File Category: Utilities

Content Author: zeshan321


This script allows users to convert their kafra points to any item set in the script.



Click here to download this file

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   4
  • Joined:  11/23/12
  • Last Seen:  

thanks for the script..can i use cashpoints instead of kafrapoints?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

thanks for the script..can i use cashpoints instead of kafrapoints?

Sure you can but you need to change the variable..

What i mean is.. maybe from @points(Kafra_Points) into @cash(Cash_Points)..

Correct me if im were wrong.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Yea, replace this part

	.@amount2 = (.@amount * .NP); 
	.@points = (#KAFRAPOINTS);
	if (.@amount2 > .@points) {
		mes .NPC$;
		mes "You do not have enough points!";
		close;
	}
	if (#KAFRAPOINTS == 0) {
		mes .NPC$;
		mes "You have 0 kafra points!";
		close;
	}
	mes .NPC$;
    mes "Here you go!";
    set #KAFRAPOINTS,#KAFRAPOINTS - .@amount2;
    getitem .ID,.@amount;
    close;

into this

	.@amount2 = (.@amount * .NP); 
	.@points = (#CASHPOINTS);
	if (.@amount2 > .@points) {
		mes .NPC$;
		mes "You do not have enough points!";
		close;
	}
	if (#CASHPOINTS == 0) {
		mes .NPC$;
		mes "You have 0 kafra points!";
		close;
	}
	mes .NPC$;
    mes "Here you go!";
    set #CASHPOINTS,#CASHPOINTS - .@amount2;
    getitem .ID,.@amount;
    close;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   4
  • Joined:  11/23/12
  • Last Seen:  

 

thanks for the script..can i use cashpoints instead of kafrapoints?

Sure you can but you need to change the variable..

What i mean is.. maybe from @points(Kafra_Points) into @cash(Cash_Points)..

Correct me if im were wrong.

 

 

 

 

Yea, replace this part

	.@amount2 = (.@amount * .NP); 
	.@points = (#KAFRAPOINTS);
	if (.@amount2 > .@points) {
		mes .NPC$;
		mes "You do not have enough points!";
		close;
	}
	if (#KAFRAPOINTS == 0) {
		mes .NPC$;
		mes "You have 0 kafra points!";
		close;
	}
	mes .NPC$;
    mes "Here you go!";
    set #KAFRAPOINTS,#KAFRAPOINTS - .@amount2;
    getitem .ID,.@amount;
    close;

into this

	.@amount2 = (.@amount * .NP); 
	.@points = (#CASHPOINTS);
	if (.@amount2 > .@points) {
		mes .NPC$;
		mes "You do not have enough points!";
		close;
	}
	if (#CASHPOINTS == 0) {
		mes .NPC$;
		mes "You have 0 kafra points!";
		close;
	}
	mes .NPC$;
    mes "Here you go!";
    set #CASHPOINTS,#CASHPOINTS - .@amount2;
    getitem .ID,.@amount;
    close;

 

ok will try it on my test server..

Link to comment
Share on other sites

  • 6 years later...

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

On 10/25/2014 at 3:11 PM, Radian said:

Yea, replace this part


	.@amount2 = (.@amount * .NP); 
	.@points = (#KAFRAPOINTS);
	if (.@amount2 > .@points) {
		mes .NPC$;
		mes "You do not have enough points!";
		close;
	}
	if (#KAFRAPOINTS == 0) {
		mes .NPC$;
		mes "You have 0 kafra points!";
		close;
	}
	mes .NPC$;
    mes "Here you go!";
    set #KAFRAPOINTS,#KAFRAPOINTS - .@amount2;
    getitem .ID,.@amount;
    close;

into this


	.@amount2 = (.@amount * .NP); 
	.@points = (#CASHPOINTS);
	if (.@amount2 > .@points) {
		mes .NPC$;
		mes "You do not have enough points!";
		close;
	}
	if (#CASHPOINTS == 0) {
		mes .NPC$;
		mes "You have 0 kafra points!";
		close;
	}
	mes .NPC$;
    mes "Here you go!";
    set #CASHPOINTS,#CASHPOINTS - .@amount2;
    getitem .ID,.@amount;
    close;

hi sir how about item to kafrapoints?

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