• 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!

Check items on player DP

dawnking

Member
Joined
Jun 23, 2016
Messages
176
Reaction score
22
I'm making a server 0.4 with dawnport, i saw a lot things to delete items here in forum, but all have some problems...
So i got this idea...

There is a way to NPC check if player have more when 0 items on DP to townid 10 ?

For example:
Code:
if(itemsDP(townid 10) > 0)
NPCSAY: You can not go to main with items in DP
return true
end
 
Solution
It's a nice idea.
Code:
local town_id = 10

if getPlayerDepotItems(cid, town_id) > 0 then -- if depot box counts as an item, change 0 to 1
    print("You have items in depot.")
else
    print("Your depot has no items.")
end
It's a nice idea.
Code:
local town_id = 10

if getPlayerDepotItems(cid, town_id) > 0 then -- if depot box counts as an item, change 0 to 1
    print("You have items in depot.")
else
    print("Your depot has no items.")
end
 
Solution
It's a nice idea.
Code:
local town_id = 10

if getPlayerDepotItems(cid, town_id) > 0 then -- if depot box counts as an item, change 0 to 1
    print("You have items in depot.")
else
    print("Your depot has no items.")
end

Thank you, thank you, thank you!!!
 
Created a function just for you. :)

 
Back
Top