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

09-17-2011, 12:57 AM
|
 |
Developer
|
|
Join Date: Mar 2003
Posts: 1,505
|
|
No, that is fine. You should use a program like Notepad++. The colorful GUI will show you that you still missed a quote at item 1374/12021 and an extra close bracket at the end of the file.
EDIT: Here's a cleaned up version. Didn't test it, just going off what you have.
Code:
sub EVENT_SAY {
if ($text =~/hail/i) {
plugin::Whisper("Greetings, $name! If you have found a satchel of your class and perhaps a box... I could convert them into something of use for you!");
}
}
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 1079 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1442);
}
if (plugin::check_handin(\%itemcount, 1096 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1441);
}
if (plugin::check_handin(\%itemcount, 1119 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1445);
}
if (plugin::check_handin(\%itemcount, 1261 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1447);
}
if (plugin::check_handin(\%itemcount, 1264 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1448);
}
if (plugin::check_handin(\%itemcount, 1266 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(11563);
}
if (plugin::check_handin(\%itemcount, 1267 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1533);
}
if (plugin::check_handin(\%itemcount, 1270 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1502);
}
if (plugin::check_handin(\%itemcount, 1319 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1458);
}
if (plugin::check_handin(\%itemcount, 1323 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1450);
}
if (plugin::check_handin(\%itemcount, 1352 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1449);
}
if (plugin::check_handin(\%itemcount, 1353 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1399);
}
if (plugin::check_handin(\%itemcount, 1372 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1432);
}
if (plugin::check_handin(\%itemcount, 1373 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1434);
}
if (plugin::check_handin(\%itemcount, 1374 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1435);
}
if (plugin::check_handin(\%itemcount, 1375 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1439);
}
if (plugin::check_handin(\%itemcount, 1377 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1440);
}
if (plugin::check_handin(\%itemcount, 1378 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1396);
}
if (plugin::check_handin(\%itemcount, 1379 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1395);
}
if (plugin::check_handin(\%itemcount, 1380 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1388);
}
if (plugin::check_handin(\%itemcount, 1381 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1387);
}
if (plugin::check_handin(\%itemcount, 1382 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1386);
}
if (plugin::check_handin(\%itemcount, 1383 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1385);
}
if (plugin::check_handin(\%itemcount, 1118 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1443);
}
if (plugin::check_handin(\%itemcount, 1394 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1389);
}
if (plugin::check_handin(\%itemcount, 1393 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1436);
}
if (plugin::check_handin(\%itemcount, 1392 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1503);
}
if (plugin::check_handin(\%itemcount, 1391 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1446);
}
}
|
 |
|
 |
 |
|
 |

09-17-2011, 02:34 AM
|
 |
Developer
|
|
Join Date: Aug 2006
Location: USA
Posts: 5,946
|
|
Starting to look much better than it did at first.
One tip would be to reduce your script down to minimum if you are having issues like that and work up from there. So, in this case, you might start like this:
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 1079 => 1, 12021 => 1)) {
quest::say("The turn in worked!");
}
}
Then try that turn in and see if it works. If so, add more:
Code:
sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount, 1079 => 1, 12021 => 1)) {
plugin::Whisper("Thanks for these items, $name! Here's your reward.");
plugin::vtell("thanks","iksar","male");
quest::summonitem(1442);
}
}
If that test is good, you can then add all of your varied copy/paste turn-ins to that list and it should work fine.
You should also add a return items plugin to the end of your items script. It will only return items that are not used up by the check_handin plugin, so you don't need to have it in an else statement or anything.
|
 |
|
 |
| 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 11:26 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |