HW/Sage Soul Link Modification

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
I need help editing Soul Link of HW and Sage

1,Sage - The Sage's HP will also increase by BaseLvl*200 HP and his/her Vit will increase by Int/5 (For example, 255 Int will give you an additional bonus of 255/5 = 51 Vit.
 
2.Wizard - The Wizard's HP will also Increase by BaseLvl*200 HP and his/her Vit will increase by Int/5(For example, 255 Int will give you an additional bonus of 255/5 = 51 Vit. Increase Magic Crasher Damage + 150%.
i found this script/src code at Soul Link Modif[Request]

this src code posted by Patskie but i don't know if this is working and don't know what line do i add this 

add this on src/map/status.c. ( I don't know what line @_@ )

Professor / Wizard ( intelligence / 5 ) : 

if (sc && sc->data[SC_SOULLINK] && (sc->data[SC_SOULLINK]->val2 == SL_SAGE || sc->data[SC_SOULLINK]->val2 == SL_WIZARD)) vit += ((TBL_PC*)bl)->status.int_ / 5; 
Professor / Wizard ( BaseLevel * 200 ) :

Code:
if (sc && sc->data[SC_SOULLINK] && (sc->data[SC_SOULLINK]->val2 == SL_SAGE || sc->data[SC_SOULLINK]->val2 == SL_WIZARD))		maxhp += ((TBL_PC*)bl)->status.base_level * 200; 
 
Last edited by a moderator:
up
default_sad.png
really need help on this ( not professional on this scripts )

up

 
Last edited by a moderator:
I have tried this and works fine on my test server. You can check it : 

src/map/status.c : 

Add ( Line 4212 ) : 

if(sc->data[SC_SOULLINK] && (sc->data[SC_SOULLINK]->val2 == SL_WIZARD || sc->data[SC_SOULLINK]->val2 == SL_SAGE)) vit += ((TBL_PC*)bl)->status.int_ / 5;
Add ( Line 5564 ) :

Code:
if(sc->data[SC_SOULLINK] && (sc->data[SC_SOULLINK]->val2 == SL_WIZARD || sc->data[SC_SOULLINK]->val2 == SL_SAGE))		maxhp += ((TBL_PC*)bl)->status.base_level * 200;
 
Last edited by a moderator:
I have tried this and works fine on my test server. You can check it :

src/map/status.c :

Add ( Line 4212 ) :

Code:
if(sc->data[SC_SOULLINK] && (sc->data[SC_SOULLINK]->val2 == SL_WIZARD || sc->data[SC_SOULLINK]->val2 == SL_SAGE)) vit += ((TBL_PC*)bl)->status.int_ / 5;
Add ( Line 5564 ) :
Code:
if(sc->data[SC_SOULLINK] && (sc->data[SC_SOULLINK]->val2 == SL_WIZARD || sc->data[SC_SOULLINK]->val2 == SL_SAGE)) maxhp += ((TBL_PC*)bl)->status.base_level * 200;
i will try this

IT WORKS ! THANKS!
 
Last edited by a moderator:
i tried this on rathena and i got this error what is the problem?

 Error 1 error C2065: 'maxhp' : undeclared identifier (..srcmapstatus.c) c:usersthyrone üdesktopsvnsrcmapstatus.c 2488 1 map-server_sql
 
Back
Top