Venture Posted September 28, 2013 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Share Posted September 28, 2013 I wanted to edit the super novice's chant. But I can't find the files to do so. In case you did not know, Its this thing I am referring to. http://wiki.essence-ro.com/index.php?title=Super_Novice_Battle_Chant In which part of rathena is it on? Db? Src? Which file?. Quote Link to comment Share on other sites More sharing options...
DeadlySilence Posted September 28, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 181 Reputation: 53 Joined: 04/07/13 Last Seen: August 23, 2014 Share Posted September 28, 2013 According to the source, the text can be changed in the msgstringtable.txt file in your data folder. /// Note: This packet is caused by 7 lines of any text, followed by /// the prayer and an another line of any text. The prayer is /// defined by lines 790~793 in data\msgstringtable.txt Quote Link to comment Share on other sites More sharing options...
Venture Posted September 29, 2013 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Author Share Posted September 29, 2013 According to the source, the text can be changed in the msgstringtable.txt file in your data folder. /// Note: This packet is caused by 7 lines of any text, followed by /// the prayer and an another line of any text. The prayer is /// defined by lines 790~793 in data\msgstringtable.txt So those prayers are client sided? So people could actually use random lines to chant if they edited the msgstringtable? In which line of the source does this refers to? (Line number, and file name) And probably, I would like to try changing the effects of the chant, where should I look this up? Like instead of every 10%, I would like to make it every 5% or so. I am also trying to give them additional effects, so I need the source location, Thanks for clarifying things up! Quote Link to comment Share on other sites More sharing options...
DeadlySilence Posted September 29, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 181 Reputation: 53 Joined: 04/07/13 Last Seen: August 23, 2014 Share Posted September 29, 2013 I haven't tested it, but it seems player could use other chants to activate the effect. I found this in src/map/clif.c in line 12942 (search for "Dear angel" if it isn't there), you can add all the effects you want in that part of the code. /// Request to invoke the effect of super novice's guardian angel prayer (CZ_CHOPOKGI). /// 01ed /// Note: This packet is caused by 7 lines of any text, followed by /// the prayer and an another line of any text. The prayer is /// defined by lines 790~793 in data\msgstringtable.txt /// "Dear angel, can you hear my voice?" /// "I am" (space separated player name) "Super Novice~" /// "Help me out~ Please~ T_T" void clif_parse_NoviceExplosionSpirits(int fd, struct map_session_data *sd) { if( ( sd->class_&MAPID_UPPERMASK ) == MAPID_SUPER_NOVICE ) { unsigned int next = pc_nextbaseexp(sd); if( next == 0 ) next = pc_thisbaseexp(sd); if( next ) { int percent = (int)( ( (float)sd->status.base_exp/(float)next )*1000. ); if( percent && ( percent%100 ) == 0 ) {// 10.0%, 20.0%, ..., 90.0% sc_start(&sd->bl,&sd->bl, status_skill2sc(MO_EXPLOSIONSPIRITS), 100, 17, skill_get_time(MO_EXPLOSIONSPIRITS, 5)); //Lv17-> +50 critical (noted by Poki) [Skotlex] clif_skill_nodamage(&sd->bl, &sd->bl, MO_EXPLOSIONSPIRITS, 5, 1); // prayer always shows successful Lv5 cast and disregards noskill restrictions } } } } 1 Quote Link to comment Share on other sites More sharing options...
Venture Posted September 29, 2013 Group: Members Topic Count: 52 Topics Per Day: 0.01 Content Count: 179 Reputation: 2 Joined: 08/30/13 Last Seen: November 7, 2024 Author Share Posted September 29, 2013 (edited) I haven't tested it, but it seems player could use other chants to activate the effect. I found this in src/map/clif.c in line 12942 (search for "Dear angel" if it isn't there), you can add all the effects you want in that part of the code. /// Request to invoke the effect of super novice's guardian angel prayer (CZ_CHOPOKGI). /// 01ed /// Note: This packet is caused by 7 lines of any text, followed by /// the prayer and an another line of any text. The prayer is /// defined by lines 790~793 in data\msgstringtable.txt /// "Dear angel, can you hear my voice?" /// "I am" (space separated player name) "Super Novice~" /// "Help me out~ Please~ T_T" void clif_parse_NoviceExplosionSpirits(int fd, struct map_session_data *sd) { if( ( sd->class_&MAPID_UPPERMASK ) == MAPID_SUPER_NOVICE ) { unsigned int next = pc_nextbaseexp(sd); if( next == 0 ) next = pc_thisbaseexp(sd); if( next ) { int percent = (int)( ( (float)sd->status.base_exp/(float)next )*1000. ); if( percent && ( percent%100 ) == 0 ) {// 10.0%, 20.0%, ..., 90.0% sc_start(&sd->bl,&sd->bl, status_skill2sc(MO_EXPLOSIONSPIRITS), 100, 17, skill_get_time(MO_EXPLOSIONSPIRITS, 5)); //Lv17-> +50 critical (noted by Poki) [Skotlex] clif_skill_nodamage(&sd->bl, &sd->bl, MO_EXPLOSIONSPIRITS, 5, 1); // prayer always shows successful Lv5 cast and disregards noskill restrictions } } } } So that function is triggered by the client?? and is never called by any other trigger in the src..? Oh god, it seems like my initial planning to implement this for all job will never work ;_;. My hope and dreams crumbles. Edited September 29, 2013 by gekigengar Quote Link to comment Share on other sites More sharing options...
Question
Venture
I wanted to edit the super novice's chant.
But I can't find the files to do so.
In case you did not know, Its this thing I am referring to.
http://wiki.essence-ro.com/index.php?title=Super_Novice_Battle_Chant
In which part of rathena is it on?
Db? Src?
Which file?.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.