Jump to content
  • 0

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


Question

Posted

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 ?

 

4 answers to this question

Recommended Posts

  • 0
Posted
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

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