help with dsp code (specifically tp moves!)

Any discussion not related to the other forum topics
Post Reply
xandman
Posts: 5
Joined: Wed Feb 25, 2015 2:23 pm

help with dsp code (specifically tp moves!)

Post by xandman » Tue Mar 28, 2017 9:10 am

Hi

Wasn't sure where to post this sorry if in wrong forum!

So i was messing around with my own server i set up and having a look at the source code to see if i could find out how any of it works (don't have alot of programming knowledge) I specifically started looking at tp moves, i figured out how a lot of it went together for example, lets take "shadow spread" done by progenerator in promyvian dem mission battlefield. i found the "shadow spread.lua file and that tells the game what shadow spread does, (inflicting sleep, blind and curse, and the relative strength of the inflictions... i think)

i also found the mob skills.sql that seemed to tell the game that the move is an aoe, what direction it is and what animation to use.

But what i couldnt figure out is what code specifically tells the server that only the progenerator is to use shadow spread! I looked at other tp moves used by a whole family of mobs and i couldnt find what code told the server that all pugils can use screwdriver etc.

I'm really interested in learning about how to develop for the server and also learning c++ code, Any help would be appreciated.

Delaide
Posts: 478
Joined: Sat Jun 14, 2014 8:58 am

Re: help with dsp code (specifically tp moves!)

Post by Delaide » Tue Apr 04, 2017 10:30 pm

https://github.com/DarkstarProject/dark ... .sql#L1071

There is the shadow spread reference. This creates the skill

Code: Select all

INSERT INTO `mob_skills` VALUES (1252,943,'Shadow_Spread',1,15.0,2000,1500,4,0,0,0);
Note the first number is:

Code: Select all

  `mob_skill_id` smallint(4) unsigned NOT NULL,
So, match 1252 on the mob skill lists table:
https://github.com/DarkstarProject/dark ... .sql#L2294

Code: Select all

INSERT INTO `mob_skill_lists` VALUES ('Cerebrator',706,1252);
And, Cerebrator now has Shadow Spread.

xandman
Posts: 5
Joined: Wed Feb 25, 2015 2:23 pm

Re: help with dsp code (specifically tp moves!)

Post by xandman » Wed Apr 05, 2017 6:53 am

yes thank you i meant to write wreaker in promyvian holla as opposed to the progenerator in dem.
So im guessing since the wreaker and the agonizer from vazhl is not listed in that file, the cerebrator is defined as a family of mobs in some other file that all use shadow spread? thanks.

Delaide
Posts: 478
Joined: Sat Jun 14, 2014 8:58 am

Re: help with dsp code (specifically tp moves!)

Post by Delaide » Wed Apr 05, 2017 11:04 pm

Sorry, I am unsure how the skills are applied. I know Cerebrator is part of the Thinker family:

Code: Select all

INSERT INTO `mob_pools` VALUES (681,'Cerebrator','Cerebrator',241,0x0000680400000000000000000000000000000000,1,1,7,240,100,0,1,1,0,2,0,32,290,157,0,0,0,1,0,241);

Code: Select all

INSERT INTO `mob_family_system` VALUES (241,'Thinker',12,'Empty',1,50,132,90,1,3,4,3,6,6,5,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0);
And the mob pools shows the skill list ID of 241 also:

Code: Select all

INSERT INTO `mob_pools` VALUES (4382,'Wreaker','Wreaker',241,0x0000680400000000000000000000000000000000,1,1,7,240,100,0,1,1,0,16,0,0,6029,135,0,0,0,1,0,241);

Code: Select all

INSERT INTO `mob_pools` VALUES (681,'Cerebrator','Cerebrator',241,0x0000680400000000000000000000000000000000,1,1,7,240,100,0,1,1,0,2,0,32,290,157,0,0,0,1,0,241);
So, I assume they both inherit the same skills:

Code: Select all

INSERT INTO `mob_skill_lists` VALUES ('Thinker',241,1242);
INSERT INTO `mob_skill_lists` VALUES ('Thinker',241,1243);
INSERT INTO `mob_skill_lists` VALUES ('Thinker',241,1244);
INSERT INTO `mob_skill_lists` VALUES ('Thinker',241,1245);
INSERT INTO `mob_skill_lists` VALUES ('Thinker',241,1246);
INSERT INTO `mob_skill_lists` VALUES ('Thinker',241,1247);
INSERT INTO `mob_skill_lists` VALUES ('Thinker',241,1248);
INSERT INTO `mob_skill_lists` VALUES ('Thinker',241,1249);
INSERT INTO `mob_skill_lists` VALUES ('Thinker',241,1250);
But, that still does not show Shadow Spread, which is ID 1252. It is possible that Shadow Spread was only given to Cerebrator, and not to Agonizer, Ponderer, and Wreaker. However, I thought, last time I did prommies, that Wreaker did Shadow Spread. Sorry, I am not sure. I do not see the ability shown in the various tables, but perhaps someone who knows might chime in.

xandman
Posts: 5
Joined: Wed Feb 25, 2015 2:23 pm

Re: help with dsp code (specifically tp moves!)

Post by xandman » Sun Apr 16, 2017 4:56 pm

cool, thanks for the input, i know the wreaker deffinitly does shadow spread! i'll post here if i figure anything out!

Post Reply