Jump to content
  • 0

hi is this posible?


Kariton Revolution

Question


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.03
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

Each Player kill will boost your weapon damage and stats.
If you die, you lose half of the stacked kills and power.
The weapon can stacked up to 10 kills for Max Power.

 

on my item_db

Ethereal_Bow,Ethereal_Bow,4,1000000,,50,145, ,5,4,0x000A0848,7,2,34,4,1,1,11,{bonus bMdef,80;bonus bDex,10+(@kill*7);bonus bAllStats,1+(@kill);bonus2 bIgnoreDefRate,RC_DemiHuman,20+@kill;},{dispbottom "[Royal Weapon] Your power is strong. Power:"+@kill;misceffect 182;misceffect 190;specialeffect2 543;},{}

 

how i can connect it to script ? to count the player killed?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   344
  • Joined:  10/17/12
  • Last Seen:  

use

OnPCKillEvent:
if(@kill <10) set @kill,@kill + 1;
OnPCDieEvent:
if(@kill > 1){ set @kill,@kill/2; } else  set @kill,0;

note: this wont check for the weapon

Edited by Stolao
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...