Jump to content
  • 0

New Weapon Elements


Rebel

Question


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

if(sc->data[SC_PHEONWEAPON])
return ELE_DARKFIRE;

as you can see in this code, i want a new element in which is DARK FIRE

and new status SC_PHEONWEAPON

its like weapon elemental converter.. i would love to know how can i add a new element like DARK FIRE and HOLY FIRE?

Link to comment
Share on other sites

15 answers to this question

Recommended Posts


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

You'll have to modify your attr_fix table in the db folder (add a new column and row to each level). The attr_fix table holds all of the values so you don't have to modify any formulas when adding a new element. Check out battle.h to increase the attr_fix array size and map.h to add the two new elements to the enum. You should be good to go from there to modify whatever else you want for status resistance and stuff.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   5
  • Joined:  12/25/11
  • Last Seen:  

You'll have to modify your attr_fix table in the db folder (add a new column and row to each level). The attr_fix table holds all of the values so you don't have to modify any formulas when adding a new element. Check out battle.h to increase the attr_fix array size and map.h to add the two new elements to the enum. You should be good to go from there to modify whatever else you want for status resistance and stuff.

 

how would you use Custom Elements for Mobs?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

How can you combine the element of shadow and fire?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

combine shadow and fire? just imagine what does your DARKFIRE effect is.

example on attr_fix.txt, add it until lv Darkfire Lv. 4

//Neut Watr Erth Fire Wind Pois Holy Shdw Gho  Und  Drkf
  100, 100, 100, 100, 100, 100, 100, 100,  70, 100, 100  // Neutral
  100,  25, 100, 150,  90, 100,  75, 100, 100, 100, 100  // Water
  100, 100,  25,  90, 150, 100,  75, 100, 100, 100, 100  // Earth
  100,  90, 150,  25, 100, 100,  75, 100, 100, 125,  25  // Fire
  100, 175,  90, 100,  25, 100,  75, 100, 100, 100, 100  // Wind
  100, 100, 125, 125, 125,   0,  75,  50, 100, -25, 100  // Poison
  100, 100, 100, 100, 100, 100,   0, 125, 100, 150, 125  // Holy
  100, 100, 100, 100, 100,  50, 125,   0, 100, -25,  25  // Shadow
   70, 100, 100, 100, 100, 100,  75,  75, 125, 100,  75  // Ghost
  100, 100, 100, 100, 100,  50, 100,   0, 100,   0,  25  // Undead
  100, 100, 100,  25, 100, 100, 125,  25,  75,  25,   0  // Dark Fire

 

and on battle.h

extern int attr_fix_table[4][10][10];

becomes

extern int attr_fix_table[4][11][11];

 

on map.h, define new element

enum {
    ELE_NEUTRAL=0,
    ELE_WATER,
    ELE_EARTH,
    ELE_FIRE,
    ELE_WIND,
    ELE_POISON,
    ELE_HOLY,
    ELE_DARK,
    ELE_GHOST,
    ELE_UNDEAD,
    ELE_DARKFIRE,
    ELE_MAX
};
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

Hello, so I managed to put it in my server.. I have 1 question.. How i can make it when I use pheon converter, then i use xeon..

it will automatically stop the pheon converter.. and use the xeon instead..

Edited by Rebel
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

up

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

bump.. please help..

 

i just need to modify my item_db to only use one converter at a time..

 

thanks..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  295
  • Reputation:   6
  • Joined:  10/14/12
  • Last Seen:  

Though you change the values in attri_fix.txt, seems not to have an effect. Say neutral to ghost, set it all to zero, asura dmg still the same. Anyone? Thanks

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

Though you change the values in attri_fix.txt, seems not to have an effect. Say neutral to ghost, set it all to zero, asura dmg still the same. Anyone? Thanks

 

yea i notice that.. it does not have any effect.

 

BUmp

Edited by Emistry
Removed unecessary bump.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

Though you change the values in attri_fix.txt, seems not to have an effect. Say neutral to ghost, set it all to zero, asura dmg still the same. Anyone? Thanks

 

yea i notice that.. it does not have any effect.

 

BUmp

 

Super annoying bump reply.

EDIT :

Already modified by Emistry

EDIT : EDIT :

http://i.imgur.com/DA4CHsT.png

Edited by goddameit
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Hahaha ^

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

anyone wants to help??? -.-

bump

bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

bump bump.. need help!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

BUMP



no one to help.  /hum

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

bump make this work please :)

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