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.
help with dsp code (specifically tp moves!)
Re: help with dsp code (specifically tp moves!)
https://github.com/DarkstarProject/dark ... .sql#L1071
There is the shadow spread reference. This creates the skill
Note the first number is:
So, match 1252 on the mob skill lists table:
https://github.com/DarkstarProject/dark ... .sql#L2294
And, Cerebrator now has Shadow Spread.
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);
Code: Select all
`mob_skill_id` smallint(4) unsigned NOT NULL,
https://github.com/DarkstarProject/dark ... .sql#L2294
Code: Select all
INSERT INTO `mob_skill_lists` VALUES ('Cerebrator',706,1252);
Re: help with dsp code (specifically tp moves!)
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.
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.
Re: help with dsp code (specifically tp moves!)
Sorry, I am unsure how the skills are applied. I know Cerebrator is part of the Thinker family:
And the mob pools shows the skill list ID of 241 also:
So, I assume they both inherit the same skills:
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.
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);
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);
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);
Re: help with dsp code (specifically tp moves!)
cool, thanks for the input, i know the wreaker deffinitly does shadow spread! i'll post here if i figure anything out!