• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Noob char in war or blocking spawn?

plx fix this, it would be real cool if it worked, no mor send to temple talkactios, just plain and simple spells...xD
 
@Up

Code:
    protectionLevel = 100

function onPrepareDeath(cid, deathList)
       if(isPlayer(cid) == true and isPlayer(lastHitKiller) == true and getPlayerLevel(cid) <= protectionLevel) then
        doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), 1)
        doCreatureAddHealth(cid, getCreatureMaxHealth(cid), TRUE) 
        doRemoveCondition(cid, CONDITION_INFIGHT)
        doRemoveCreature(cid)
        return false
    end
    return true
end

This will work :)

It will teleport a player to his temple, add hp, remove fight condition and kick :)

@Down
It's working, I've tested it -.-
Probably you've done something wrong
 
Last edited:
Bump, please someone fix*!

-.-
Here is a script of me but kinda different:

Code:
  local config = {
        exhaustionInSeconds = 420,
        storage = 36531
}
function onSay(cid, words, param)
local player = getPlayerByName(param)
if(isPlayer(player) == TRUE) then
if(exhaustion.check(cid, config.storage) == TRUE) then
                doPlayerSendCancel(cid, "You can teleport players only 1 time per " .. config.exhaustionInSeconds .. " seconds.")
                return TRUE
        end
 if (getPlayerLevel(cid) > 50) then
  if (getPlayerLevel(player) <= 50) then
   if(doPlayerAddSoul(cid, -100) == TRUE) then
    exhaustion.set(cid, config.storage, config.exhaustionInSeconds)
    doTeleportThing(player, getTownTemplePosition(getPlayerTown(player)))
   else
    doPlayerSendCancel(cid,"You dont have 100 soul points.")
   end
  else
   doPlayerSendCancel(cid,"This player have lvl higher than 50.")
  end
 else
  doPlayerSendCancel(cid,"Your level is too low.")
 end
else
 doPlayerSendCancel(cid,"This players doesn exist, or is offline.")
end
return TRUE
end

This is my script..Remember, it's a talkaction script..

In this Script you can change the exhaustion which means when you can kick some1 after executing the first time, how many soul points it will take and under which level condition people can be kicked..

Rep me++
 
-.-
Here is a script of me but kinda different:

Code:
  local config = {
        exhaustionInSeconds = 420,
        storage = 36531
}
function onSay(cid, words, param)
local player = getPlayerByName(param)
if(isPlayer(player) == TRUE) then
if(exhaustion.check(cid, config.storage) == TRUE) then
                doPlayerSendCancel(cid, "You can teleport players only 1 time per " .. config.exhaustionInSeconds .. " seconds.")
                return TRUE
        end
 if (getPlayerLevel(cid) > 50) then
  if (getPlayerLevel(player) <= 50) then
   if(doPlayerAddSoul(cid, -100) == TRUE) then
    exhaustion.set(cid, config.storage, config.exhaustionInSeconds)
    doTeleportThing(player, getTownTemplePosition(getPlayerTown(player)))
   else
    doPlayerSendCancel(cid,"You dont have 100 soul points.")
   end
  else
   doPlayerSendCancel(cid,"This player have lvl higher than 50.")
  end
 else
  doPlayerSendCancel(cid,"Your level is too low.")
 end
else
 doPlayerSendCancel(cid,"This players doesn exist, or is offline.")
end
return TRUE
end

This is my script..Remember, it's a talkaction script..

In this Script you can change the exhaustion which means when you can kick some1 after executing the first time, how many soul points it will take and under which level condition people can be kicked..

Rep me++

If this work I will give you so much rep! :) Thanks
 
@Up

Code:
    protectionLevel = 100

function onPrepareDeath(cid, deathList)
       if(isPlayer(cid) == true and isPlayer(lastHitKiller) == true and getPlayerLevel(cid) <= protectionLevel) then
        doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), 1)
        doCreatureAddHealth(cid, getCreatureMaxHealth(cid), TRUE) 
        doRemoveCondition(cid, CONDITION_INFIGHT)
        doRemoveCreature(cid)
        return false
    end
    return true
end

This will work :)

It will teleport a player to his temple, add hp, remove fight condition and kick :)

@Down
It's working, I've tested it -.-
Probably you've done something wrong




Epic fail
 
This works fine but there's something that could be fixed.. if you summon a creature, and this crature kills the protected player.. it dies and drops his set
 
Back
Top