Jump to content
  • 0

Warlock Summoning Skill Problem


Question

Posted (edited)

i tested summon fire , water , lightning, and stone ball, but then.

this is example, i use summon lightning ball level 1 5times. ..it does not stock 5 lightning balls, it only stock 1 lightning ball,. but when i use level 5 summon lightning ball 5times., it stocks 5 lightning ball, where can i fix this when i cast level 1 summoning stone 5times it will stack 5 stones? thanks to those will help me in advance 

 

Ooops. sorry wrong thread.

Edited by Frhysthia

5 answers to this question

Recommended Posts

Posted

i don't think so it was a bug, because in official idro it wasn't bug until now, it summon 5 balls in level 1.

you can change this in skill.c (if you want back turn effect the old one)

from

		{
			short element = 0, sctype = 0, pos = -1, j = 0;
			struct status_change *sc = status_get_sc(src);

			if( !sc )
				break;

			for( i = SC_SPHERE_1; i data[i] )
					sctype = i; // Take the free SC
				if( sc->data[i] ) {
					pos = max(sc->data[i]->val2,pos);
					j++;
				}
			}

			if( !sctype || j >= skill_lv ) {
				if( sd ) // No free slots to put SC
					clif_skill_fail(sd,skill_id,USESKILL_FAIL_SUMMON,0);
				break;
			}

			pos++; // Used in val2 for SC. Indicates the order of this ball
			switch( skill_id ) { // Set val1. The SC element for this ball
				case WL_SUMMONFB:    element = WLS_FIRE;  break;
				case WL_SUMMONBL:    element = WLS_WIND;  break;
				case WL_SUMMONWB:    element = WLS_WATER; break;
				case WL_SUMMONSTONE: element = WLS_STONE; break;
			}

			sc_start4(src,src,(enum sc_type)sctype,100,element,pos,skill_lv,0,skill_get_time(skill_id,skill_lv));
			clif_skill_nodamage(src,bl,skill_id,0,0);
		}
		break;

to this

{
			short element = 0, sctype = 0, pos = -1;
			struct status_change *sc = status_get_sc(src);
		
			if( !sc ) break;

			for( i = SC_SPHERE_1; i data[i] )
					sctype = i; // Take the free SC
				if( sc->data[i] )
					pos = max(sc->data[i]->val2,pos);
			}

			if( !sctype )
			{
				if( sd ) // No free slots to put SC
					clif_skill_fail(sd,skill_id,USESKILL_FAIL_SUMMON,0);
				break;
			}

			pos++; // Used in val2 for SC. Indicates the order of this ball
			switch( skill_id )
			{ // Set val1. The SC element for this ball
				case WL_SUMMONFB:    element = WLS_FIRE;  break;
				case WL_SUMMONBL:    element = WLS_WIND;  break;
				case WL_SUMMONWB:    element = WLS_WATER; break;
				case WL_SUMMONSTONE: element = WLS_STONE; break;
			}

			sc_start4(src,src,(enum sc_type)sctype,100,element,pos,skill_lv,0,skill_get_time(skill_id,skill_lv));
			clif_skill_nodamage(src,bl,skill_id,0,0);
		}
		break;

i almost forgot..look it this (in iro) same as in ratemyserver script.10gn1xw.jpgits level is only affected by damage, duration and sp cost.for me this is very disappointing to know that http://rathena.org/board/tracker/issue-9120-warlock-summon-elemental-balls/ this custom request like this can make aleos replace its original script on last git. (sorry not offens aleos )

Posted (edited)

@ t3quila

Error in compiling.

skill.c: At top level:

skill.c:10236: error: expected identifier or '(' before 'if'

skill.c:10242: error: expected identifier or '(' before 'if'

skill.c:10247: error: expected identifier or '(' before 'if'

skill.c:10260: warning: data definition has no type or storage class

skill.c:10260: warning: type defaults to 'int' in declaration of 'map_freeblock_unlock'

skill.c:10261: error: expected identifier or '(' before 'return'

skill.c:10262: error: expected identifier or '(' before '}' token

make[1]: *** [obj_sql/skill.o] Error 1

Edited by Frhysthia

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...