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

Electric Chair Idea xD

Ceejzor

Murica Born N Raised!
Joined
Jul 5, 2008
Messages
2,305
Reaction score
198
Location
USA - Philippines
Ok so let me explain on my server I use the jail system instead of banning people. Because if I banned everyone who cavebots I would have no players :)

But here we go!

Jail!
1zr2ft0.jpg


As you can see in the top there is a chair and a switch. I'm hoping that when people are prisoned they can wait there time out or use the "Electric Chair".

What the "Electric Chair" will do is when the lever is pulled the subject on the chair will instantly die BUT they will lose 5% more then those that die normally. This will be the only way to escape the prison system. Besides waiting there time.

About the chair I don't want people to be able to get pushed on it.. I want them to have to step on it and kill themselves. you know?

Think it's possible? xD
 
For some reason anyone that uses it they are losing all there items even with AOL & Blessings.

Sparky.lua
Code:
  local loss =  getConfigValue('deathLostPercent')+5 -- (+5) = +5% of loss

function onUse(cid, item, fromPosition, itemEx, toPosition)

if item.actionid == 6667 then
        if item.itemid == 1945 or item.itemid == 1946 then
                doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 15)
                doSendMagicEffect(getCreaturePosition(cid), 11)
                doCreatureAddHealth(cid, -getCreatureHealth(cid))
        end
end
        return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end
 
For some reason anyone that uses it they are losing all there items even with AOL & Blessings.
Hmmm, can't be possible, cause it edits PLAYERLOSS_EXPERIENCE :confused:

Code:
local loss =  getConfigValue('deathLostPercent')+5 -- (+5) = +5% of loss

function onUse(cid, item, fromPosition, itemEx, toPosition)

if item.actionid == 6667 then
        if item.itemid == 1945 or item.itemid == 1946 then
                doPlayerSetLossPercent(cid, [B]PLAYERLOSS_[COLOR="Red"]EXPERIENCE[/COLOR][/B], loss * 15)
                doSendMagicEffect(getCreaturePosition(cid), 11)
                doCreatureAddHealth(cid, -getCreatureHealth(cid))
        end
end
        return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end

I tested it, and only the backpacks + some item got removed, but not all. Also, if you have AoL, won't remove any item nor nothing.
 
Oh sorry people were lying -.-

But is there anyway to make it show what killed them?

right now it just says this.

"28 Mar 2010, 15:22 Died at level 252 by undefined.."

I'm hoping to somehow get it to say..
"28 Mar 2010, 15:22 Died at level 252 by Old Sparky.."
 
Back
Top