Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

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

Reply
 
Thread Tools Display Modes
  #16  
Old 01-09-2013, 10:04 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

PM's go unanswered. So. What is your native language?
Reply With Quote
  #17  
Old 01-09-2013, 10:17 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

Quote:
Originally Posted by javewow View Post
I can't understand
clearly.

Quote:
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
because you are doing it wrong.

as i've said before...

1) you do not need %transmute. stop using it.

2) the script name should be script_<scriptfileid>.pl

EXAMPLE:
Code:
mysql> select id, name, clickeffect, scriptfileid from items where name = "Fireworks Rack";
+-------+----------------+-------------+--------------+
| id    | name           | clickeffect | scriptfileid |
+-------+----------------+-------------+--------------+
| 51778 | Fireworks Rack |        7652 |            0 |
+-------+----------------+-------------+--------------+
1 row in set (0.30 sec)
the item you are using doesn't have a script associated with it. assign one in the database and name your script accordingly.

i have no idea where you are getting the numbers 69231 or 5137. if you don't explain everything you are doing and where you are getting the information from, we can only guess at how to help you resolve your issue.
Reply With Quote
  #18  
Old 01-09-2013, 10:29 PM
javewow's Avatar
javewow
Sarnak
 
Join Date: Aug 2012
Location: work
Posts: 74
Default

Before, I use "Fireworks Rack" is error

Behind me to "Firework: Dancing Lights"

Firework: Dancing Lights ID = 69231 spellID=5137

I want to click can summon -> Spawn NPC

But Pl error Can't succeed
__________________
To create the most beautiful server for "!!~[BP] PLARYBOT EQ~!" Welcome to our server
Reply With Quote
  #19  
Old 01-09-2013, 10:40 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

if you'd do it the way i've instructed, it will work.
Reply With Quote
  #20  
Old 01-09-2013, 10:48 PM
javewow's Avatar
javewow
Sarnak
 
Join Date: Aug 2012
Location: work
Posts: 74
Default

How to "Firework: Dancing Lights" increase "scriptfileid" ?
__________________
To create the most beautiful server for "!!~[BP] PLARYBOT EQ~!" Welcome to our server
Reply With Quote
  #21  
Old 01-09-2013, 10:57 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

a spell isn't an item...
so it doesn't have an entry in the items table in the database...
so it won't have an associated scriptfileid field...
Reply With Quote
  #22  
Old 01-09-2013, 10:59 PM
javewow's Avatar
javewow
Sarnak
 
Join Date: Aug 2012
Location: work
Posts: 74
Default

Quote:
Originally Posted by c0ncrete View Post
if you'd do it the way i've instructed, it will work.
Thank you I understand

I do try

--------------------------------------------
Update items set scriptfileid = "xxxxxx" where id=69231;

------------------------------------------
Now change to

Code:
mysql> select id, name, clickeffect, scriptfileid from items where name = "Firework: Dancing Lights";
+-------+--------------------------+-------------+--------------+
| id    | name                     | clickeffect | scriptfileid |
+-------+--------------------------+-------------+--------------+
| 69231 | Firework: Dancing Lights |        5137 |        32767 |
+-------+--------------------------+-------------+--------------+
1 row in set

mysql>
save->script_32767.pl
__________________
To create the most beautiful server for "!!~[BP] PLARYBOT EQ~!" Welcome to our server
Reply With Quote
  #23  
Old 01-09-2013, 11:03 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

yes, then name the quest file script_32767.pl and forget everything about %transmute and $spell_id. you're just looking for the item click.
Reply With Quote
  #24  
Old 01-09-2013, 11:08 PM
javewow's Avatar
javewow
Sarnak
 
Join Date: Aug 2012
Location: work
Posts: 74
Default

Just testing a grammar


Still have problems
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 spawn

Ask you to give a pl
__________________
To create the most beautiful server for "!!~[BP] PLARYBOT EQ~!" Welcome to our server
Reply With Quote
  #25  
Old 01-09-2013, 11:15 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

Quote:
Originally Posted by javewow View Post
Just testing a grammar


Still have problems
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 spawn

Ask you to give a pl
quest::spawn2(npc_type,grid,guildwarset,x,y,z,head ing)
Reply With Quote
  #26  
Old 01-09-2013, 11:21 PM
javewow's Avatar
javewow
Sarnak
 
Join Date: Aug 2012
Location: work
Posts: 74
Default

Quote:
Originally Posted by c0ncrete View Post
quest::spawn2(npc_type,grid,guildwarset,x,y,z,head ing)
The success

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);
                quest::spawn2(469003,0,0,2.0,-2.0,4.47,100);
  }
}

Thank you very much! Learn from you the
__________________
To create the most beautiful server for "!!~[BP] PLARYBOT EQ~!" Welcome to our server
Reply With Quote
  #27  
Old 01-09-2013, 11:24 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

YAY! GREEN FOR GO!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:13 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3