![]() |
|
#11
|
||||
|
Quote:
Quests are handled through PERL (.pl) files which are labelled via name or NPC ID#. When an event happen it will check it's PERL file to see if there is a reaction or event that should happen in response. Code:
sub EVENT_SAY {
if($text=~/Hail/i) {
quest::say("Hail, traveler! You look as if you could use a [drink]!");
}
if($text=~/drink/i) {
quest::say("Ahhhhh... You do need a drink! If you bring me a muffin I am sure I could spare you some of my milk!");
}
}
sub EVENT_ITEM {
if(plugin::check_handin(\%itemcount, 13014 => 1)) {
quest::say("Ahhhh! Thank you so much for this delicious muffin! Have a bottle of this quenching milk!");
quest::exp(9001);
quest::ding();
quest::summonitem(13087);
}
}
Anything within EVENT_ITEM is how we determine how the NPC reacts when handed an ITEM(s). In this case he accepts item 13014 (muffin) in exchange for 13087 (milk). quest::exp determines how much experience you gain from that turn-in. quest::ding is the sound effect that you hear when you complete the quest. quest::summonitem is the item reward that you see. Now that you hopefully understand the basics of how the quest scripts work I can explain why MultiQuesting currently does not work. When an NPC is handed an item(s) it does a check that if ALL conditions are met. If ALL conditions are not met.. then the quest is failed. The NPC does not flag itself as receiving an item for partial completion of the quest. Would be be possible to have multiquesting? I believe so. I am no PERL expert by any means but I believe you could somehow set a flag for the NPC to show that part of the quest had been completed. This would result in having to re-script every quest that we have... which just isn't going to happen. [You must be logged in to view images. Log in or Register.] | |||
|
|
||||
|
#12
|
||||
|
Quote:
Farming plat that way is fine, but the fact that that does not buy you everything is a plus to me.
__________________
Accersitus Mage
Ennui Monk Vita mid 40s Cleric | |||
|
|
||||
|
#13
|
|||
|
No argument here =) I just took his post as well if u didn't get it yourself then its stupid =p
| ||
|
|
|||
|
#14
|
|||
|
Wish more people knew this so they didn't do retarded shit like killing AC on their 50 bard.
__________________
-Halos
| ||
|
|
|||
|
#16
|
||||
|
Quote:
Alas, I've been learning PERL very slowly so some of the more esotheric code in the plugin::check_handin code still confuses me, but I'll get there and give it a go ) Regards, Mg
__________________
| |||
|
|
||||
|
#17
|
||||
|
Quote:
| |||
|
|
||||
|
#18
|
|||
|
What if you only edited quests that contained multiple items and/or money, and at least one of the items had to be No-Drop?
The only reason we need MQ's are because at least one item is No-Drop. That would probably eliminate thousands of quests. Just a thought.. | ||
|
|
|||
|
#19
|
||||
|
Quote:
| |||
|
|
||||
![]() |
|
|