Arena System complete feature
This commit is contained in:
@@ -34,8 +34,8 @@ public class ArenaManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(lastExecution + pulseDelay > System.currentTimeMillis())
|
if(lastExecution + pulseDelay > System.currentTimeMillis())
|
||||||
// return;
|
return;
|
||||||
|
|
||||||
lastExecution = System.currentTimeMillis();
|
lastExecution = System.currentTimeMillis();
|
||||||
|
|
||||||
@@ -94,10 +94,13 @@ public class ArenaManager {
|
|||||||
|
|
||||||
if(winner != null){
|
if(winner != null){
|
||||||
//handle prize distribution
|
//handle prize distribution
|
||||||
CharacterItemManager charItemMan = winner.getCharItemManager();
|
//ItemBase specialLoot = ItemBase.getItemBase(866);
|
||||||
ItemBase specialLoot = ItemBase.getItemBase(866);
|
//Item promoted = new MobLoot(winner, specialLoot, 1, false).promoteToItem(winner);
|
||||||
Item promoted = new MobLoot(null,specialLoot,false).promoteToItem(winner);
|
//promoted.setNumOfItems(21235);
|
||||||
DbManager.ItemQueries.UPDATE_NUM_ITEMS(promoted,21235);
|
//promoted.setName("Special Banker(21235)");
|
||||||
|
//DbManager.ItemQueries.UPDATE_NUM_ITEMS(promoted,21235);
|
||||||
|
//winner.getCharItemManager().addItemToInventory(promoted);
|
||||||
|
//winner.getCharItemManager().updateInventory();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user