Zeldaboy111

Skript #194 - tycoonF

Jun 24th, 2019
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1.  
  2. function removeShop(p: Player, e: Entity, x: String, y: String, z: String, w: String):
  3.  
  4. if {Tycoon::shopLocations::*} doesn't contain "%{_w}% - %{_x}%, %{_y}%, %{_z}%":
  5. send "Cancelled" to {_p}
  6. stop
  7.  
  8. else:
  9. loop all villagers in radius 6 around {_p}:
  10. if "%location of loop-entity%" is "x: %{_x}%, y: %{_y}%, z: %{_z}%":
  11. set health of loop-entity to 0
  12. play "block_wood_hit" to {_p} at volume 10
  13. close {_p}'s inventory
  14.  
  15. remove "%{_w}% - %{_x}%, %{_y}%, %{_z}%" from {Tycoon::shopLocations::*}
  16.  
  17.  
  18.  
  19. function openShop(p: Player, page: String):
Add Comment
Please, Sign In to add comment