ProjectSkyfire/SkyFireEMU — Issue #134: SCRIPT_COMMAND_CAST_SPELL = 15 not working
Author: Stengray
Created: 2012-01-30 14:24:56+00:00
State: open

As title states, if using *_scripts tables, if you use command SCRIPT_COMMAND_CAST_SPELL = 15, the spell does not cast. It essentially does nothing.

Test - this is scripting for a quest that is working properly in skyfire (old) core:

DELETE FROM gossip_menu_option WHERE menu_id=39380;
INSERT INTO gossip_menu_option (menu_id,id,option_icon,option_text,option_id,npc_option_npcflag,action_menu_id,action_poi_id,action_script_id,box_coded,box_money,box_text) VALUES (39380, 0, 0,"Can you tell me your fable, Shin?", 1, 3, 0, 0, 39380, 0, 0, '');

DELETE FROM gossip_menu WHERE entry=39380;
INSERT INTO gossip_menu (entry,text_id) VALUES (39380, 39380);

DELETE FROM gossip_scripts WHERE id=39380;
INSERT INTO gossip_scripts VALUES (39380,0,15,73840,0,0,0,0,0,0);

What this does is casts a spell on the player (spell=73840) when the player selects this gossip option. Like stated earlier, in Skyfire(old), this works properly and changes the player into a wolf for the quest. In Skyfire(new), this does nothing at all.

Raydeon