Jump to content
  • 0

change the entrace fee to cashpoint


youtube

Question


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  171
  • Reputation:   0
  • Joined:  06/19/13
  • Last Seen:  


 

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
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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; 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  171
  • Reputation:   0
  • Joined:  06/19/13
  • Last Seen:  

IS WORK BUT THE SUMMON PAY IS CASH POINT I WANT MASTER ONLY ENTRANCE FEE IS CASHPOINY AND SUMMON FOR MVP IS ZENNY

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

then just simply change / create a new the variable name..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  171
  • Reputation:   0
  • Joined:  06/19/13
  • Last Seen:  

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;
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


if ( Zeny < getd(".group"+ .@group +"cost") * .@amount ) {

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  171
  • Reputation:   0
  • Joined:  06/19/13
  • Last Seen:  

replace your code not workinh

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   4
  • Joined:  07/10/13
  • Last Seen:  

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.

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