Moved some remaining constants into src (#2501)

* Moved all npc view constants into src

Source side the constants will use Gravity's naming standard(JT_*)
NPC side still supports the old names without JT_

* Moved all effect constants into src

Added check for effect validation to atcommand effect and all script commands using them
Removed the unused and broken function unit_changeviewsize from unit.c
Replaced a lot of hardcoded effect ids with their respective constants
Cleaned up the effect documentations

* Moved all hat effect constants into src

Added check for effect validation to script command hateffect
This commit is contained in:
Lemongrass3110
2017-10-14 18:13:51 +02:00
committed by GitHub
parent 951ff55573
commit f42c2ff211
25 changed files with 4455 additions and 2313 deletions

View File

@@ -3,7 +3,7 @@
//===== By: ==================================================
//= rAthena Dev Team
//===== Last Updated: ========================================
//= 20160313
//= 20171011
//===== Description: =========================================
//= List of available atcommands and their functions.
//============================================================
@@ -226,14 +226,24 @@ New warp NPC 'my_warp_sample' created.
@effect <effect ID>
Creates a visual effect on or around the character.
A list of IDs can be found in '/db/const.txt'.
Descriptions of the effects can be found in '/doc/effect_list.txt'.
A list of IDs and descriptions of the effects can be found in '/doc/effect_list.txt'.
---------------------------------------
@misceffect
@misceffect <effect ID>
Does some visual effect on the character (more info needed).
Does some visual effect on the character.
Possible effect IDs:
0 = base level up
1 = job level up
2 = refine failure
3 = refine success
4 = game over
5 = pharmacy success
6 = pharmacy failure
7 = base level up (super novice)
8 = job level up (super novice)
9 = base level up (taekwon)
---------------------------------------

View File

@@ -3,7 +3,7 @@
//===== By: ==================================================
//= rAthena Dev Team
//===== Last Updated: ========================================
//= 20120822
//= 20171011
//===== Description: =========================================
//= A list of client-side effects sorted by ID.
//============================================================
@@ -11,7 +11,7 @@
The following is a compiled list of visual and sound effects which the client
can produce when receiving a packet with id 0x1f3 (01f3 <ID>.l <type>.l).
Each list entry contains a number and a short description of the effect.
You can produce these effects ingame by doing "@effect <number> 22" (22=self).
You can produce these effects ingame by doing "@effect <number>".
It's also possible to attach effects to item/npc scripts by using 'misceffect'.
Number Description

View File

@@ -3,7 +3,7 @@
//===== By:==================================================
//= rAthena Dev Team
//===== Last Updated:========================================
//= 20161206
//= 20171011
//===== Description:=========================================
//= A reference manual for the rAthena scripting language.
//= Commands are sorted depending on their functionality.
@@ -7343,7 +7343,7 @@ Example:
bindatcmd "test",strnpcinfo(3) + "::OnAtcommand";
end;
OnAtcommand:
specialeffect2 338;
specialeffect2 EF_ANGEL2;
end;
}
@@ -9577,7 +9577,8 @@ solution rather than sending the map and the monster_id.
This will set a Hat Effect onto the player. The state field allows you to
enable (true) or disable (false) the effect on the player.
The Hat Effect constants can be found in db/const.txt starting with HAT_EF_*.
The Hat Effect constants can be found in 'src/map/script_constants.h' starting
with HAT_EF_*.
Requires client 2015-05-13aRagEXE or newer.