Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
int prevKills = 0; int currentKills = 0; int killsToLoot = 0; //You need to set this at script startup public boolean checkWarriorDead() { if (getMyPlayer().getInteracting().getAnimation() == warriorDead && getMyPlayer().isInCombat()) { currentKills++; if( (currentKills - prevKills) >= killsToLoot ) { //do something prevKills = currentKills; } wait(random(200,300)); return true; } else { return false; } }
This paste will be private.
From the Design Piracy series on my blog: