Jump to content
  • 0

Converting Item into Kafra Point Script


Question

Posted (edited)

Hi all.. Ermm... First of all.. Im sorry if this topic already exist cuz i did not found a script about item's to kafra point.
Well,what im trying to do here,is Im trying to convert an exist script which is change kafra point into item's.
Now all i want to do is change some code to make the script can change item's into kafra point back

Can someone help me finish this script

 

Well here is the script.. (**I just edit this a liltle until i got stuck on if( #KAFRAPOINTS < 10 )**)
**I dont know what are variable or queries that count the skull**
 

//===== rAthena Script =======================================
//= Converter System
//===== By ===================================================
//= GM Eplison from Reoka-RO
//===== Version ==============================================
//= 1.0
//===== Description ==========================================
//= Convert PvP Skull into Kafra Point
//===== Comments =============================================
//= None....
//============================================================

lunar01,136,211,5	script	Converter#1	10071,{
setarray .@ItemID[0],7420;

for( set .@i,0; .@i < getarraysize( .@ItemID ); set .@i,.@i + 1 )
	set .@Menu$,.@Menu$ + getitemname( .@ItemID[.@i] )+":";
mes "[Miss Converter #3]";
mes "PvP Skull can be change into Kafra Point?!";
mes "Sound's good huh?..?";
mes "Kafra Point can be obtained from";
mes "How long did you Online on RRO";
mes "Each 15 PvP Skull = 1 Kafra Point";
set .@i,( select( .@Menu$ ) - 1 );
if( #KAFRAPOINTS < 10 ){
	mes "Sorry but you didnt have 10 Kafra Points.";
}else{
	mes "How many you want ?";
	mes "Amount : 1 ~ "+( #KAFRAPOINTS / 10 );
	input .@Amount,0,( #KAFRAPOINTS / 10 );
	if( .@Amount ){
		set #KAFRAPOINTS,#KAFRAPOINTS - ( .@Amount * 10 );
		getitem .@ItemID[.@i],.@Amount;
		mes "Done";
	}
}
close;

OnInit:
	   waitingroom "PvPSkull-->KafraPoints",0;
}
Edited by CheckMate

2 answers to this question

Recommended Posts

Posted (edited)

something like this ?

http://upaste.me/501485

This is what im like about you emistry... ^ ^ 

Thanks for the info... I just want to learn more about scripting... hahaha

The variable i mean... Or something you all scripter call it... Hahahahah

**Edit**

How can put an amount of needed item?..?

 

 

// 1 poring coin = 10 cash point

.@item = 7539;

.@rate = 10;
Edited by CheckMate
  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...