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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2010, 04:00 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default any idea's why this wont work

{if ($text =~/Buffs/i){ if(plugin::check_hasitem(2377)) { quest::say ("Good, stand where you are while I cast");
quest::selfcast(5297);
quest::selfcast(527;
quest::selfcast(5522);
quest::selfcast(5507);
quest::selfcast(5415);
quest::selfcast(5365);
quest::selfcast(539;
quest::selfcast(2886); } }



it works if i take the hasitem put out but not with it even if i have the item
Reply With Quote
  #2  
Old 01-14-2010, 04:07 PM
Wesell
Sarnak
 
Join Date: Mar 2009
Location: none
Posts: 30
Default

Might be helpful if you posted the entire script. It looks like you have a superfluous { in your script, but that might just be a cut/paste error.
Reply With Quote
  #3  
Old 01-14-2010, 04:13 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

#A conversation to Heal Player for a Cost
sub EVENT_SAY
{
if ($text =~/Hail/i){ quest::say ("Welcome to Citadel Of the Warlord , $name. Would you like me to [Scribe] your spells? Maybe you would like Your (Meditate) skill, Or maybe your a (Bard) or would you like [buffs] or do you just need a small [heal] to save your butt");}
if ($text =~/Heal/i){ quest::say ("Good, stand where you are while I cast");
quest::selfcast(13);}
if ($text =~/Buff/i){
if ($ulevel <= 46) { quest::say ("Good, stand where you are while I cast");
quest::selfcast(27;
quest::selfcast(10);
quest::selfcast(174);
quest::selfcast(145);
quest::selfcast(3692);} }
if ($text =~/Meditate/i){ quest::say ("Here you go $name");
quest::setskill(31,150);}
if ($text =~/Bard/i){ if($class eq 'Bard') { quest::say ("Here you go $name");
quest::setskill(70,150);
quest::setskill(54,150);
quest::setskill(49,150);
quest::setskill(12,150);
quest::setskill(41,150);
} }
if ($text =~/Buff/i){ if ($ulevel >= 46) { quest::say ("Good, stand where you are while I cast");
quest::selfcast(156;
quest::selfcast(4054);
quest::selfcast(3397);
quest::selfcast(5507);
quest::selfcast(2570);
quest::selfcast(3467); } }
if ($text =~/Scribe/i){
quest::say ("Good, stand where you are while I cast");
quest::scribespells($ulevel); } }
{
if ($text =~/Buffs/i){ if(plugin::check_hasitem(2377)) { quest::say ("Good, stand where you are while I cast");
quest::selfcast(5297);
quest::selfcast(527;
quest::selfcast(5522);
quest::selfcast(5507);
quest::selfcast(5415);
quest::selfcast(5365);
quest::selfcast(539;
quest::selfcast(2886); } }


sorry
Reply With Quote
  #4  
Old 01-14-2010, 04:16 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

it made smile faces outta some of the lower text its got the 4th number and the ) though
Reply With Quote
  #5  
Old 01-14-2010, 04:21 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

It makes smiley faces because you are not using the code brackets.

Anyways, to check for the item:
plugin::check_hasitem($client, itemid);
Reply With Quote
  #6  
Old 01-14-2010, 04:23 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

so i add that in like it was a quest:: right
Reply With Quote
  #7  
Old 01-14-2010, 04:27 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

#A conversation to Heal Player for a Cost
sub EVENT_SAY
{
if ($text =~/Hail/i){ quest::say ("Welcome to Citadel Of the Warlord , $name. Would you like me to [Scribe] your spells? Maybe you would like Your (Meditate) skill, Or maybe your a (Bard) or would you like [buffs] or do you just need a small [heal] to save your butt");}
if ($text =~/Heal/i){ quest::say ("Good, stand where you are while I cast");
quest::selfcast(13);}
if ($text =~/Buff/i){
if ($ulevel <= 46) { quest::say ("Good, stand where you are while I cast");
quest::selfcast(27;
quest::selfcast(10);
quest::selfcast(174);
quest::selfcast(145);
quest::selfcast(3692);} }
if ($text =~/Meditate/i){ quest::say ("Here you go $name");
quest::setskill(31,150);}
if ($text =~/Bard/i){ if($class eq 'Bard') { quest::say ("Here you go $name");
quest::setskill(70,150);
quest::setskill(54,150);
quest::setskill(49,150);
quest::setskill(12,150);
quest::setskill(41,150);
} }
if ($text =~/Buff/i){ if ($ulevel >= 46) { quest::say ("Good, stand where you are while I cast");
quest::selfcast(156;
quest::selfcast(4054);
quest::selfcast(3397);
quest::selfcast(5507);
quest::selfcast(2570);
quest::selfcast(3467); } }
if ($text =~/Scribe/i){
quest::say ("Good, stand where you are while I cast");
quest::scribespells($ulevel); } }

if ($text =~/Buffs/i){ plugin::check_hasitem($client, 2377);
quest::selfcast(5297);
quest::selfcast(527;
quest::selfcast(5522);
quest::selfcast(5507);
quest::selfcast(5415);
quest::selfcast(5365);
quest::selfcast(539;
quest::selfcast(2886); }

thats what im using now and still nto getting anything
Reply With Quote
  #8  
Old 01-14-2010, 04:29 PM
Wesell
Sarnak
 
Join Date: Mar 2009
Location: none
Posts: 30
Default

Try this out:
Code:
sub EVENT_SAY 
{
    if ($text =~/Hail/i)
    {
        quest::say ("Welcome to Citadel Of the Warlord , $name. Would you like me to [Scribe] your spells? Maybe you would like Your (Meditate) skill, Or maybe your a (Bard) or would you like [buffs] or do you just need a small [heal] to save your butt");
    }
    if ($text =~/Heal/i)
    {
        quest::say("Good, stand where you are while I cast");
        quest::selfcast(13);
    }
    if ($text =~/Buff/i)
    {
        if ($ulevel <= 46)
        {
            quest::say("Good, stand where you are while I cast");
            quest::selfcast(278);
            quest::selfcast(10);
            quest::selfcast(174);
            quest::selfcast(145);
            quest::selfcast(3692);
        }
    }
    if ($text =~/Meditate/i)
    {
        quest::say("Here you go $name");
        quest::setskill(31,150);
    }
    if ($text =~/Bard/i)
    {
        if($class eq 'Bard')
        {
            quest::say("Here you go $name");
            quest::setskill(70,150);
            quest::setskill(54,150);
            quest::setskill(49,150);
            quest::setskill(12,150);
            quest::setskill(41,150);
        }
    }
    if ($text =~/Buff/i)
    {
        if ($ulevel >= 46)
        {
            quest::say("Good, stand where you are while I cast");
            quest::selfcast(1568);
            quest::selfcast(4054);
            quest::selfcast(3397);
            quest::selfcast(5507);
            quest::selfcast(2570);
            quest::selfcast(3467);
        }
    }
    if ($text =~/Scribe/i)
    {
        quest::say("Good, stand where you are while I cast");
        quest::scribespells($ulevel);
    }
    if ($text =~/Buffs/i)
    {
        if(plugin::check_hasitem($client, 2377))
        {
            quest::say("Good, stand where you are while I cast");
            quest::selfcast(5297);
            quest::selfcast(5278);
            quest::selfcast(5522);
            quest::selfcast(5507);
            quest::selfcast(5415);
            quest::selfcast(5365);
            quest::selfcast(5398);
            quest::selfcast(2886);
        }
    }
}
Reply With Quote
  #9  
Old 01-14-2010, 04:33 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

No, plugin::check_hasitem($client, id) returns true or false. So:

Code:
if (plugin::check_hasitem($client, 1234)) {
  quest::say("Very good, you have item 1234 either with you or in your bank!");
}
Reply With Quote
  #10  
Old 01-14-2010, 04:34 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

thats also not working
Reply With Quote
  #11  
Old 01-14-2010, 04:36 PM
Wesell
Sarnak
 
Join Date: Mar 2009
Location: none
Posts: 30
Default

Right, you need to pass the client as the first parameter. Fixed up the last post a little.
Reply With Quote
  #12  
Old 01-14-2010, 04:36 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

can someone test my script and see if it works on there server maybe my plugin for check_hasitem is bad
Reply With Quote
  #13  
Old 01-14-2010, 04:39 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

Post your latest script. And use code brackets like this without the spaces:
[ code ]Code here[ /code ]
Reply With Quote
  #14  
Old 01-14-2010, 04:42 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

[ code ] sub EVENT_SAY
{
if ($text =~/Hail/i)
{
quest::say ("Welcome to Citadel Of the Warlord , $name. Would you like me to [Scribe] your spells? Maybe you would like Your (Meditate) skill, Or maybe your a (Bard) or would you like [buffs] or do you just need a small [heal] to save your butt");
}
if ($text =~/Heal/i)
{
quest::say("Good, stand where you are while I cast");
quest::selfcast(13);
}
if ($text =~/Buff/i)
{
if ($ulevel <= 46)
{
quest::say("Good, stand where you are while I cast");
quest::selfcast(27;
quest::selfcast(10);
quest::selfcast(174);
quest::selfcast(145);
quest::selfcast(3692);
}
}
if ($text =~/Meditate/i)
{
quest::say("Here you go $name");
quest::setskill(31,150);
}
if ($text =~/Bard/i)
{
if($class eq 'Bard')
{
quest::say("Here you go $name");
quest::setskill(70,150);
quest::setskill(54,150);
quest::setskill(49,150);
quest::setskill(12,150);
quest::setskill(41,150);
}
}
if ($text =~/Buff/i)
{
if ($ulevel >= 46)
{
quest::say("Good, stand where you are while I cast");
quest::selfcast(156;
quest::selfcast(4054);
quest::selfcast(3397);
quest::selfcast(5507);
quest::selfcast(2570);
quest::selfcast(3467);
}
}
if ($text =~/Scribe/i)
{
quest::say("Good, stand where you are while I cast");
quest::scribespells($ulevel);
}
if ($text =~/Buffs/i)
{
if(plugin::check_hasitem($client, 2377))
{
quest::say("Good, stand where you are while I cast");
quest::selfcast(5297);
quest::selfcast(527;
quest::selfcast(5522);
quest::selfcast(5507);
quest::selfcast(5415);
quest::selfcast(5365);
quest::selfcast(539;
quest::selfcast(2886);
}
}
} [ /code ]
Reply With Quote
  #15  
Old 01-14-2010, 04:42 PM
jkennedy
Hill Giant
 
Join Date: Dec 2009
Posts: 175
Default

Code:
sub EVENT_SAY 
{
    if ($text =~/Hail/i)
    {
        quest::say ("Welcome to Citadel Of the Warlord , $name. Would you like me to [Scribe] your spells? Maybe you would like Your (Meditate) skill, Or maybe your a (Bard) or would you like [buffs] or do you just need a small [heal] to save your butt");
    }
    if ($text =~/Heal/i)
    {
        quest::say("Good, stand where you are while I cast");
        quest::selfcast(13);
    }
    if ($text =~/Buff/i)
    {
        if ($ulevel <= 46)
        {
            quest::say("Good, stand where you are while I cast");
            quest::selfcast(278);
            quest::selfcast(10);
            quest::selfcast(174);
            quest::selfcast(145);
            quest::selfcast(3692);
        }
    }
    if ($text =~/Meditate/i)
    {
        quest::say("Here you go $name");
        quest::setskill(31,150);
    }
    if ($text =~/Bard/i)
    {
        if($class eq 'Bard')
        {
            quest::say("Here you go $name");
            quest::setskill(70,150);
            quest::setskill(54,150);
            quest::setskill(49,150);
            quest::setskill(12,150);
            quest::setskill(41,150);
        }
    }
    if ($text =~/Buff/i)
    {
        if ($ulevel >= 46)
        {
            quest::say("Good, stand where you are while I cast");
            quest::selfcast(1568);
            quest::selfcast(4054);
            quest::selfcast(3397);
            quest::selfcast(5507);
            quest::selfcast(2570);
            quest::selfcast(3467);
        }
    }
    if ($text =~/Scribe/i)
    {
        quest::say("Good, stand where you are while I cast");
        quest::scribespells($ulevel);
    }
    if ($text =~/Buffs/i)
    {
        if(plugin::check_hasitem($client, 2377))
        {
            quest::say("Good, stand where you are while I cast");
            quest::selfcast(5297);
            quest::selfcast(5278);
            quest::selfcast(5522);
            quest::selfcast(5507);
            quest::selfcast(5415);
            quest::selfcast(5365);
            quest::selfcast(5398);
            quest::selfcast(2886);
        }
    }
}
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 08:01 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