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!
This part is working fine. Now i'm going to work in queries to detect cloned items which do not f*ck the connection.
- - - Updated - - -
These queries won't f*ck the connection if there is like 3.000+ items in game?
I've been working in a new AntiDupe that works in c++. I already made that items are saved/loaded with a serial that's stored in a new field at player_items/player_depotitems.
15:50 You see a solar axe (Atk:52, Def:29 +3).
It can only be wielded properly by players of level 130 or higher.
It...
The problem for the script is read the serial exactly as it is from BLOB field with a query.
A common problem is that an item has more than one attribute (description, aid, uid, etc) it won't return the serial as it is.
So i've been thinking to create a new AntiDupe that requires c++
function getDeathsAndKills(cid, type) -- by vodka. Edited by Darkhaos
local query, d = db.getResult("SELECT COUNT(player_id) AS c FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)), 0
if (query:getID() ~= -1) then
d...
I added a table with some items ids in case you want the items that expires are only certain items. In case you want all items expires, REMOVE the line 'local itemExpires = {...}'
-- ### CONFIG ###
-- message send to player by script "type" (types you can check in "global.lua")
SHOP_MSG_TYPE =...
Yes, it's possible, just add an attribute to the item like
local time = 30 * 24 * 60 * 60 --seconds in 30 days?
doItemSetAttribute(uid, "boughtdate", os.time() + time)
Later, add an script to the login.lua, with a function that scan all items in player (You can use function scanContainer...
function getDeathsAndKills(cid, type) -- by vodka. Edited by Darkhaos
local query, d = db.getResult("SELECT COUNT(player_id) AS c FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)), 0
if (query:getID() ~= -1) then...
Not tested
function scanContainer(uid, list, position) --function by Jano. Edited by me.
for k = (getContainerSize(uid) - 1), 0, -1 do
local tmp = getContainerItem(uid, k)
if (isInArray(list, tmp.itemid)) then
doSendAnimatedText(position, "Epic", TEXTCOLOR_ORANGE)...
Not tested
local shareExp = true
function onDeath(cid, corpse, deathList)
if not isPlayer(cid) then return true end
if not getPlayerGuildId(cid) or getPlayerGuildId(cid) < 1 then return true end
if #deathList < 1 then return true end
local killedGuild = getPlayerGuildId(cid)...