YTDB

YTDB (http://ytdb.ru/index.php)
-   CMaNGOS Commits (http://ytdb.ru/forumdisplay.php?f=27)
-   -   [11989] Add support to call spell_scripts in more cases (http://ytdb.ru/showthread.php?t=11772)

newsbot 08.05.2012 19:42

[11989] Add support to call spell_scripts in more cases
 
Автор: Schmoozerd


<pre>m doc/script_commands.txt
m src/game/Map.cpp
m src/game/Map.h
m src/game/ScriptMgr.cpp
m src/game/ScriptMgr.h
m src/game/Spell.cpp
m src/game/Spell.h
m src/game/SpellEffects.cpp
m src/shared/revision_nr.h
</pre>
<pre style='white-space:pre-wrap;width:81ex'>[11989] Add support to call spell_scripts in more cases

* Support to script Dummy spells with spell_scripts
* Support to script TriggerSpell spells which have no existing triggered spell
Note that the order which spell-effect actually triggers the DB script is well-defined (SCRIPT_EFFECT before DUMMY before other)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com></pre>


Подробнее...

partizanes 09.05.2012 00:41

[patch]Elune's Candle
 
тема http://ru-mangos.ru/showthread.php?p=27203#post27203
правка ядра в 11989 и решение от schmoozerd
протестировано на ревизии 11989.
Свеча Элуны

Код:

DELETE FROM spell_scripts WHERE id=26374;
INSERT INTO spell_scripts (id, command, datalong, comments) VALUES
(26374, 15, 26636, 'Elune''s Candle - Visual effect');


Дублирую с румангоса так как относиться к базе .

p.s заготовки для других предметов;для полной реализации нужны скрипты вроде
Код:

INSERT INTO `spell_scripts` VALUES ( '45102','0','15','45123','0','0','0','0','0','0','0','0','0','0','0','0','Romantic Picnic Basket');

INSERT INTO `spell_scripts` VALUES ( '64142','0','15','63384','0','0','0','0','0','0','0','0','0','0','0','0','Foam Sword');



Текущее время: 03:20. Часовой пояс GMT +4.

YTDB - MaNGOS DataBase