Jump to content
  • 0

Is there an sc_ effect to change armor element?


Peopleperson49

Question


  • Group:  Members
  • Topic Count:  219
  • Topics Per Day:  0.05
  • Content Count:  1181
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

I guess I'm having a stupid moment, but I figure I would post so somebody could make me feel even more dumb, lol. I want to make items that when used change my armor to another element type for a period of time. Is there an actual sc_? effect that can do that? I understant that SC_ARMOR_ELEMENT works to a point, but its only limited to fire, water, earth, and wind type elements. It also only reduces damage from those type of attacks. I want the actual armor type to change when the item is used for a specified period of time. Thanks.

 

Peopleperson49

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

bonus bDefEle,n; Gives the player's defense element n

n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison, 6=Holy, 7=Dark, 8=Spirit, 9=Undead

prontera,150,180,5	script	kjdhfskdfjs	100,{
	bonus_script "{ bonus bDefEle, Ele_Ghost; }", 3;
}
change armor element into ghost for 3 seconds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  219
  • Topics Per Day:  0.05
  • Content Count:  1181
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

Thanks Annie that looks great. I never considered going that route with it.

 

Peopleperson49


If I want to add the flags and stuff is this correct? Your version works fine, however trying to use the flag, type, status icon wont work. The command will still change the property type but doesn't end on death or show the icon. Thanks.

 

Peopleperson49

 

bonus_script "{ bonus bDefEle,Ele_Fire; }",300,15,0,SI_FIREWEAPON;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   111
  • Joined:  10/05/12
  • Last Seen:  

Darn it, theres no need to create a NpC script from zero to make an item change an armor property!!!

 

 

Just insert this lines, in the item script :  time duration numbers are represented by miliseconds:

 

180000  = 3 minutes

 

dark

{sc_start4 SC_ELEMENTALCHANGE,180000,1,Ele_Dark,1,0; },{},{}

 

shadow

{sc_start4 SC_ELEMENTALCHANGE,180000,1,Ele_Holy,1,0; },{},{}

 

if you want something different, just type Wind, Fire, Water, Ghost, Poison Etc Etc Etc

 

if you want add an effect:

 

just type any special effect, example:

 

{specialeffect2 91; sc_start4 SC_ELEMENTALCHANGE,180000,1,Ele_Holy,1,0;  },{},{}

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  219
  • Topics Per Day:  0.05
  • Content Count:  1181
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

Thanks iraciz that was exactly what I was looking for.

 

Peopleperson49

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