Jump to content
  • 0

Mini and MVP Boss CashPoint


KCritz

Question


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  12/23/12
  • Last Seen:  

request a script please.

a script that when you kill a mini or mvp boss you can gain a cashpoint and its a random for every MINIBOSS can gain around 50-150 and then every MMVP can gain around 100-500

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

-    script    gvubhnji    -1,{
OnNPCKillEvent:
   if( killedrid && ( getmonsterinfo(killedrid, 21) & 0x0020 ) && ( killedrid <= 3000 ) ) {
       if( getmonsterinfo(killedrid, 22) )
           .@R = rand( 100, 500 );//-- MVP
       else
           .@R = rand( 50, 150 );//-- MINIBOSS
       #CASHPOINTS = #CASHPOINTS + .@R;
       dispbottom "Gained : "+ .@R +" points. Total : "+ #CASHPOINTS +" points."; }
   end;
}

Link to comment
Share on other sites

  • 2

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


- script gvubhnji -1,{

OnNPCKillEvent:

if( getmonsterinfo(killedrid, 21) & 0x0020 ) {

if( getmonsterinfo(killedrid, 22) )

.@R = rand( 100, 500 );//-- MVP

else

.@R = rand( 50, 150 );//-- MINIBOSS

}

else

.@R = rand( 10,100 );//-- normal monster

#CASHPOINTS = #CASHPOINTS + .@R;

dispbottom "Gained : "+ .@R +" points. Total : "+ #CASHPOINTS +" points.";

end;

}

  • Upvote 1
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  12/23/12
  • Last Seen:  

thanks Capuche

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   4
  • Joined:  06/20/13
  • Last Seen:  

how if include normal monster also?

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  212
  • Reputation:   5
  • Joined:  01/24/12
  • Last Seen:  

On 10/20/2013 at 9:23 PM, Capuche said:

 



 

- script gvubhnji -1,{

OnNPCKillEvent:

if( getmonsterinfo(killedrid, 21) & 0x0020 ) {

if( getmonsterinfo(killedrid, 22) )

.@R = rand( 100, 500 );//-- MVP

else

.@R = rand( 50, 150 );//-- MINIBOSS

}

else

.@R = rand( 10,100 );//-- normal monster

#CASHPOINTS = #CASHPOINTS + .@R;

dispbottom "Gained : "+ .@R +" points. Total : "+ #CASHPOINTS +" points.";

end;

}

 

capuche how to include 1 party in your script??

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