Follow along with the video below to see how to install our site as a web app on your home screen.
Notka: This feature may not be available in some browsers.
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
<config name="firstitems_config"><![CDATA[
config = {
storage = 30001,
items = {2050, 2382}
}
]]></config>
<event type="login" name="FirstItems" event="script"><![CDATA[
domodlib('firstitems_config')
function onLogin(cid)
if(getPlayerStorageValue(cid, config.storage) > 0) then
return true
end
for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end
if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1)
setPlayerStorageValue(cid, config.storage, 1)
return true
end
]]></event>
</mod>
doPlayerAddItem(cid, id_itema, 1)
local container = doPlayerAddItem(cid, id_backpacka, 1)
doAddContainerItem(container, id_itema, ilosc_itema)
items = {2050, 2382}
if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
local playerVocation = getPlayerVocation(cid)
if(playerVocation == 1) then
doPlayerAddItem(cid, 2190, 1) <!-- Dodaje wand of vortex je?li jest Sorciem -->
elseif(playerVocation == 2) then
doPlayerAddItem(cid, 2182, 1) <!-- Dodaje snakebite roda je?li jest Druidem -->
elseif(playerVocation == 3) then
doPlayerAddItem(cid, 2389, 10) <!-- Dodaje 10 spear?w je?li jest Paladinem -->
elseif(playerVocation == 4) then
doPlayerAddItem(cid, 2412, 1) <!-- Dodaje katane je?li jest Knightem -->
end

local items = {2222, 2345, 2443}
local count = {1,1,1}
local container = doPlayerAddItem(cid, id_backpacka, 1)
for i = 1, #items do
doAddContainerItem(container, tabelka[i], count[i])
end