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!
Edit, now is returning only numbers on table.
I need to return the name of player:
Look:
"SELECT * FROM `player_storage` WHERE `player_storage`.`key` = 971714014 ORDER BY `player_storage`.`value` DESC LIMIT 0, 10";
echo "<tr><td>".$row["player_id"]."</td><td> ".$row["value"]."</td></tr>";
local t = {
tmp = {
{x = 376, y = 461, z = 7}, -- quina à noroeste (acima e à esquerda) da area onde os players devem estar para ingressar no evento
{x = 392, y = 475, z = 7} -- quina à Sudeste (abaixo e à direita)
},
arena = {
{x =...
function onDeath(cid, corpse, deathList)
local drop, nDrop = doCreatureSetDropLoot(cid, true), doCreatureSetDropLoot(cid, false)
if getPlayerLevel(cid) <= 50 then
for _, list in pairs (deathList) do
if isMonster(list) then
nDrop
end...
How to get the killer?
Look the script:
function onDeath(cid, corpse, deathList)
local drop, nDrop = doCreatureSetDropLoot(cid, true), doCreatureSetDropLoot(cid, false)
local killer = ?????????
if getPlayerLevel(cid) <= 50 then
if isMonster(killer) == true then...
Need a simple example to create monsters in certain area, like this:
local config = {
monster = "Rat",
ammout = 5,
topL = {x=100, y=100, z=7},
botR = {x=200, y=200, z=7}
}
Why notthing happens when I logout and relogin?
function onLogout(cid)
-- if isPelejador(cid) == true then
local formula = (10+getPlayerLevel(cid)*1.5)
if formula >= 140 then
return 140
else
db.executeQuery("UPDATE `player_skills` SET `value`...
In a Lib, add this:
storDormir = 971714026
valorX = 971714027
valorY = 971714028
valorZ = 971714029
In creaturescripts, logout2.lua:
local function deslogar(cid)
if isPlayer(cid) == true then
if getPlayerStorageValue(cid, storDormir) >= 1 then
setPlayerStorageValue(cid...
Need a function to set player skill, and a function to get weapon skill, example:
local function value(cid)
local lv = (getPlayerLevel(cid)/2)
if lv <= 10 then
return 10
else
return lv
end
return true
end
local function getWeaponSkill(cid)
-- if equiped...