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

Lua How to remove "you are death.." window :( help me

Gothric

New Member
Joined
Feb 6, 2010
Messages
264
Reaction score
1
PHP:
Function onDeath(cid)
docreatureaddhealth(cid, getcreaturemaxhealth(cid))
docreatureaddmana(cid, getcreaturemaxmana(cid))
return true
end

i've already use this script ;/ = doesnt work
there was one thread and someone suggest that i should use preparedeath = doesnt work

on statschange? = doesnt work..

someone give me mod and it work but lasthitkiller dont get frag becouse cid doesnt die so mod is wrong = so doesnt work >.<

so how i can fix it? ..
 
It's client sided.

which means, you can't remove it unless u make a custom client <.<

Code:
function onDeath(cid)
  return doCreatureAddHealth(cid,getCreatureMaxHealth(cid)) and doCreatureAddMana(cid,getCreatureMaxMana(cid))
end

try
 
It's client sided.

which means, you can't remove it unless u make a custom client <.<

Code:
function onDeath(cid)
  return doCreatureAddHealth(cid,getCreatureMaxHealth(cid)) and doCreatureAddMana(cid,getCreatureMaxMana(cid))
end

try

I think you are wrong, since it's a doPlayerPopupFYI message that appears onDeath. It's not client sided, I believe it's in source if it ain't among the lua scripts ^_^
 
wel well its possible without client edit or cpp
how?
onpreparedeath script + sql death queries to add them to db even tho the player doesnt really dies
now the problem is, the sql queries for 0.3. can be rescripted from 0.2's one

Use your brains!
 
wel well its possible without client edit or cpp
how?
onpreparedeath script + sql death queries to add them to db even tho the player doesnt really dies
now the problem is, the sql queries for 0.3. can be rescripted from 0.2's one

Use your brains!
thats what i said, also no need for sql queries ;<
 
people i dont know how to fix it in sources ... so i want to fix it in creature scripts..

but i think i have found something.. look
this is script for pvpe arena (when u die u dont see 'u r death' window and u dont get tp to the temple but to another place)
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
storage = getPlayerStorageValue(cid, 56000)
if(storage > 0 and getGlobalStorageValue(storage) == cid) then -- is on arena
addEvent(doCreatureAddHealth, 100,cid, getCreatureMaxHealth(cid))
removeConditions(cid)
doTeleportThing(cid, {x=1066,y=1244,z=6}, TRUE)
local newPos = getThingPos(storage+20)
doTeleportThing(cid, newPos, TRUE)
removeConditions(cid)
if(storage >= 56001 and storage <= 56010) then
setGlobalStorageValue(56042, getGlobalStorageValue(56042)+1)
else
setGlobalStorageValue(56041, getGlobalStorageValue(56041)+1)
end
return false
end
return true
end

and it really work i tested it :D there is storage value so i had used storage value in my script but it doesnt work ;/
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
storage = getPlayerStorageValue(cid, 1337, 0)
if(getPlayerStorageValue(cid, 1337, 0)) ==(getPlayerStorageValue(cid, 1337, 0)) then -- is on arena
doCreatureAddHealth(cid, 9999)
addEvent(cid, doCreatureAddHealth, 100, getCreatureMaxHealth(cid))
removeConditions(cid)
local tppos = {x=1369, y=1235, z=7}
doTeleportThing(cid, tppos)
end
return true
end

u know why??
 
Back
Top