• 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,249
Solutions
71
Reaction score
621
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

Great work, nice idea.

Its possible make some mini game like team fight tatic like league of legends ?
 
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 :<
 
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?
 
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 !
 
Lua Script Error: [Scripts Interface]
C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\data\scripts\battlecity\battlecity.lua
...vc-Release-luajit\data\scripts\battlecity\battlecity.lua:2: module 'data.scripts.battle_city.toollib' not found:
no field package.preload['data.scripts.battle_city.toollib']
no file '.\data\scripts\battle_city\toollib.lua'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\lua\data\scripts\battle_city\toollib.lua'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\lua\data\scripts\battle_city\toollib\init.lua'
no file '.\data\scripts\battle_city\toollib.dll'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\data\scripts\battle_city\toollib.dll'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\loadall.dll'
no file '.\data.dll'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\data.dll'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\loadall.dll'
stack traceback:
[C]: at 0x7ff62f3f5940
[C]: in function 'require'
...vc-Release-luajit\data\scripts\battlecity\battlecity.lua:2: in main chunk
battlecity.lua [error]
^

Lua Script Error: [Scripts Interface]
C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\data\scripts\battlecity\main.lua
...ows-msvc-Release-luajit\data\scripts\battlecity\main.lua:33: module 'data.scripts.battle_city.settings' not found:
no field package.preload['data.scripts.battle_city.settings']
no file '.\data\scripts\battle_city\settings.lua'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\lua\data\scripts\battle_city\settings.lua'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\lua\data\scripts\battle_city\settings\init.lua'
no file '.\data\scripts\battle_city\settings.dll'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\data\scripts\battle_city\settings.dll'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\loadall.dll'
no file '.\data.dll'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\data.dll'
no file 'C:\TIBIA\tfs-v1.4-windows-msvc-Release-luajit\loadall.dll'
stack traceback:
[C]: at 0x7ff62f3f5940
[C]: in function 'require'
...ows-msvc-Release-luajit\data\scripts\battlecity\main.lua:33: in main chunk
main.lua [error]
 
Back
Top