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!
Just made in your base:
local itemslot = toPosition.y
if (itemslot >= CONST_SLOT_FIRST) and (itemslot <= CONST_SLOT_LAST) then
doPlayerSendTextMessage(uid, MESSAGE_STATUS_CONSOLE_BLUE, "You can not upgrade your equipment! It can broken!")
return true
end
<action itemid="8306" event="script" value="upgrade.lua"/>
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isCreature(itemEx.uid) then
return doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
end
local obj = UpgradeHandler:new(itemEx)
if(obj ==...
There is no slotPosition i think so
I tried print_r on this script:
print_r(self.item)
prints:
[vocationString] =>
[showAttributes] => false
[minRequiredLevel] => 0
[wieldInfo] => 0
[writeOnceItemId] => 0
[movable] => true
[level] => 0
[hangable] => false
[runeMagicLevel]...
yes
CONST_SLOT_ARMOR
https://github.com/Fir3element/3777/blob/aef29d0ac94140c5d095cb1f55a34035e42746b3/data/lib/000-constant.lua#L141
but that print prints nothing
i don't understand
I tried
print(self.item.armor)
local itemslot = getItemInfo(self.item.itemid).slotPosition
print(itemslot)
if (itemslot >= CONST_SLOT_FIRST) and (itemslot <= CONST_SLOT_LAST) then
doPlayerSendTextMessage(uid, MESSAGE_STATUS_CONSOLE_BLUE, "You can not upgrade your...
armor is working but slot not...
what do i doing wrong?
console
10
[2:1:22.375] [Error - Action Interface]
[2:1:22.375] data/actions/scripts/upgrade.lua:onUse
[2:1:22.375] Description:
[2:1:22.376] data/lib/upgradesystem.lua:111: attempt to index a boolean value
[2:1:22.376] stack...