• 0
Sign in to follow this  
Rizz

Adding script on usable item which makes the user randomly dies.

Question

Hi, I have a problem in adding item script. I intend to make a certain item could kill the user for certain chance ( for event purpose ).

12233,Kvass,Kvass,0,20,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ skilleffect "AC_CONCENTRATION",0; atcommand "@kill",50; },{},{}

I want to make this Kvass could instakill the user for 50% chance.

I hope someone can help, thanks anyway 🙂

 

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
2 hours ago, Haruka Mayumi said:

percentheal -100,-100;

use unitkill() instead.  percentheal aren't a good example although it do the same trick.

{ skilleffect "AC_CONCENTRATION",0; if (rand(100) < 50) unitkill getcharid(3); },{},{}

 

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 1
12233,Kvass,Kvass,0,20,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ skilleffect "AC_CONCENTRATION",0; if(rand(100)<50) percentheal -100,-100; },{},{}

 

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this