Jump to content
  • 0

Request for cashmap


Question

3 answers to this question

Recommended Posts

Posted

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
 

Posted


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

}

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