Jump to content


Photo

Need help with getstatus script!


  • Please log in to reply
4 replies to this topic

#1 dungpt8782

dungpt8782

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts
  • Emulator:Hercules

Posted 05 May 2017 - 10:46 AM

I want to make the item with this effect:
If Enchant Poison level 10 damage increased 50% when under Enchant Poison status
 
can you help me to make item script like this?
i'm using
if (getskilllv(AS_ENCHANTPOISON) == 10 && getstatus(SC_ENCHANTPOISON) ) {
   bonus2 bAddRace,RC_All,50;
  }
but it will inscrease all element damage after enchant poison.


#2 meko

meko

    Advanced Member

  • Core Developers
  • 52 posts
  • IRC Nickname:meko

Posted 05 May 2017 - 01:32 PM

try bonus2(bAddRace2, RC_All, 50) or bonus2(bMagicAtkEle, Ele_All, 50)


  Want faster replies? try live support


#3 dungpt8782

dungpt8782

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts
  • Emulator:Hercules

Posted 07 May 2017 - 02:24 AM

I think this script check status when wear this item only :(

I tested with this item weared before enchant poison, it dont have effect when i use enchant poison :(



#4 meko

meko

    Advanced Member

  • Core Developers
  • 52 posts
  • IRC Nickname:meko

Posted 19 May 2017 - 02:00 PM

you could make it use doevent() to call an external script and in that script do the check for enchant poison, and call itself with addtimer() with a short delay like 500ms, so it will keep checking


  Want faster replies? try live support


#5 dungpt8782

dungpt8782

    Advanced Member

  • Members
  • PipPipPip
  • 63 posts
  • Emulator:Hercules

Posted 22 May 2017 - 05:16 PM

you could make it use doevent() to call an external script and in that script do the check for enchant poison, and call itself with addtimer() with a short delay like 500ms, so it will keep checking

How can i do it pls?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


This topic has been visited by 21 user(s)