Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
try:
local config = {
teleportActionId = 44222
}
local vipEnter = MoveEvent('vipEnter')
function vipEnter.onStepIn(player, item, position, fromPosition)
if player:getVipDays() == 0 then
player:teleportTo(fromPosition)
player:sendMagicEffect(CONST_ME_POFF)...
local config = {
-- Tiles on which the players stand on before using the lever
enter = {
from = Position(76, 413, 7),
to = Position(79, 413, 7)
},
-- Destination area
destinationArea = {
topLeft = Position(65, 409, 7),
bottomRight =...
my bad xD, try this
( don't forget to change actionid )
local config = {
-- Tiles on which the players stand on before using the lever
enter = {
from = Position(1, 2, 3),
to = Position(4, 5, 6)
},
-- Destination area
destinationArea = {
topLeft...
wopsie
add before xyz:register()
xyz:aid( actionid you want to use )
Is there a possibility for players to die in that area before the time is out?
if that is the case; an additional check must be done in onLogin event
Haven't tested.
Configure and try:
local config = {
-- Tiles on which the players stand on before using the lever
enter = {
from = Position(1, 2, 3),
to = Position(4, 5, 6)
},
-- Destination area
destinationArea = {
topLeft = Position(0, 0, 0)...
Inspired by
Preview
gamepreview (https://streamable.com/45m0vj)
Setup
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.
True.
It is best to figure out from which script clearForgotten was called and figure out which storage should be set to 0. But since I dont know more than what has been provided here OP will have to figure that out sooner or later. 🤷♂️
https://github.com/opentibiabr/otservbr-global/search?q=clearForgotten
Some calls don't seem to be providing storage.
Add this before Game.setStorageValue(storage, 0)
if not storage then
return
end
in that case confirm that the script can access those keys.
add these lines before calling Game.setStorageValue ( Line 73 )
print('GS: ' .. tostring(GlobalStorage))
print('FK: ' .. tostring(GlobalStorage.ForgottenKnowledge))
print('AstralPowerCounter: ' ...
one of these keys is nil
Game.setStorageValue(GlobalStorage.ForgottenKnowledge.AstralPowerCounter, 1)
Game.setStorageValue(GlobalStorage.ForgottenKnowledge.AstralGlyph, 0)
Make sure that both GlobalStorage.ForgottenKnowledge.AstralPowerCounter and GlobalStorage.ForgottenKnowledge.AstralGlyph...
the path seems wrong o.0
could you show your config.php file,
How have you written the path to your server?
try adding / at the end of server path string