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

TalkAction Suicide

Black Luster

New Member
Joined
May 17, 2008
Messages
13
Reaction score
0
Location
México
Credits: Rogui

Go data/talkactions/scripts

Copy any file and put this:

Code:
function onSay(cid, words, param)

tilepos = { x=1000, y=1000, z=7 }
playerpos = getPlayerPosition(cid)

if playerpos.x == tilepos.x and playerpos.y == tilepos.y and playerpos.z == tilepos.z then
doPlayerAddMana(cid,-getPlayerMana(cid))doPlayerAddHealth(cid,-getPlayerHealth(cid))
doPlayerSay(cid, "Adios mundo Crúel!",1)
return 0
end
return 1

end

Save and name to "Suicide"

Go data/talkactions/talkactions.xml

And paste this:

Code:
<talkaction words="bye" script="suicide.lua" />

x=1000, y=1000, z=7: Is the coordinates
Adios mundo Crúel! : You can edit this
<talkaction words="bye"<------ Edit This If You Want

Coment Please. :thumbup:
 
it is great and i wanted it but can u make it action with lever.(i know u didn't make it i just wonder if u can or anybody can)
 
it is great and i wanted it but can u make it action with lever.(i know u didn't make it i just wonder if u can or anybody can)

Code:
function onUse(item, frompos, topos)
    if item.itemid == 1945 then
        doPlayerAddMana(cid,-getPlayerMana(cid))doPlayerAddHealth(cid,-getPlayerHealth(cid))
        doPlayerSay(cid, "Byebye, life!",1)
        doTransformItem(cid,item.uid,item.itemid + 1)
   else
        doTransformItem(cid,item.uid,item.itemid - 1)
    end
return TRUE
end
There you go.
 
Last edited:
Weeiiird script.... but it's nice, may be useful for someone...
But you may want to change the word to something... not so common

Pker: Ha, you are trapped!
Noob: No, don't kill me plx I pay!
Pker: It's too late now
-About to make the last hit-
Pker: bye
-Pker dies-
Noob: What the...
That would be fun..:D
 
kk fixed it and tested it as well
to get it go to my thread
Click Here

NOTES : I made new thread since i will be updating it there if there is any error
 
Last edited:
PHP:
function onSay(cid, words, param)

   doCreatureAddHealth(cid, - getCreatureMaxHealth(cid))
   doCreatureAddMana(cid, - getCreatureMaxMana(cid))
   doPlayerSay(cid, "BYE!", 1)

end
 
kk fixed it and tested it as well
to get it go to my thread
Click Here

NOTES : I made new thread since i will be updating it there if there is any error
 
Last edited:
Back
Top