Small revert related with ownsAtLeastOneItem method addition.
This commit is contained in:
@@ -104,7 +104,7 @@ public class BirthOfDraco extends LongTimeEvent
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* case "giveAgathion": { if (hasQuestItemss(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
* case "giveAgathion": { if (hasQuestItems(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
*/
|
||||
}
|
||||
return htmltext;
|
||||
|
@@ -77,7 +77,7 @@ public class CharacterBirthday extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("change"))
|
||||
{
|
||||
// Change Hat
|
||||
if (ownsAtLeastOneItem(player, 10250))
|
||||
if (hasQuestItems(player, 10250))
|
||||
{
|
||||
takeItems(player, 10250, 1); // Adventurer Hat (Event)
|
||||
giveItems(player, 21594, 1); // Birthday Hat
|
||||
|
@@ -104,7 +104,7 @@ public class BirthOfDraco extends LongTimeEvent
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* case "giveAgathion": { if (hasQuestItemss(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
* case "giveAgathion": { if (hasQuestItems(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
*/
|
||||
}
|
||||
return htmltext;
|
||||
|
@@ -77,7 +77,7 @@ public class CharacterBirthday extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("change"))
|
||||
{
|
||||
// Change Hat
|
||||
if (ownsAtLeastOneItem(player, 10250))
|
||||
if (hasQuestItems(player, 10250))
|
||||
{
|
||||
takeItems(player, 10250, 1); // Adventurer Hat (Event)
|
||||
giveItems(player, 21594, 1); // Birthday Hat
|
||||
|
@@ -104,7 +104,7 @@ public class BirthOfDraco extends LongTimeEvent
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* case "giveAgathion": { if (hasQuestItemss(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
* case "giveAgathion": { if (hasQuestItems(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
*/
|
||||
}
|
||||
return htmltext;
|
||||
|
@@ -77,7 +77,7 @@ public class CharacterBirthday extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("change"))
|
||||
{
|
||||
// Change Hat
|
||||
if (ownsAtLeastOneItem(player, 10250))
|
||||
if (hasQuestItems(player, 10250))
|
||||
{
|
||||
takeItems(player, 10250, 1); // Adventurer Hat (Event)
|
||||
giveItems(player, 21594, 1); // Birthday Hat
|
||||
|
@@ -104,7 +104,7 @@ public class BirthOfDraco extends LongTimeEvent
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* case "giveAgathion": { if (hasQuestItemss(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
* case "giveAgathion": { if (hasQuestItems(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
*/
|
||||
}
|
||||
return htmltext;
|
||||
|
@@ -77,7 +77,7 @@ public class CharacterBirthday extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("change"))
|
||||
{
|
||||
// Change Hat
|
||||
if (ownsAtLeastOneItem(player, 10250))
|
||||
if (hasQuestItems(player, 10250))
|
||||
{
|
||||
takeItems(player, 10250, 1); // Adventurer Hat (Event)
|
||||
giveItems(player, 21594, 1); // Birthday Hat
|
||||
|
@@ -104,7 +104,7 @@ public class BirthOfDraco extends LongTimeEvent
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* case "giveAgathion": { if (hasQuestItemss(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
* case "giveAgathion": { if (hasQuestItems(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
*/
|
||||
}
|
||||
return htmltext;
|
||||
|
@@ -77,7 +77,7 @@ public class CharacterBirthday extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("change"))
|
||||
{
|
||||
// Change Hat
|
||||
if (ownsAtLeastOneItem(player, 10250))
|
||||
if (hasQuestItems(player, 10250))
|
||||
{
|
||||
takeItems(player, 10250, 1); // Adventurer Hat (Event)
|
||||
giveItems(player, 21594, 1); // Birthday Hat
|
||||
|
@@ -104,7 +104,7 @@ public class BirthOfDraco extends LongTimeEvent
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* case "giveAgathion": { if (hasQuestItemss(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
* case "giveAgathion": { if (hasQuestItems(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
*/
|
||||
}
|
||||
return htmltext;
|
||||
|
@@ -77,7 +77,7 @@ public class CharacterBirthday extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("change"))
|
||||
{
|
||||
// Change Hat
|
||||
if (ownsAtLeastOneItem(player, 10250))
|
||||
if (hasQuestItems(player, 10250))
|
||||
{
|
||||
takeItems(player, 10250, 1); // Adventurer Hat (Event)
|
||||
giveItems(player, 21594, 1); // Birthday Hat
|
||||
|
@@ -104,7 +104,7 @@ public class BirthOfDraco extends LongTimeEvent
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* case "giveAgathion": { if (hasQuestItemss(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
* case "giveAgathion": { if (hasQuestItems(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
*/
|
||||
}
|
||||
return htmltext;
|
||||
|
@@ -77,7 +77,7 @@ public class CharacterBirthday extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("change"))
|
||||
{
|
||||
// Change Hat
|
||||
if (ownsAtLeastOneItem(player, 10250))
|
||||
if (hasQuestItems(player, 10250))
|
||||
{
|
||||
takeItems(player, 10250, 1); // Adventurer Hat (Event)
|
||||
giveItems(player, 21594, 1); // Birthday Hat
|
||||
|
@@ -104,7 +104,7 @@ public class BirthOfDraco extends LongTimeEvent
|
||||
break;
|
||||
}
|
||||
/*
|
||||
* case "giveAgathion": { if (hasQuestItemss(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
* case "giveAgathion": { if (hasQuestItems(player, AGATHION)) { htmltext = "33687-03.htm"; } else { giveItems(player, AGATHION, 1); htmltext = "33687-02.htm"; } break; }
|
||||
*/
|
||||
}
|
||||
return htmltext;
|
||||
|
@@ -77,7 +77,7 @@ public class CharacterBirthday extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("change"))
|
||||
{
|
||||
// Change Hat
|
||||
if (ownsAtLeastOneItem(player, 10250))
|
||||
if (hasQuestItems(player, 10250))
|
||||
{
|
||||
takeItems(player, 10250, 1); // Adventurer Hat (Event)
|
||||
giveItems(player, 21594, 1); // Birthday Hat
|
||||
|
@@ -77,7 +77,7 @@ public class CharacterBirthday extends AbstractNpcAI
|
||||
else if (event.equalsIgnoreCase("change"))
|
||||
{
|
||||
// Change Hat
|
||||
if (ownsAtLeastOneItem(player, 10250))
|
||||
if (hasQuestItems(player, 10250))
|
||||
{
|
||||
takeItems(player, 10250, 1); // Adventurer Hat (Event)
|
||||
giveItems(player, 21594, 1); // Birthday Hat
|
||||
|
Reference in New Issue
Block a user