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

02-03-2009, 01:55 PM
|
|
Demi-God
|
|
Join Date: May 2007
Posts: 1,032
|
|
I hardly see anything "crude" there Trev =P
Its a simple and well writen out quest code =)
For the purpose of this thread this is the only part truly needed:
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 1319 => 1)) {
my %rewards = (
"Warrior" => 4917, "Rogue" => 4907, "Monk" => 1206, "Berserker" => 55607, "Shadowknight" => 9829, "Paladin" => 9829, "Ranger" => 9829, "Bard" => 9829, "Beastlord" => 9829, "Cleric" => 9829, "Druid" => 9829, "Shaman" => 9829, "Wizard" => 9829, "Mage" => 9829, "Enchanter" => 9829, "Necromancer" => 9829
);
if(defined($rewards{$class})) {
quest::summonitem($rewards{$class});
quest::emote("Works to make a piece of armor from the instructions you provided to him." );
quest::say ("Here you go $name.");
}
}
|

02-03-2009, 02:14 PM
|
|
Dragon
|
|
Join Date: Feb 2007
Posts: 659
|
|
Just for completions sake I'll ask the easy question, you do have the plugins, yes?
And for any hand in quest you should also use the return_items plugin for returning wrong items.
|

02-03-2009, 03:11 PM
|
|
Dragon
|
|
Join Date: Dec 2007
Posts: 658
|
|
This is now what my item part looks like. It still isn't working. The items needed are all the correct items, and I checked my plugins folder and it has the check_handin, guildmasters, check_hasitem, and soulbinders.
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 51624 => 1, 1563=> 1, 1568=> 1)) {
my %rewards = (
"Warrior" => 1569, "Rogue" => 1581, "Monk" => 1579, "Berserker" => 1577, "Shadowknight" => 1577, "Paladin" => 1577, "Ranger" => 1569, "Bard" => 1569, "Beastlord" => 1579, "Cleric" => 1582, "Druid" => 1582, "Shaman" => 1582, "Wizard" => 1581, "Mage" => 1581, "Enchanter" => 1581, "Necromancer" => 1581
);
if(defined($rewards{$class})) {
quest::say("My mind can be at ease knowing those fiends are no more.");
quest::emote("pulls a gleaming weapon out of a bag.");
quest::summonitem($rewards{$class});
quest::say("Take this weapon. I am sure you will be able to make use of it.");
}
}
}
|

02-03-2009, 03:26 PM
|
|
Demi-God
|
|
Join Date: May 2007
Posts: 1,032
|
|
does any other quest with items hand in works?
|

02-03-2009, 03:28 PM
|
|
Dragon
|
|
Join Date: Dec 2007
Posts: 658
|
|
Yeah all my other quests work. This is the only one I have done with multiple items and rewards though, but I don't think that really makes a difference.
|

02-03-2009, 03:59 PM
|
|
Dragon
|
|
Join Date: Dec 2007
Posts: 658
|
|
The items names that I am turning in have an asterisk in them. Do you think that could be throwing the whole thing off?
|

02-03-2009, 04:02 PM
|
|
Dragon
|
|
Join Date: Feb 2007
Posts: 659
|
|
Quote:
Originally Posted by Randymarsh9
The items names that I am turning in have an asterisk in them. Do you think that could be throwing the whole thing off?
|
No it doesn't look at the name. The plugin is pretty simple. Which plugins folder are you using? There are a couple. But since you said other handin quests were working I assume you have them in the right spot. Try running the quest from the command line, ie perl <questname> and see if that gives you anything. You can also look in the logs to see if you get any errors.
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 10:12 AM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |