Fixed ALL_RESURRECTION to not inflict damage on hidden undead type players

- Fixed bug report 8407: http://hercules.ws/board/tracker/issue-8407-resurrection-skill-cant-be-dodged-by-hide/
- Refactorized code
Merge pull request #380 from csnv/somefixes

Fixed ALL_RESURRECTION to not inflict damage on hidden undead type playe...
Fix clearance, should work only on mob, party or self and skill can't be cast on all players that are not in the party (bug:7050)
Added min() and max() script commands

- Special thanks to Streusel, Xgear

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (common folder)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (pre-re folder)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (re/quests folder)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (re folder)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (quests subfolders)

Signed-off-by: Haru <haru@dotalux.com>
Replaced 'set' with direct assignment where applicable (quests folder)

Signed-off-by: Haru <haru@dotalux.com>
Marked 'menu' script command as deprecated.

Note: Scripts in npc/custom haven't been updated to remove usage of
said script commands yet.

Signed-off-by: Haru <haru@dotalux.com>