help me SG Soul link modif.

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
Star Gladiator - Allowing to use Lvl 10 Lord of Vermillion, Lvl 10 Parrying. Increase damage on Boss monster and Holy monster by 100%. perfect dodge + 10

 
Most of these changes are database related and the others could be made with a simple script, but as you requested in source support I'll post them as source modifications, except for those that can be made altering databases.

Regarding those db changes:

Open dbreskill_tree.conf and search for:

SG_DEVIL: 10 SG_FRIEND: 3 SG_KNOWLEDGE: 10 SG_FUSION: { MaxLevel: 1 SG_KNOWLEDGE: 9 }Add just below it:
Code:
		WZ_VERMILION: 10		LK_PARRYING: 10
If you want to add any pre-requisites just use the following format:
Code:
skill_name: {MaxLevel: max_skill_lvlskill_name1: min_lvlskill_name2: min_lvl}
Now open srcmapbattle.c and search for:
Code:
if( src != target ) { // Don't reflect your own damage (Grand Cross)
Add above it:
Code:
		if( target->type == BL_MOB && 			( (pc->jobid2mapid(JOB_STAR_GLADIATOR)) == ((TBL_PC*)src)->class_ || (pc->jobid2mapid(JOB_STAR_GLADIATOR2)) == ((TBL_PC*)src)->class_) &&			(((TBL_MOB*)target)->state.boss || ((TBL_MOB*)target)->db->status.def_ele == ELE_HOLY)			)			wd.damage += wd.damage; // 100% damage bonus
Now open srcmapstatus.c and search for:
Code:
	for(i=0;i<(int)sd->status.job_level && i<MAX_LEVEL;i++){		if(!status->job_bonus[index][i])			continue;		switch(status->job_bonus[index][i]) {			case 1: bstatus->str++; break;			case 2: bstatus->agi++; break;			case 3: bstatus->vit++; break;			case 4: bstatus->int_++; break;			case 5: bstatus->dex++; break;			case 6: bstatus->luk++; break;		}	}
Add below it:
Code:
	if( index == JOB_STAR_GLADIATOR || index == JOB_STAR_GLADIATOR2 )		bstatus->flee2 += 10;
Save and build and it should work c:
Happy holidays

@EDIT Tested mods in-game now they're working

 
Last edited by a moderator:
damage won't work and parrying and LOV didn't show

now i can see the skill LOv and Parrying but Parrying Skill Can't Use
default_sad.png
( 100% Damage Still not working please help

how can i add edit Skill require db, make parrying require books too, to make parrying work?

 
Last edited by a moderator:
Sorry I had made some mistakes in my last snippets, they're correct now...

 
wont work increase damage to Boss type and Holy 

Code:
        if( target->type == BL_MOB &&			( (pc->jobid2mapid(JOB_STAR_GLADIATOR)) == ((TBL_PC*)src)->class_ || (pc->jobid2mapid(JOB_STAR_GLADIATOR2)) == ((TBL_PC*)src)->class_) &&			(((TBL_MOB*)target)->state.boss || ((TBL_MOB*)target)->db->status.def_ele == ELE_HOLY)			)			wd.damage += wd.damage; // 100% damage bonus 
 
It is working you must have forgotten to rebuild your server after redoing those changes, if you want I made a diff so you can activate those changes "automatically"

http://pastebin.com/Eya2XN52

 
To use parrying you need to be "wearing" a two-handed sword (http://irowiki.org/wiki/Parry), you need to change the requisites of this skill or it won't work with any class that can't use this kind of weapon c:

 
on your skill_require_db.txt search for LK_PARRYING.

// SkillID,HPCost,MaxHPTrigger,SPCost,HPRateCost,SPRateCost,ZenyCost,RequiredWeapons,RequiredAmmoTypes,RequiredAmmoAmount,RequiredState,
//   356,      0,         0,       50,             0,               0,            0,                      3,                     0,                     0,         none,
change the bold part with this weapon type of your choice:

For weapons, the types are:
0: bare fist
1: Daggers
2: One-handed swords
3: Two-handed swords
4: One-handed spears
5: Two-handed spears
6: One-handed axes
7: Two-handed axes
8: Maces
9: Unused
10: Staves
11: Bows
12: Knuckles
13: Musical Instruments
14: Whips
15: Books
16: Katars
17: Revolvers
18: Rifles
19: Gatling guns
20: Shotguns
21: Grenade launchers
22: Fuuma Shurikens
 
Last edited by a moderator:
if i changed

356,      0,          0,       50,             0,            0,            0,                      3,                    0,                     0,         none,

to 

356,      0,          0,       50,             0,            0,            0,                      15,                    0,                     0,         none,

parrying on Lord Knight still work with Blades?

 
maybe but you can also do something like 

356,      0,          0,       50,             0,            0,            0,                      2:3,                    0,                     0,         none,
that means

 
      2: One-handed swords
3: Two-handed swords

 
Hello @pan

I followed your guide but I am getting this error:

'class_c': is not a member of 'map_session_data'

Can you help me fix this? 

Thank you.

 
Back
Top