Jump to content
  • 0

requesting item script


Question

Posted

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

 

 

9 answers to this question

Recommended Posts

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

 

  • Upvote 1
  • 0
Posted
.@r = getrefine();
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;
}

 

  • 0
Posted
On 4/12/2019 at 2:48 PM, crazyarashi said:

.@r = getrefine();
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;
}

 

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

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

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

.@r = getrefine();
skill "SM_MAGNUM",10;
bonus2 bHPRegenRate,5000,10000;
bonus2 bSPRegenRate,100,10000;
if(BaseLevel < 99){
	bonus bStr,.@r*3;
	bonus bFlee,.@r*5;
} else {
	bonus bStr,.@r*10;
	bonus bFlee,.@r*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

  • 0
Posted
21 hours ago, crazyarashi said:

Change the .@r 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

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

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