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!
Hi,
Use:
Game.getSpectators(position[, multifloor = false[, onlyPlayer = false[, minRangeX = 0[, maxRangeX = 0[, minRangeY = 0[, maxRangeY = 0]]]]]]) to get all players in area, be sure to set onlyPlayer variable to true, to return only players.
Working nice! Thank you Leo32!
Will fit my needs! When the summon reach the destination, the isWalking flag is turned off and the summon back to original behaviour and go near player, but i think i can solve this with LUA. When i solve this, i will post here the solution.
Again, really thanks!
Thanks your efforts. Someone one time said: "TFS is a spiderweb". I looked for hours, but don't understood what i need to do, plus i lacking skills in C++, im realy stucked. Hope you do some nice system with the function!
Hi,
Idk, i still guess that the problem is in onThink, because the order to move to position is happening and the original behaviour is actived. I guess have to set a variable to check if creature is moving and only trigger the original behaviour if creature is not moving.
Hi,
I added this commit the part that is related to creature:moveTo function. Im using this function to players move their summons. But the summon can't go to location because the natural behaviour of summon is stay close to master, i think i need to edit my onThink in monster.cpp, but don't...
Amazing work Leo32! Definitly i will look deep your system! I saw your post showing the system, very happy that you released the system to community! Thanks for share and keep going!
Hi,
You show a code with 8 lines. Your error log is telling that the error is in line 263, i know we have excellent programers here, but i think even they can't help...
What is guildOnwer()?
Too much mysterys to discover here... 🤔
Hi,
You have raids table with 5 indexs, when math.random return 5 as value, the index 5 don't exist... Because you only have: [1], [2], [3], [4] and [6]. The index [5] don't exist. Change to this, and will work...
local raids = {
-- Bosses
[1] = {type = "BOSS", position = Position(49...
Try this:
function onLogin(player)
local playerGuild = player:getGuild() --get player guild
if playerGuild then --if player have a guild
local GuildOnlineMembers = playerGuild:getMembersOnline() --get all online player in player guild
local realOnlineMembers = {} --empty...
Hello,
Try this one:
function onLogin(player)
local playerGuild = player:getGuild() --get player guild
if playerGuild then --if player have a guild
if #playerGuild:getMembersOnline() >= 5 then --get online members in the guild, if more than 5...
Hi,
Im at work now, when i get home i will try. I don't know if have a way to do with transform, what i Will try is:
Get item info and item position(if in container, the Index)
Remove original item 1 count
Create the reward as New item
Move the reward to old item position
But if u have the...
More clean and use only one storage value.
local storage = 60000 --use a unused storage value
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,storage) ~= 1 then
if item.uid == 61904 then
doPlayerSendTextMessage(cid,25,"You have chosen an...
You don't answered my question...
Change your doors.lua to this one, and try, can't test.
doors.lua
local function checkStackpos(item, position)
position.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
local thing = getThingFromPos(position)
position.stackpos =...
Tested.
data/creaturescripts/scripts/bossReward.lua:
function onKill(creature, target)
local monsterName = "Puppet" --boss name to give reward
if target:getName() ~= monsterName then --check if killed monster(target) is the boss
return true --if not, return true
end...