|
|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
| Quests::Q&A This is the quest support section |

01-09-2013, 12:12 AM
|
 |
Dragon
|
|
Join Date: Dec 2009
Posts: 719
|
|
oops. my bad.
i meant EVENT_ITEM_CLICK_CAST...
and it needs to be in an item script named something like quests\items\script_<scriptfileid>.pl instead of player.pl
<scriptfileid> is set in the database for that item's entry.
|

01-09-2013, 02:30 AM
|
 |
Sarnak
|
|
Join Date: Aug 2012
Location: work
Posts: 76
|
|
PEQ\quests\items crate new pl
For example
script_51778.pl (51778=item:Fireworks Rack
Content:
sub EVENT_ITEM_CLICK
{
if($itemid == 51778 ) # Fireworks Rack
{
if($client->CastSpell(7652))
{
quest::spawn2(218068,0,0,$x,$y,$z,$h);
}
}
Right?? HELP ! I don't understand
__________________
To create the most beautiful server for "Arctic Hardcore 1999[BP]" Welcome to our server
|

01-09-2013, 02:53 AM
|
 |
Dragon
|
|
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
|
|
Quote:
Originally Posted by javewow
PEQ\quests\items crate new pl
For example
script_51778.pl (51778=item:Fireworks Rack
Content:
sub EVENT_ITEM_CLICK
{
if($itemid == 51778 ) # Fireworks Rack
{
if($client->CastSpell(7652))
{
quest::spawn2(218068,0,0,$x,$y,$z,$h);
}
}
Right?? HELP ! I don't understand
|
1. Please use [ CODE] blocks (it's the # icon when making a reply)
2. Please stop using [ COLOR], instead refer to #1
3. Due to language barrier, perhaps post your entire script (IF you use the CODE blocks). Because even if you don't understand the answers given and those answering don't understand your English, they WILL understand Perl -- thus your chances for an accurate (to what you want) answer will increase exponentially.
Those are my suggestions to make it easier on everyone.
|

01-09-2013, 03:40 AM
|
 |
Dragon
|
|
Join Date: Dec 2009
Posts: 719
|
|
i may have misunderstood your original intentions due to the fact that you were using EVENT_ITEM in your first post. without fully understanding what it is you are trying to do, it's extremely difficult to give you correct information.
if you are just looking to verify that a spell has been cast by the client, then EVENT_CAST is what you want to use, as lerxst2112 previously suggested.
|

01-09-2013, 10:50 AM
|
 |
Sarnak
|
|
Join Date: Aug 2012
Location: work
Posts: 76
|
|
The picture shows
HELP!

__________________
To create the most beautiful server for "Arctic Hardcore 1999[BP]" Welcome to our server
|

01-09-2013, 01:03 PM
|
 |
Dragon
|
|
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
|
|
|

01-09-2013, 01:35 PM
|
|
Dragon
|
|
Join Date: May 2010
Posts: 965
|
|
Try this.
also please notice the use of the [CODE] tag.
Code:
sub EVENT_CAST {
if($spell_id == 7652) {
quest::spawn2(218068,0,0,$x,$y,$z,$h);
}
}
|

01-09-2013, 09:28 PM
|
 |
Sarnak
|
|
Join Date: Aug 2012
Location: work
Posts: 76
|
|
Quote:
Originally Posted by sorvani
Try this.
also please notice the use of the [CODE] tag.
Code:
sub EVENT_CAST {
if($spell_id == 7652) {
quest::spawn2(218068,0,0,$x,$y,$z,$h);
}
}
|
Use your methods do not spawn
I will not
Code:
sub EVENT_ITEM_CLICK_CAST {
my %transmute = ();
$transmute[69231] = 5137;
if($spell_id == 5137) {
quest::spawn2(218068,0,0,$x,$y,$z,$h);
}
}
__________________
To create the most beautiful server for "Arctic Hardcore 1999[BP]" Welcome to our server
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 09:15 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |