Jump to content
  • 0

Can sniper skill "True Sight" trigger 1second infravision?


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

Hi, this is my following request

I am trying this code to autobuff sniper with infravision for just 2 seconds after casting Truesight, I would like this effect to apply only on self caster. 

I found the line in the skill.cpp  src file.

Please note that I can't insert the code in the existing case SN_SIGHT, I tried it and the skill was not working (could'nt even cast), So I add this new line with the skill case.

    case SN_SIGHT:
        status_change_start(src,bl,SC_INTRAVISION,10000,skill_lv,0,0,0,skill_get_time2(skill_id,skill_lv),SCSTART_NORATEDEF);
        break;

But is not working, look at the picture, the skill cast should  show the monster silhouette for 10 seconds and is not happening.

Could you help me to solve the request, any idea? Thankyou in advance.

 sightinfravision.png.744105e82eac05fd0e923821d45c366b.png

Edited by iraciz
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   46
  • Joined:  07/15/13
  • Last Seen:  

I've tested and works fine :)!

 

skill_cast_db.txt

Search:

//-- SN_SIGHT
380,0,0,0,30000,0,0

Change to:

//-- SN_SIGHT
380,0,0,0,30000,1000,0

 

skill.cpp

 

	case SN_SIGHT:
		clif_skill_nodamage(src,bl,skill_id,skill_lv,sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
        status_change_start(src,bl,SC_INTRAVISION,10000,skill_lv,0,0,0,skill_get_time2(skill_id,skill_lv),SCSTART_NORATEDEF);
        break;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

Hello Elysium, I am having problem when compiling

1>------ Operación Compilar iniciada: proyecto: map-server, configuración: Debug Win32 ------
1>skill.cpp
1>C:\Users\Mario Zicari\Desktop\rAthena\src\map\skill.cpp(1575,48): error C2065: 'type': identificador no declarado
1>C:\Users\Mario Zicari\Desktop\rAthena\src\map\skill.cpp(1575,116): error C2660: 'clif_skill_nodamage': la función no acepta 4 argumentos
1>C:\Users\Mario Zicari\Desktop\rAthena\src\map\clif.hpp(697,6): message : vea la declaración de 'clif_skill_nodamage'
1>Compilación del proyecto "map-server.vcxproj" terminada -- ERROR.

dunno what to do

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   46
  • Joined:  07/15/13
  • Last Seen:  

Try compile in Release mode

DBmc9hi.png

i tested in a clean rAthena and works fine too...

You comented SN_SIGHT: in skill.cpp before you put the code? try putting the code below:

 

	case SM_ENDURE:
		clif_skill_nodamage(src,bl,skill_id,skill_lv,
			sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
		break;

 

Edited by EIysium
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   63
  • Joined:  04/29/19
  • Last Seen:  

1 hour ago, EIysium said:

Try compile in Release mode

DBmc9hi.png

i tested in a clean rAthena and works fine too...

You comented SN_SIGHT: in skill.cpp before you put the code? try putting the code below:

 


	case SM_ENDURE:
		clif_skill_nodamage(src,bl,skill_id,skill_lv,
			sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
		break;

 

I found the modification interesting and also tested it, but it didn't work ...

I added case SN_SIGHT in skill.cpp because it doesn't exist

	case SN_SIGHT:
			clif_skill_nodamage(src,bl,skill_id,skill_lv,sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
			status_change_start(src,bl,SC_INTRAVISION,10000,skill_lv,0,0,0,skill_get_time2(skill_id,skill_lv),SCSTART_NORATEDEF);
		break;

Then I compiled it, but it failed ...

                 from skill.cpp:29:
skill.cpp: In function ‘int skill_additional_effect(block_list*, block_list*, uint16, uint16, int, damage_lv, t_tick)’:
skill.cpp:1581:65: error: ‘type’ was not declared in this scope
    clif_skill_nodamage(src,bl,skill_id,skill_lv,sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
                                                                 ^
status.hpp:2526:78: note: in definition of macro ‘sc_start’
 #define sc_start(src, bl, type, rate, val1, tick) status_change_start(src,bl,type,100*(rate),val1,0,0,0,tick,SCSTART_NONE)
                                                                              ^
make[1]: *** [obj/skill.o] Error 1
make[1]: Leaving directory `/root/emulador/src/map'
make: *** [map] Error 2


I'm using an updated version of the emulator

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   46
  • Joined:  07/15/13
  • Last Seen:  

You comented or erased SN_SIGHT: from line 6904? then copy paste the code above like this:

	case SN_SIGHT:
		clif_skill_nodamage(src,bl,skill_id,skill_lv,sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
        status_change_start(src,bl,SC_INTRAVISION,10000,skill_lv,0,0,0,skill_get_time2(skill_id,skill_lv),SCSTART_NORATEDEF);
        break;

	case SM_ENDURE:
		clif_skill_nodamage(src,bl,skill_id,skill_lv,
			sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
		break;

 

 

Edited by EIysium
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  235
  • Reputation:   63
  • Joined:  04/29/19
  • Last Seen:  

10 hours ago, EIysium said:

You comented or erased SN_SIGHT: from line 6904? then copy paste the code above like this:


	case SN_SIGHT:
		clif_skill_nodamage(src,bl,skill_id,skill_lv,sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
        status_change_start(src,bl,SC_INTRAVISION,10000,skill_lv,0,0,0,skill_get_time2(skill_id,skill_lv),SCSTART_NORATEDEF);
        break;

	case SM_ENDURE:
		clif_skill_nodamage(src,bl,skill_id,skill_lv,
			sc_start(src,bl,type,100,skill_lv,skill_get_time(skill_id,skill_lv)));
		break;

 

 


image.png.90be89e60505be1b69fb3c39cc2533c3.png


image.thumb.png.1ec700357e2a39626f1425d6736971ae.png

@edit

Now I understand the problem hahaha
It is necessary to comment line 6914 (in my emulator)

 

	//case SN_SIGHT:

Tks ❤️ 

Edited by Gladius
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   107
  • Joined:  10/05/12
  • Last Seen:  

Done, I had to compile in release mode, and it work like a charm, consider this solved.

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   46
  • Joined:  07/15/13
  • Last Seen:  

Good that it worked for you.

Regards!

Link to comment
Share on other sites

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.

×
×
  • Create New...