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

Compiling How to remove "you are death.." window In Source Files?? where i should look for it?

Gothric

New Member
Joined
Feb 6, 2010
Messages
264
Reaction score
1
How to remove "you are death.." window In Source Files?? where i should look for it?
 
isent it in like creaturescript death.lua or smth like that? hah.

else just remove it from client and make like

Lua:
function onPreprareDeath(cid, deathList)
	return doPlayerPopupFYI(cid, You are back to tempel NOOB!!!)
end
 
lol wibben what is it? xD

zieworski denero lots of people said me that i can fix it in c++ so i ask where i should look for it :s
 
@Wibben:
Stop failing meeeeeen.

@TOP:
Player.cpp, Player::eek:nDeath(), remove:
Code:
sendReLoginWindow();
 
i tried it and it really work :D its mean that i dont see relogin window but i still watch my dead.. i dont get tp to temple you understand? i must do relog and then i am in temple
 
@Wibben:
Stop failing meeeeeen.

@TOP:
Player.cpp, Player::eek:nDeath(), remove:
Code:
sendReLoginWindow();

i tried it and it really work :D its mean that i dont see relogin window but i still watch my dead.. i dont get tp to temple you understand? i must do relog and then i am in temple

OwNeD?? :)

Gothric go on quick links >> Hosted Project Board >> TheForgottenServer << and ask abt this.. This isent a place for this + its better if the "c++" guys help you insted of the LUA guys ^^ xD
 
g_game.addCreatureHealth(this);
g_game.internalTeleport(this, masterPosition, true);
}
else
{
setLossSkill(true);
if(preventLoss)
{
loginPosition = masterPosition;
g_game.addCreatureHealth(this);
g_game.internalTeleport(this, masterPosition, true);
}

i add this and its better :D but not perfect :p there is no window and i got tp to temple but i have 0 hp and i cannot move becouse it still tp me to respawn place :s
 
Next time, sir. Use the
code.gif
function. Is a bit softer ;D
 
try this then:

Lua:
function onLogin(cid)
	for i = getCreatureMaxHealth(cid) do
	if getCreatureHealth(cid, i) <= then
	doCreatureAddHealth(cid, i)
return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLY_DAMAGE)
else
return 0
end
 
function onLogin(cid)
for i = getCreatureMaxHealth(cid) do
if getCreatureHealth(cid, i) <= then
doCreatureAddHealth(cid, i)
return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLY_DAMAGE)
else
return 0
end

OMG :D i undertand what you want to do and i think that it may work but ur script is not really good.
1.
for i = getCreatureMaxHealth(cid) do
== i must delete 'do'
2. i must add one more end becouse 'if' is not closed
3. i have one bug in console more and i dont know how to fix it :d look
...scripts/death.lua:3: ',' expected near 'if'

i hope you know how to fix it and u will help me becouse its last thing which i should do to start my OT :) so please rewrite this script for me
 
try this then:

Lua:
function onLogin(cid)
	for i = getCreatureMaxHealth(cid) do
	if getCreatureHealth(cid, i) <= then
	doCreatureAddHealth(cid, i)
return doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLY_DAMAGE)
else
return 0
end
wtf?

Code:
function onLogin(cid)
	if(isPlayer(cid) and getCreatureHealth(cid) < getCreatureMaxHealth(cid)) then
		doCreatureAddHealth(cid, getCreatureMaxHealth(cid), true)
	end
	return true
end
 
SyntheticX

the same error :s i got 0 hp in temple and i cannot move :d

M4t30
pvp places really work :D but i think thats possible to do it in sources becouse its lot of work to do on all map pvp zone


@edit M4t30 its wrong .. Do you know why?? when player kill another player he dont get pz :) so its bull shit
 
Last edited:
Gothric it's a problem with
doCreatureAddHealth(cid, value,[force])

when using onprepareDeath you get 0 health which you cannot heal out of since your technically 'dead'. The last parameter in doCreatureAddHealth is [force] which I guess is there you put true, so it force add's health.. however it's not doing it, in other words I think its bugged in 0.3.6pl1
 
Back
Top