Jump to content
  • 0

Request for cashmap


wOni

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   2
  • Joined:  04/20/13
  • Last Seen:  

basically like @itemmap (https://rathena.org/board/topic/56124-package-getitem-map-itemmap)

but it use bindatcmd.

 

@cashmap for all character in map

 

ex. @cashmap <prontera> <20>

all players in prontera will get 20 cash.


Thank you for the help

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   2
  • Joined:  04/20/13
  • Last Seen:  

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  68
  • Reputation:   1
  • Joined:  10/16/12
  • Last Seen:  

what if you make an usable/ clickable items like [ Cash Giftbox or what ever you want ] 

 

and @itemmap "GiftboxID'' 

then the giftbox script is 

IDNUMBER,Cash_GIFTBOX,Cash_GIFTBOX,0,10,,30,,,,,0xFFFFFFFF,7,2,,,,,,{ set #CASHPOINTS, #CASHPOINTS+1;  },{},{}


This is only a SUGGESTION :P
 

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:  


- script atcmd_example -1,{

OnInit:

bindatcmd "cashmap",strnpcinfo(3)+"::OnAtcommand";

end;

OnAtcommand:

$@cashmap_map$ = .@atcmd_parameters$[0];

$@cashmap_amount = atoi( .@atcmd_parameters$[1] );

if ( getmapusers( $@cashmap_map$ ) <= 0 ) {

dispbottom "Invalid map / no players.";

}

else if ( $@cashmap_amount <= 0 ) {

dispbottom "Invalid amount of cash.";

}

else {

addrid(0);

if ( strcharinfo(3) == $@cashmap_map$ ) {

#CASHPOINTS += $@cashmap_amount;

dispbottom "Gained "+$@cashmap_amount+" Cash points.";

}

}

end;

}

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