PDA

View Full Version : CVS has a problem or....


Aramid
09-03-2006, 03:12 PM
I don't know if this is the way the files are actually in CVS or if it's a bug with WinCVS, but here is an example of one of them. I only removed the spaces between the code, otherwise it's just as I have received it, 2 times....

# EPIC CLERIC (Timorous deep)

EVENT_ITEM {
if (plugin::check_handin(\%itemcount,28023=>1)) { # Orb of the triumvirate
#quest::say("[im not mute but really shy, what should i say ?]");
quest::summonitem(5532); # Water Sprinkler of Nem Ankh
quest::depop();
quest::exp(200000);
quest::ding();
}
plugin::return_items(\%itemcount); # return unused items
}
#End of File, Zone:timorous NPC:96086 -- Avatar of Water


Here's what it should be (additions in red)


# EPIC CLERIC (Timorous deep)

sub EVENT_ITEM {
if (plugin::check_handin(\%itemcount,28023=>1)) { # Orb of the triumvirate
#quest::say("[im not mute but really shy, what should i say ?]");
quest::summonitem(5532); # Water Sprinkler of Nem Ankh
quest::depop();
quest::exp(200000);
quest::ding();
}
else{
plugin::return_items(\%itemcount); # return unused items
}
}
#End of File, Zone:timorous NPC:96086 -- Avatar of Water


I haven't dug deep into this yet, but I have found 3 files like this only because there 3 of the files I just submitted in my Druid/Ranger & Cleric Epic Quest files, so I am currently very familiar with how those quests work.

Can anyone verify, even these 3 files...
1. Avatar_of_water.pl in timorous
2. Shmendrik_lavawalker.pl in lakerathe
3. Natasha_whitewater.pl in lakerathe

Also, check out check_handin.pl in the plugin folder. It also looks hosed.

ylosh
09-03-2006, 03:29 PM
added the sub to event item in avatar of water .pl file. should sync up in a little.

the return items plugin doesen't need to go in an else statement.

just ran through shmendrik and natasha on PEQ and they're fine.

Aramid
09-05-2006, 07:50 AM
Maybe something happens to the download then, because both Schmendrik and Natasha work but give me the Items I hand them back. When I add the else { they keep the items as they should.

Thanks for taking a look though...

Monalin
09-06-2006, 01:57 PM
I've been trying to figure out why this wont work

[CODE]sub EVENT_SAY
{
if($text=~/Hail/i)
{
quest::say("Oh... sure whatever");
}
else if($text=~/the owl flies at midnight/i)
{
quest::say(

fathernitwit
09-06-2006, 03:24 PM
elsif in perl, not "else if"