• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Action [1.3] BattleCity 🔥

Snavy

Bakasta
Senator
Joined
Apr 1, 2012
Messages
1,244
Solutions
71
Reaction score
555
Location
Hell
Inspired by

Preview
gamepreview (https://streamable.com/45m0vj)

Setup
  • Begin by mapping an area (the pictue below is 23x23 tiles) with 4 places where the statues are gonna be placed.
  • Configure BattleCity.config.statuePositions according to Figure #1

  • Set PZ flag Skärmavbild 2021-04-28 kl. 19.46.57.png to the whole area in order to prevent combat between players.
  • Place statues on the darker tiles as shown in Figure #2 (repeat this for all 4 places)
  • Setup a 1x4 area along with a lever having an actionid as shown in Figure #3 and configure 'from' and 'to' positions in BattleCity.config.enterTiles
  • Place obstacles in the arena in anyway you like but make sure the ID is same as BattleCity.config.obstacleId

#1
Skärmavbild 2021-04-26 kl. 21.33.53.png

#2
Skärmavbild 2021-04-28 kl. 19.45.46.png

#3
Skärmavbild 2021-04-26 kl. 21.36.19.png

Code
  • inside your data/scripts/ folder create a new folder called battlecity (data/scripts/battlecity/)
  • Download battle_city.zip and extract the files into the folder you created.
 

Attachments

Chriistian.L.B

Active Member
Joined
Apr 17, 2008
Messages
153
Solutions
2
Reaction score
48
Great work, nice idea.

Its possible make some mini game like team fight tatic like league of legends ?
 

Scrollia

Banned User
Joined
Apr 26, 2021
Messages
101
Reaction score
15
It will probably work. Doesn't use eventcallback.
I gues it doesnt... first obstacleId = 6972, doesnt respawn on MAP.
second iv got eeror in console when try to !shoot player :
Lua:
Lua Script Error: [Main Interface]
in a timer event called from:
(Unknown scriptfile)
./data/scripts/battle_city/battlecity.lua:407: attempt to call method 'isMovementBlocked' (a nil value)
stack traceback:
        [C]: in function 'isMovementBlocked'
        ./data/scripts/battle_city/battlecity.lua:407: in function 'moveBullet'
        ./data/scripts/battle_city/battlecity.lua:459: in function <./data/scripts/battle_city/battlecity.lua:458>


Im going to start cry, becose nothing on otservbr works fine :<
 

Scrollia

Banned User
Joined
Apr 26, 2021
Messages
101
Reaction score
15
try replacing :isMovementBlocked and :setMovementBlocked
with :isMoveLocked and :setMoveLocked
working. but still not creating 6972, can i add it manualy in MAP? But will it 'repair' after the each game?
 

Scrollia

Banned User
Joined
Apr 26, 2021
Messages
101
Reaction score
15
Haha, So its my fault. Anyway u can add changed version for otsservBR to first post :) meybe put IT in download file . Thank u for help !
 
Top