Jump to content
  • 0

How to make Tao Gunka Scrolls and Orc Lord Scroll can increase the remaining time? (Re-Open)


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Hello,

as the title.. How can I make both this scroll can increase the remaining time? Like AGI scroll and Blessing Scroll did? 

Right now, after we consume 1st time.. We must wait until the times up to consume again.. If we consume within the remaining time.. The scroll will be consumed and nothing happen..

Below is the itemscript of both scrolls :

 

specialeffect2 EF_LIGHTSPHERE;
bonus_script "{ bonus bMaxHPrate,100; bonus bDefRate,-50; bonus bMdefRate,-50; }",180,0,0,SI_MVPCARD_TAOGUNKA;
specialeffect2 EF_LIGHTSPHERE;
bonus_script "{ bonus bShortWeaponDamageReturn,30; }",180,0,0,SI_MVPCARD_ORCLORD;


Edited Script as Scanty told: 

 

specialeffect2 EF_LIGHTSPHERE;
bonus_script "{ bonus bMaxHPrate,100; bonus bDefRate,-50; bonus bMdefRate,-50; }",180,1024,0,SI_MVPCARD_TAOGUNKA;
specialeffect2 EF_LIGHTSPHERE;
bonus_script "{ bonus bShortWeaponDamageReturn,30; }",180,1024,0,SI_MVPCARD_ORCLORD;


Thank you in advance..

Edited by rakuzas
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  70
  • Reputation:   21
  • Joined:  11/08/15
  • Last Seen:  

stackable:

{  bonus_script "{ bonus bMaxHPrate,100; bonus bDefRate,-50; bonus bMdefRate,-50; }",180,2048,0,SI_MVPCARD_TAOGUNKA; }

increase remaning time:

{ bonus_script "{ bonus bMaxHPrate,100; bonus bDefRate,-50; bonus bMdefRate,-50; }",180,1024,0,SI_MVPCARD_TAOGUNKA;}

 

doc/script_commands.txt 

 

*bonus_script "<script code>",<duration>{,<flag>{,<type>{,<status_icon>{,<char_id>}}}};

This command will attach a script to a player for a given duration, in seconds.
After that time, the script will automatically expire. The same bonus cannot be
stacked. By default, this bonus will be stored on `bonus_script` table when player
logs out.

Flags (bitmask):
	1   : Remove when dead.
	2   : Removable by Dispell.
	4   : Removable by Clearance.
	8   : Remove when player logs out.
	16  : Removeable by Banishing Buster.
	32  : Removable by Refresh.
	64  : Removable by Luxanima.
	128 : Remove when Madogear is activated or deactivated.
	256 : Remove when receive damage.
	512 : Script is permanent, cannot be cleared by bonus_script_clear.
	1024: Force to replace duplicated script by expanding the duration.
	2048: Force to add duplicated script. This flag cannot be stacked with 1024,
	      if both are defined, 1024 will be checked first and ignore this flag.

Types:
	This will be used to decide negative or positive buff for 'debuff_on_logout'.
	0: Ignore the buff type and won't be removed if the flag is not &8 (Default)
	1: Buff
	2: Debuff

Status_icon: See "Status Icon" section in 'db/const.txt'. Default is SI_BLANK (-1).

 

Edited by Scanty
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Thank you! /thx 

EDIT : 

I re-open this question because when clicked the remaining time does not stack.. Then it consume the scroll.. Below is my script : 

 

specialeffect2 EF_LIGHTSPHERE;
bonus_script "{ bonus bMaxHPrate,100; bonus bDefRate,-50; bonus bMdefRate,-50; }",180,1024,0,SI_MVPCARD_TAOGUNKA;


Which part I do wrong? Already restart the server btw..

Edited by rakuzas
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  70
  • Reputation:   21
  • Joined:  11/08/15
  • Last Seen:  

specialeffect2 EF_LIGHTSPHERE;
bonus_script "{ bonus bMaxHPrate,100; bonus bDefRate,-50; bonus bMdefRate,-50; }",180,1024,0,SI_MVPCARD_TAOGUNKA;

It's only expand the duration, for example

bonus_script "{ bonus bMaxHPrate,100; bonus bDefRate,-50; bonus bMdefRate,-50; }",5,1024,0,SI_MVPCARD_TAOGUNKA;

The effect will end in 5sec, but if i use the item when i have 1 sec remaning to end the effect, that script will add 5 more sec.

But if i use 2 at the same time, the time duration will not stack, exm: i have 4 sec remaning and i use again the time, i got 1 sec because i already have 4 sec . sorry if i confuse you. I'm learning english :(

Edited by Scanty
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Hmmm.. So it not just me then? Or.. It does something config related in conf folder? Like cash food item.. Have setting which delayed the consume between the cash food.. Last time I tried making 2048.. Only effect stack.. Not time.. My player HP keep adding with Tao Guna Scroll.. Luckily I'm online after updating my server.. And immediately reset the item_db..

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