View Single Post
  #2  
Old 07-13-2009, 04:17 PM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default

here is the final quest I came up with that works with no errors. Thanks again to pfyon for the help.

Code:
#############
#Written By : cubber
#Quest Name: #summonitem proxy
#Quest Zone: Cshome
#Quest NPC: Krakskull
#################
sub EVENT_SAY
{
   if($text=~/Hail/i)
      {
         quest::say("Hello there $name,  need some [items summoned]?");
      }
elsif ($text=~/items summoned/i)
			
			{
				quest::say("$race, I have been gifted with the ability to summon any item or spell in this world for you.  However, I am not a mind reader, and in order for me to summon anything for you I need to know it's ID number.  Please use the command: #itemsearch insert_itemname_here , and just tell me the number next to the item you desire.");
			}
			
				elsif ($text=~/\d{0,9}/)
					{
						quest::emote("Krakskull begins to chant...");
						quest::summonitem("$text");      	
						quest::emote("The item you seek apears before your eyes!");
					}
			
				
}
Obviously you could stick this on any NPC or create one and do whatever you want with it. I just stuck it in cshome now with a very basic setup so I could test it and take it from there before I put it in a place where players could access it.

But it works!
Reply With Quote