Jump to content
  • 0

change the entrace fee to cashpoint


Question

Posted (edited)

 

how can change the entrace fee to cashpoint i try to change the entrace fee to cashpoint but i got error.

 

this is the orginal script

        set .rentitemid, 7160; 

 

replace this

    set @Currency$,"#CASHPOINTS";

the entrace free prize is 250cashpoints 

 

idontknow how to change this pls help me

Edited by youtube

7 answers to this question

Recommended Posts

Posted

change

if ( zeny < getd(".group"+ .@group +"cost") * .@amount ) {
if ( zeny < getd(".group"+ .@group +"cost") * .@amount ) end;
if ( zeny < getvariableofnpc(.rentcost, "MVP Summoner") ) {
if ( zeny < getvariableofnpc(.rentcost, "MVP Summoner") ) end;

to

if ( #CASHPOINTS < getd(".group"+ .@group +"cost") * .@amount ) {
if ( #CASHPOINTS < getd(".group"+ .@group +"cost") * .@amount ) end;
if ( #CASHPOINTS < getvariableofnpc(.rentcost, "MVP Summoner") ) {
if ( #CASHPOINTS < getvariableofnpc(.rentcost, "MVP Summoner") ) end;

 

 

then set your cost here

set .rentcost, 1000000; 
Posted

how can i change i try to change 

if ( zeny < getd(".group"+ .@group +"cost") * .@amount ) {
if ( zeny < getd(".group"+ .@group +"cost") * .@amount ) end;

to 

if ( #CASHPOINTS < getd(".group"+ .@group +"cost") * .@amount ) {
if ( #CASHPOINTS < getd(".group"+ .@group +"cost") * .@amount ) end;
Posted

Is it possible that your "Cashpoints" can be converted into an item for example "Cash Credit" so that your code would get simpler?

 

set .rentitemid, 7160;

So that you just have to replace the ID of the item above to that ID number of the Cash Credit.

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