x-scythe
05-28-2004, 11:03 AM
sub EVENT_SAY
{
if($text~=/Hail/i){quest::say("Why hello there $name! My name is
Triton. I used to be the most famed metal shaper in all the lands.
That is, until I lost my [Blue Jade Shard].");}
if($text~=/blue jade shard/i){quest::say("Yes, it created a powerfulsubstance which I added to everything I crafted. Without it...I ama doomed man...would you go and [retrieve] it for me? You would behighly rewarded of course.");}
if($text~=/retrieve/i){quest::say("Really?! Well...let me tell you
where it is then you can decide if you really want to go get it for me.
Let me tell you a [story].");}
if($text~=/story/i){quest::emote("Triton takes a deep breath and
begins his story");
quest::say("A few weeks ago I was traveling in a vast cave that wasinhabited by kobolds, or so I thought it was. I was looking for a newtype of metal that may increase the strength of my armors even more.As I traveled deeper and deeper, I began to see a change in the texture of the cave. I didn't think anything of it at the time, until the cave suddenly expanded above my head and it appeared to have been carved out into a passageway. Me, being curious, traveled deeper still. Thats when I ran into the Fire Giants. I snuck past them and went deeper into the fire giant layer. Then I saw it, like nothing else I'd ever encountered. A fire dragon. I thought since I has hidden the dragon wouldn't be able to see me, boy was I wrong. It raised its wings and blew a huge fire ball in my direction, I was so scared I ran out of the cavern and by the time I was finally above ground again I realized I had left my blue jade shard behind the dragon where I was hiding. So, knowing you will have to get past giants and slay a dragon, are you still willing to go on this quest for me?");}
if($text~=/yes/i)quest::say("Wow! Thank you! You will be GREATLY rewarded, this I promise you. The entrance to the cavern is in the Lavastorm Mountains on a narrow rock ledge on the side of a great crater filled with lava. Good luck!");}
}
sub EVENT_ITEM
{
if($item1==xxxx){quest::say("WOW! THANK YOU! YOU'VE RETURNED IT TO ME! HERE IS THE REWARD I PROMISED YOU!");
quest::summonitem(xxxx);
quest::exp(1000);
}
aight thats it...i had some questions tho as to if i did things right, this is my first quest like the subject says so it might not be %100 great...
when you turn in an item to finish the quest is this the proper code?
{ if($item1==xxxx)
any input would be greatly appreciated
EDIT: forgot to mention i purposely left the item# as "xxxx" since i do not run a server of my own and the item does not exist hehe
{
if($text~=/Hail/i){quest::say("Why hello there $name! My name is
Triton. I used to be the most famed metal shaper in all the lands.
That is, until I lost my [Blue Jade Shard].");}
if($text~=/blue jade shard/i){quest::say("Yes, it created a powerfulsubstance which I added to everything I crafted. Without it...I ama doomed man...would you go and [retrieve] it for me? You would behighly rewarded of course.");}
if($text~=/retrieve/i){quest::say("Really?! Well...let me tell you
where it is then you can decide if you really want to go get it for me.
Let me tell you a [story].");}
if($text~=/story/i){quest::emote("Triton takes a deep breath and
begins his story");
quest::say("A few weeks ago I was traveling in a vast cave that wasinhabited by kobolds, or so I thought it was. I was looking for a newtype of metal that may increase the strength of my armors even more.As I traveled deeper and deeper, I began to see a change in the texture of the cave. I didn't think anything of it at the time, until the cave suddenly expanded above my head and it appeared to have been carved out into a passageway. Me, being curious, traveled deeper still. Thats when I ran into the Fire Giants. I snuck past them and went deeper into the fire giant layer. Then I saw it, like nothing else I'd ever encountered. A fire dragon. I thought since I has hidden the dragon wouldn't be able to see me, boy was I wrong. It raised its wings and blew a huge fire ball in my direction, I was so scared I ran out of the cavern and by the time I was finally above ground again I realized I had left my blue jade shard behind the dragon where I was hiding. So, knowing you will have to get past giants and slay a dragon, are you still willing to go on this quest for me?");}
if($text~=/yes/i)quest::say("Wow! Thank you! You will be GREATLY rewarded, this I promise you. The entrance to the cavern is in the Lavastorm Mountains on a narrow rock ledge on the side of a great crater filled with lava. Good luck!");}
}
sub EVENT_ITEM
{
if($item1==xxxx){quest::say("WOW! THANK YOU! YOU'VE RETURNED IT TO ME! HERE IS THE REWARD I PROMISED YOU!");
quest::summonitem(xxxx);
quest::exp(1000);
}
aight thats it...i had some questions tho as to if i did things right, this is my first quest like the subject says so it might not be %100 great...
when you turn in an item to finish the quest is this the proper code?
{ if($item1==xxxx)
any input would be greatly appreciated
EDIT: forgot to mention i purposely left the item# as "xxxx" since i do not run a server of my own and the item does not exist hehe