Quote:
Originally Posted by c0ncrete
you're not using EVENT_ITEM_CLICK_CAST right.
the transmute stuff is not necessary. it's specific to one item.
you're using variables that likely aren't defined in the type of script and event you have them in. you will have to get values for x, y, z, and h.
again... $itemid is defined in EVENT_ITEM_CLICK_CAST, not $spell_id.
check your logs. they will generally tell you when you have issues in your scripts.
|
I can't understand
new ->script_69231.pl
Code:
sub EVENT_ITEM_CLICK_CAST {
my %transmute = ();
$transmute[69231] = 5137;
if($itemid && $transmute[$itemid]) {
$client->NukeItem($itemid);
$client->CastSpell($transmute[$itemid], 0, 1, 0, 0);
$client->spawn2(469003,0,0,2.0,-2.0,4.47,100);
}
}
Can't run not Spawn