Podaj mi zawarto?? tego aola to ci zaraz szybciutko pomog?Witam, u?ywam silnika TFS 0.3.4~. Aol na moim serwerze po ?mierci nie spada... mo?na pada? ile si? chce a aol nadal jest na swoim miejscu. Czy wie kto? w kt?rym miejscu to zmieni??
Je?li chodzi o skrypt to nigdzie go nie ma(w 2 innych silnikach r?wnie? nie by?o a dzia?a? normalnie). Jedyne co jest to linijki w movements.xml:Podaj mi zawarto?? tego aola to ci zaraz szybciutko pomog?
<movevent type="Equip" itemid="2173" slot="necklace" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="2173" slot="necklace" event="function" value="onDeEquipItem"/>
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420"/>
<attribute key="slotType" value="necklace"/>
<attribute key="charges" value="1"/>
<attribute key="preventDrop" value="1"/>
</item>
Napisa?em na samej g?rze, ?e nie mam skryptu na aol w silniku...jakby to by?o pod tibie 7.6 - 8.11 to bym pom?g?, nie znam si? za dobrze na 8.42 ale je?li jest tam data/actions/scripts/ no to we? znajdz tam aol i z innego silnika skopiuj (z silnika na kt?rym dzia?a) sory za spam je?eli nie pomog?em i nie ma za co je?li dzi?kujesz za pomoc
Mo?e spr?buj tak.</item>
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420"/>
<attribute key="slotType" value="necklace"/>
</item>
To samo z t? r??nic?, ?e aol zostaje a backpack leci Nadal czekam na propozycje : /Ja u siebie mam takie co? :
Mo?e spr?buj tak.
NIE! Nie nabijaj post?w... na enfo aol nie dzia?a(spada backpack itp po dedzie) U MNIE AOL DZIA?A ALE SI? NIE KO?CZY!:curse:Mo?e masz pvp enfo na otsie? te? tak mia?em jak da?em enfo.
local config = {
deathListEnabled = getBooleanFromString(getConfigInfo('deathListEnabled')),
sqlType = getConfigInfo('sqlType'),
maxDeathRecords = getConfigInfo('maxDeathRecords')
}
config.sqlType = config.sqlType == "sqlite" and DATABASE_ENGINE_SQLITE or DATABASE_ENGINE_MYSQL
function onDeath(cid, corpse, lastHitKiller, mostDamageKiller)
if(config.deathListEnabled ~= TRUE) then
return
end
local hitKillerName = "field item"
local damageKillerName = ""
if(lastHitKiller ~= FALSE) then
if(isPlayer(lastHitKiller) == TRUE) then
hitKillerName = getPlayerGUID(lastHitKiller)
else
hitKillerName = getCreatureName(lastHitKiller)
end
if(mostDamageKiller ~= FALSE and mostDamageKiller ~= lastHitKiller and getCreatureName(mostDamageKiller) ~= getCreatureName(lastHitKiller)) then
if(isPlayer(mostDamageKiller) == TRUE) then
damageKillerName = getPlayerGUID(mostDamageKiller)
else
damageKillerName = getCreatureName(mostDamageKiller)
end
end
end
db.executeQuery("INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `altkilled_by`) VALUES (" .. getPlayerGUID(cid) .. ", " .. os.time() .. ", " .. getPlayerLevel(cid) .. ", " .. db.escapeString(hitKillerName) .. ", " .. db.escapeString(damageKillerName) .. ");")
local rows = db.getResult("SELECT `player_id` FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. ";")
if(rows:getID() ~= -1) then
local amount = rows:getRows(true) - config.maxDeathRecords
if(amount > 0) then
if(config.sqlType == DATABASE_ENGINE_SQLITE) then
for i = 1, amount do
db.executeQuery("DELETE FROM `player_deaths` WHERE `rowid` = (SELECT `rowid` FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. " ORDER BY `time` LIMIT 1);")
end
else
db.executeQuery("DELETE FROM `player_deaths` WHERE `player_id` = " .. getPlayerGUID(cid) .. " ORDER BY `time` LIMIT " .. amount .. ";")
end
end
end
end
<event type="death" name="Aol" event="script" value="aol.lua"/>
function onDeath(cid, corpse, killer)
local aol = getPlayerSlotItem(cid, 2)
if (aol.itemid == 2173) then
doRemoveItem(aol.uid, 1)
end
end
registerCreatureEvent(cid, "Aol")