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

doCreatureSetDropLoot problem

Nerevr back

Member
Joined
Nov 7, 2014
Messages
269
Reaction score
7
i did this edite in my source and work good
Feature - Every changes you need to a Hardcore/War Server


and now i need to do somthing like this

Code:
function onPrepareDeath(cid, deathList)
    for i = 1, 5 do
if(getPlayerBlessing(cid, i)) then
doCreatureSetDropLoot(cid, false)
end
  end
  return TRUE
end

but don't work when die i always losse items idk why
:S
im use tfs 0.4

bump
 
Last edited by a moderator:
if(getPlayerBlessing(cid, i)) then
<-- you dont have a space between if and the brackets

shouldnt it bee like
Lua:
if getPlayerBlessing(cid, i) == true then
or "1" instead of true? im not sure how to check if the player has blessings

any errors in the console?
 
Last edited:
i think the problem in config.lua he have to check it

Code:
blessingReductionBase = 30
blessingReductionDecrement = 5
eachBlessReduction = 8

if 0 chnage to up

sakux323

if getPlayerBlessing(cid, i) or if getPlayerBlessing(cid, 1)

is same to check blessing for player
 
Back
Top Bottom