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

[HALF SOLVED] need help with source editing to...

Tymofek

New Member
Joined
May 12, 2011
Messages
86
Reaction score
3
Location
Santiago - CHILE
[EDIT] this first part is solved Thx to HERMES by posting the solution and by AZIZ by telling me to search xD
solution can be found here

...to make two things, first:

i need players to NOT die!!!!
-dont get disabled when dead
-dont loggout when dead
-dont get "you are dead" msg
-no invisible name
(bonus, death should not be stored in the DB(not really necesary but if you can....))
-----just stay there standing with HP = 0!------


and the second one!:

players can be made invisible on lua scripting
-like /ghost
-its not a talkaction
-they do not get any msg like "you are now invisible" or "/ghost" in the default channel.

----- i want to use the script makeInvisible(cid, true) and cid just PUFF!!-----------

only source editing please!!

saw this request solved somewhere else GO AHEAD! give me the link!

ill fkng REP YOU! xD

anything even close to this its usefull!

THX!
 
Last edited:
yeah i did that, but as i saw in sources, ondeath is a onthink function that is executed just before the death process

and the death process loggs you out and bring this relogin window
and kills you xD

by using your code the only thing i got was player not leaving a body and death not registered in DB but still freezes get the you are dead msg and is forced to re-login

so doesnt works :S
 
If you spent two seconds using your brain, rather than complaining, you'd realize there are scripts out there such as the "Arena" scripts where death only TPs you. So, using that logic:

1. Go grab that script
2. Change around like 2 lines of code
3. ????
4. Profit
 
actually i started trying lots of simple lua scripts, and no results.

but when i was reading your post, i started searching some arena script.

just found one that i havent tried yet

ill post the result ;p
 
i dont know why but this did worked!!! :D
Lua:
function doPlayerRemoveLethalConditions(cid)
	local tmp = {1, 2, 4, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 32768, 65536}
	for i = 1, #tmp do
		if(hasCondition(cid, tmp[i])) then
		doRemoveCondition(cid, tmp[i]) end
	end
	return true
end

function onPrepareDeath(cid, deathList)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid), MAGIC_EFFECT_UNKNOWN, COLOR_UNKNOWN, true)
	doPlayerRemoveLethalConditions(cid)
	doTeleportThing(cid, {x=81,y=70,z=0}, true)
	
	return false
end


:D:D:D
REPED+!
 
Back
Top