Jump to content
  • 0

Credits to Zeny and Zeny to Credits


Question

7 answers to this question

Recommended Posts

Posted

if( countitem(x) )
{
delitem x,1;
set Zeny, Zeny+n;
}

if( Zeny > n )
{
getitem x,1;
set Zeny, Zeny-n;
}

sir full script please?

Posted (edited)


prontera,158,192,3 script Credits Exchanger 467,{

mes "What can i do for yout today?";
switch(select("Credits to Zeny:Zeny To Credits")){
case 1:
if( countitem(.x) )
{
if ((zeny+.n)>=.maxzeny)
{
delitem .x,1;
set Zeny, Zeny+.n;
}
else{
mes "You cant Convert More Credits cause it might exceed the max zeny of the server";
}
}
close;
break;
case 2:
if( Zeny > n )
{
getitem .x,1;
set Zeny, Zeny-.n;
}
close;
break;
}


OnInit:
set .x,7227;//change 7227 to your credits item number
set .n,10000000;//set your zeny per credits 10m is default
set .maxzeny,1000000000;//set the max zeny of your server 1b is default
end;
}

its not that perfect though kindly try it ill get back to your later gotta go for now. im attending a birthday for tonight

Edited by icabit
Posted

prontera,158,192,3 script Credits Exchanger 467,{

mes "What can i do for yout today?";
switch(select("Credits to Zeny:Zeny To Credits")){
case 1:
if( countitem(.x) )
{
if ((zeny+.n)>=.maxzeny)
{
delitem .x,1;
set Zeny, Zeny+.n;
}
}
break;
case 2:
if( Zeny > n )
{
getitem .x,1;
set Zeny, Zeny-.n;
}
}
break;
OnInit:
set .x,7227;//change 7227 to your credits item number
set .n,10000000;//set your zeny per credits 10m is default
set .maxzeny,1000000000;//set the max zeny of your server 1b is default
end;
}

its not that perfect though kindly try it ill get back to your later gotta go for now. im attending a birthday for tonight

Thanks i'm gonna test it :)

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