This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Bookmark < BinData::Record | |
| endian :little | |
| uint32 :address | |
| uint32 :name_length | |
| string :name, :read_length => :name_length | |
| end | |
| class Breakpoint < BinData::Record | |
| endian :little | |
| uint32 :start_address, :inital_value => 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * usage: /js generate_texture(width, height) | |
| * | |
| * notes: comment out one of the blocks in the generate_texture method to get started | |
| * or play with the make_discrete function to get different colors. | |
| */ | |
| load(__folder + "core/scriptcraft.js"); | |
| function make_discrete(noise){ | |
| var val = parseInt(noise)+1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <tr> | |
| <td> | |
| {{players[0].points}} | |
| </td> | |
| <td> | |
| {{players[0].name}} | |
| </td> | |
| <td> | |
| {{players[0].post}} | |
| </td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <tr> | |
| <td> | |
| 1,048.50 | |
| </td> | |
| <td> | |
| Cabrera, Miguel | |
| </td> | |
| <td> | |
| 3B | |
| </td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $scope.players = {[ | |
| { name:"Cabrera, Miguel", pos:"3B", team:"DET", slg:0.606, obp:0.393 }, | |
| { name:"Braun, Ryan", pos:"OF", team:"MIL", slg:0.595, obp:0.391 }]}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <tr ng-repeat="player in players"> | |
| <td> | |
| {{player.score | number:2}} | |
| </td> | |
| <td> | |
| {{player.name}} | |
| </td> | |
| <td> | |
| {{player.pos}} | |
| </td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load(__folder + "../drone/drone.js"); | |
| load(__folder + "../core/scriptcraft.js"); | |
| Drone.extend("big",function(){ | |
| server.scheduler.scheduleAsyncDelayedTask(global.plugin,function(){ | |
| (new Drone()).box(1,500,100,500); | |
| print("done"); | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| load(__folder + "../core/scriptcraft"); | |
| var quest = quest || plugin("quest",{ | |
| initialize_quest:function(player_name){ | |
| quest.store.players[player_name] = { | |
| current:-1, | |
| accepted:false, | |
| skeleton_counter:0, | |
| steps:[{ | |
| step:1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| skeleton_kill_counter:function(event,data){ | |
| var target = data.getEntity(); | |
| var killer = target.getKiller(); | |
| // check if it is the player who did the killing and if a skeleton was the target | |
| if(killer != null && killer.getUniqueId() == getPlayerObject().getUniqueId() && target.getType() == org.bukkit.entity.EntityType.SKELETON && quest.store.players[killer.name] != null){ | |
| quest.store.players[killer.name].skeleton_counter = (quest.store.players[killer.name].skeleton_counter + 1); | |
| if(quest.store.players[killer.name].skeleton_counter < 10){ | |
| killer.sendMessage("" + quest.store.players[killer.name].skeleton_counter + "/10 skeletons killed."); | |
| } | |
| else{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| proc_quest:function(event,data){ | |
| // make sure we are interacting with the quest giver | |
| var target = data.getRightClicked(); | |
| var player = data.getPlayer(); | |
| if(quest.store.npcs[target.getUniqueId()] != null){ | |
| // get the player's current quest progress | |
| var quest_progress = quest.store.players[player.name]; | |
| if(quest_progress == null){ | |
| quest.initialize_quest(player.name); |
NewerOlder