SHARE
TWEET

something

capasha Oct 1st, 2016 164 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //In Action Script "World"
  2.  
  3. //####### Old Method ##########
  4.  
  5. //838 = Door
  6. //839 = Gate
  7. //_loc11_ blockid
  8.  
  9. if(ItemId.isSolid(_loc11_))
  10. {
  11.     case 838:
  12.         if(this.player.hascrown)
  13.         {
  14.             continue;
  15.         }
  16.     break;
  17.     case 839:
  18.         if(!this.player.hascrown)
  19.         {
  20.             continue;
  21.         }
  22.     break;
  23. }
  24.  
  25. //####### New Method ##########
  26. // I don't know. I'm too lazy to read what everything does.
  27. if(ItemId.isSolid(_loc5_) || param4)
  28. {
  29.     _loc6_ = ItemManager.GetBlockBounds(_loc5_);
  30.     if(param4)
  31.     {
  32.         _loc6_ = ItemManager.GetBlockBounds(_loc5_,this.lookup.getInt(param2,param3));
  33.     }
  34.     _loc6_.x = _loc6_.x + param2 * 16;
  35.     _loc6_.y = _loc6_.y + param3 * 16;
  36.     if(_loc6_.intersects(new Rectangle(param1.x,param1.y,16,16)))
  37.     {
  38.         return true;
  39.     }
  40.     return false;
  41. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top