Jump to content
  • 0

Cashpoints to PODS


Reducto

Question


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

How to remove the input thing?

ex. They have 20 Cashpoints it will automatically trade to 20 PODS?

Edited by Cuspid
Link to comment
Share on other sites

12 answers to this question

Recommended Posts


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

just edit the script abit...

change what to be delete into what to gain..

change what to gain into what to delete

prontera,155,181,5 script Sample 757,{
getitem 7227,#CASHPOINTS;
dispbottom "You have gained "+#CASHPOINTS+" POD.";
set #CASHPOINTS,0;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  12/18/11
  • Last Seen:  

Why not make a Cash Shop which sells PODS? Easiest way to do~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

Why not make a Cash Shop which sells PODS? Easiest way to do~

I want it in a unique way. :)

Thanks for this dude. :D

How to remove the input thing?

ex. They have 20 Cashpoints it will automatically trade to 20 PODS?

Edited by Cuspid
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Well, try this.

map,x,y,z script POD Trader SpriteID,{
set .@podid, 1234; // Item ID of POD

set .@podamt, countitem(.@podid);
if ( .@podamt == 0 ) end;
delitem .@podid, .@podamt;
set #CASHPOINTS, #CASHPOINTS + .@podamt;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

Well, try this.

map,x,y,z script POD Trader SpriteID,{
set .@podid, 1234; // Item ID of POD

set .@podamt, countitem(.@podid);
if ( .@podamt == 0 ) end;
delitem .@podid, .@podamt;
set #CASHPOINTS, #CASHPOINTS + .@podamt;
end;
}

Sorry dude, its not working.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Its working. Have added a bottom message to see how many Cash Point you've gained and make sure you change the item id for POD.

prontera,100,100,3 script POD Trader 100,{
set .@podid, 671; // Item ID of POD

set .@podamt, countitem(.@podid);
if ( .@podamt == 0 ) end;
delitem .@podid, .@podamt;
set #CASHPOINTS, #CASHPOINTS + .@podamt;
dispbottom "You have gained " + .@podamt + " Cash Points.";
end;
}

Link to comment
Share on other sites


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

prontera,155,181,5 script Sample 757,{
set #CASHPOINTS,#CASHPOINTS + countitem( 7227 );
dispbottom "You have gained "+countitem( 7227 )+" Cash Points.";
delitem 7227,countitem( 7227 );
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

How about

prontera,155,181,5 script Sample 757,{
set #CASHPOINTS,#CASHPOINTS + countitem( 7227 );
dispbottom "You have gained "+countitem( 7227 )+" Cash Points.";
delitem 7227,countitem( 7227 );
end;
}

How about in a reverse way?

like cashpoints to PODS, not PODS to cash.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  231
  • Reputation:   9
  • Joined:  12/16/11
  • Last Seen:  

Thanks Emistry you are the best., its working now. /ok

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

I copied your script Mr. Emistry but once I use @loadnpc, nothing appears in the exact coordinates =/

Link to comment
Share on other sites


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

I copied your script Mr. Emistry but once I use @loadnpc, nothing appears in the exact coordinates =/

obviously..there is ERROR...

go check ur mapserver...

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