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 03-23-2015, 11:58 AM
Bandor
Hill Giant
 
Join Date: May 2014
Posts: 209
Default Making a item link in text

How can I go about doing this? I know how to make clickable links for quest dialogue but how do I make it a actual link for an item? I had a old quest laying around which did this fine so I modified it to do what I want but It keeps saying invalid item ID in varlink . Will not summon the item either. so not sure what I did wrong. Any Suggestions?


Code:
         sub EVENT_SAY {
       my %hash = ("Cleric" => [3239],
        "Druid" => [3239],
        "Shaman" => [3239],
        "Necromancer" => [3239],
        "Wizard" => [3239],
        "Magician" => [3239],
        "Enchanter" => [3239]);
		 if($text=~/hail/i) {
		plugin::Whisper("Hello $name. Would you like my charm? If you see no Item to choose it means I have nothing for you!");
 if (defined $hash{$class}[1]) {
                            foreach my $item (@{$hash{$class}}) {
                                    $client->Message(315, quest::varlink($item) . " " . quest::saylink($item, 1, "Choose"));
                }
                    } else {
                $client->Message(315, quest::varlink($hash{$class}) . " " . quest::saylink($hash{$class}, 1, "Choose"));
		}
                    } else {
                            if ($hash{$class} == int($text)) {
                    quest::setglobal("Charms", $hash{$class}, 5, "F");
                    quest::summonitem($hash{$class});
                }
            }
        }
		}
__________________
Owner and Developer - Everquest: A New World
Reply With Quote
  #2  
Old 03-23-2015, 12:07 PM
Bandor
Hill Giant
 
Join Date: May 2014
Posts: 209
Default

found the code for item link,thought not sure what to do with it now lol. Might have to just rewrite the quest.
__________________
Owner and Developer - Everquest: A New World
Reply With Quote
  #3  
Old 03-23-2015, 12:17 PM
Bandor
Hill Giant
 
Join Date: May 2014
Posts: 209
Default

Don't Mind my ramblings rewrote it much simpler now.

Incase your curious asto how to add items to text or w/e.

Code:
         sub EVENT_SAY {
		 if($text=~/hail/i) {
		plugin::Whisper("Hello $name. Would you like my " . quest::saylink("charm", 1) . " ?");
quest::itemlink(3239);
	}
	elsif($text=~/charm/i) {
	plugin::Whisper("Here you go!");
	quest::summonitem(3239);
	}
	}
__________________
Owner and Developer - Everquest: A New World
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 01:58 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