Jump to content
  • 0

requesting item script


dest1n

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

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

 

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

.@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;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

.@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
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

Change the .@r to 
 

getequiprefinerycnt(EQI_SHOES);


 

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

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

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