• 0
Sign in to follow this  
dest1n

requesting item script

Question

hello can anyone help me with scripting for this effect ?

1.  - enable to use Magnus Break lvl 10

- every 10 seconds recover 5,000 HP and 100 SP

- If user's base level is lower than 99, every refine level adds str+3 and flee +5

- if user's base level is higherr than 99, every refine level adds str+10 and flee +15

 

thank you

 

 

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0
[email protected] = getrefine();
skill "SM_MAGNUM",10;
bonus2 bHPRegenRate,5000,10000;
bonus2 bSPRegenRate,100,10000;
if(BaseLevel < 99){
	bonus bStr,[email protected]*3;
	bonus bFlee,[email protected]*5;
} else {
	bonus bStr,[email protected]*10;
	bonus bFlee,[email protected]*15;
}

 

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
[email protected] = getrefine();
skill "SM_MAGNUM",10;
bonus2 bHPRegenRate,5000,10000;
bonus2 bSPRegenRate,100,10000;
if(BaseLevel < 99){
	bonus bStr,3*[email protected];
	bonus bFlee,5*[email protected];
} else {
	bonus bStr,10*[email protected];
	bonus bFlee,15*[email protected];
}

 

Share this post


Link to post
Share on other sites
  • 0
On 4/12/2019 at 2:48 PM, crazyarashi said:
[email protected] = getrefine();
skill "SM_MAGNUM",10;
bonus2 bHPRegenRate,5000,10000;
bonus2 bSPRegenRate,100,10000;
if(BaseLevel < 99){
	bonus bStr,3*[email protected];
	bonus bFlee,5*[email protected];
} else {
	bonus bStr,10*[email protected];
	bonus bFlee,15*[email protected];
}

 

thank you, i will try it later . and sorry for the double post

so i tried put this code into my  \db\re\item_combo.txt like this

22178:4352,{ skill "SM_MAGNUM",10; bonus2 bHPRegenRate,5000,10000; bonus2 bSPRegenRate,100,10000; .@r = getrefine(); if(BaseLevel<99){bonus bStr,3*.@r;bonus bFlee,5*.@r;}else{bonus bStr,10*.@r;bonus bFlee,15*.@r;} } 

 everything works fine but for the bonus str and flee every refine are not working for both condition

 

basestats.png

Share this post


Link to post
Share on other sites
  • 0
5 minutes ago, dest1n said:
22178:4352,{ skill "SM_MAGNUM",10; bonus2 bHPRegenRate,5000,10000; bonus2 bSPRegenRate,100,10000; .@r = getrefine(); if(BaseLevel<99){bonus bStr,3*.@r;bonus bFlee,5*.@r;}else{bonus bStr,10*.@r;bonus bFlee,15*.@r;} } 

 everything works fine but for the bonus str and flee every refine are not working for both condition

You added it in item_combo, you need to wear both item for effect to work.

Share this post


Link to post
Share on other sites
  • 0
On 4/12/2019 at 5:54 PM, crazyarashi said:

You added it in item_combo, you need to wear both item for effect to work.

 yes i wear both item , everything is fine , i got the skill " Magnum Break ".  only the bonus str and flee is not working

 

On 4/12/2019 at 6:06 PM, crazyarashi said:
[email protected] = getrefine();
skill "SM_MAGNUM",10;
bonus2 bHPRegenRate,5000,10000;
bonus2 bSPRegenRate,100,10000;
if(BaseLevel < 99){
	bonus bStr,[email protected]*3;
	bonus bFlee,[email protected]*5;
} else {
	bonus bStr,[email protected]*10;
	bonus bFlee,[email protected]*15;
}

 

it's still not working for the regen rate and bonus str/flee for both condition

the item effect is like this

nameless swordman.png

Share this post


Link to post
Share on other sites
  • 0
21 hours ago, crazyarashi said:

Change the [email protected] to 
 

getequiprefinerycnt(EQI_SHOES);


 

so i put like this

22178:4352,{.@r = getequiprefinerycnt(EQI_SHOES); skill "SM_MAGNUM",10; bonus2 bHPRegenRate,5000,10000 ; bonus2 bSPRegenRate,100,10000; if(BaseLevel < 99){ bonus bStr,3*.@r; bonus bFlee,5*.@r;} ; else{bonus bStr,10*.@r;bonus bFlee,15*.@r;}}

but only get  the skill,, the bonus regen rate and bonus status are not working

Share this post


Link to post
Share on other sites
  • 0

it won't work because you have an extra ; in your code.

Share this post


Link to post
Share on other sites
  • 0
On 4/13/2019 at 6:54 PM, crazyarashi said:

it won't work because you have an extra ; in your code.

is it become like this ?

22178:4352,{.@r = getequiprefinerycnt(EQI_SHOES); skill "SM_MAGNUM",10; bonus2 bHPRegenRate,5000,10000 ; bonus2 bSPRegenRate,100,10000; if(BaseLevel < 99){ bonus bStr,3*.@r; bonus bFlee,5*.@r;} else{bonus bStr,10*.@r;bonus bFlee,15*.@r;}}

 

ok so after i put that script , its working for the skill and bonus stats, but the hp/sp regen still not working

Share this post


Link to post
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.

Loading...
Sign in to follow this