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

Deads problem

ReDe

New Member
Joined
Mar 5, 2009
Messages
48
Reaction score
0
aol does not fall after death and there is no body on earth
level and skills falling on down
I tried the method
UPDATE `players` SET `loss_experience` = x;
UPDATE `players` SET `loss_mana` = x;
UPDATE `players` SET `loss_skills` = x;
UPDATE `players` SET `loss_items` = x;
It did not help, I tried to creaturescripts playerdeath.lua and nothing aol throw from the start, nothing
I have no idea why he writes so here

Please help me ! :)



@edit
I have TFS 0.3.6.3429
 
Last edited:
What about custom creaturescripts? Maybe there's some script that's changing drop? Maybe source change? Check out player.cpp. My last thought AoL's fucked in items.xml, check if it has charges and preventDrop.
 
creturescripts.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
	
<event type="login" name="PlayerLogin" event="script" value="login.lua"/>

	
<event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
	<event type="receivemail" name="Mail" event="script" value="mail.lua"/>
	
<event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
	
<event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>

	<event type="think" name="Idle" event="script" value="idle.lua"/>
	
<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>

<event type="death" name="inquisitionPortals" script="inquisitionPortals.lua"/>
<event type="logout" name="demonOakLogout" event="script" value="demonOakLogout.lua"/>
<event type="death" name="demonOakDeath" event="script" value="demonOakDeath.lua"/>
<event type="death" name="Azerus" event="script" value="azerus.lua"/> 
<event type="advance" name="advance" script="advance.lua"/>
<event type="login" name="StaffLogin" script="stafflogin.lua"/>
<event type="advance" name="promotion" script="advpromo.lua"/>
<event type="login" name="FirstItems" script="welcome.lua"/>
<event type="kill" name="MonstersKills" script="vorgpl_monsterskills.lua"/>
</creaturescripts>
login. lua

Code:
local config = {
	loginMessage = getConfigValue('loginMessage'),
	useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}

function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
	end

	local accountManager = getPlayerAccountManager(cid)
	if(accountManager == MANAGER_NONE) then
		local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
		if(lastLogin > 0) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
			str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
		else
			str = str .. " Please choose your outfit."
			doPlayerSendOutfitWindow(cid)
		end

		doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
	elseif(accountManager == MANAGER_NAMELOCK) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
	elseif(accountManager == MANAGER_ACCOUNT) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
	end

	if(not isPlayerGhost(cid)) then
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
	end


	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")

	registerCreatureEvent(cid, "Idle")
	if(config.useFragHandler) then
		registerCreatureEvent(cid, "SkullCheck")
	end
registerCreatureEvent(cid, "inquisitionPortals")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "demonOakLogout")
registerCreatureEvent(cid, "demonOakDeath")
registerCreatureEvent(cid, "advance")
registerCreatureEvent(cid, "MonstersKills")
return true
end


Aol items.xml
Code:
<item id="2173" article="a" name="amulet of loss">
<attribute key="weight" value="420"/>
<attribute key="slotType" value="necklace"/>
<attribute key="preventDrop" value="1"/>
</item>

There is something wrong in this?
I not change player.cpp
 
okay I fixed the problem I had with the creature scripts but do not drop my aol after death.

anyone know why? my aol in items.xml

<item id="2173" article="a" name="amulet of loss">
<attribute key="weight" value="420"/>
<attribute key="slotType" value="necklace"/>
<attribute key="preventDrop" value="1"/>
</item>
 
Does anyone have an idea? loss_items etc is 100 and I am the original creaturescripts with TFS 0.3.6 and login.lua too.
So why not work items.xml problem?
<item id="2173" article="a" name="amulet of loss">
<attribute key="weight" value="420"/>
<attribute key="slotType" value="necklace"/>
<attribute key="preventDrop" value="1"/>
</item>
 
Back
Top