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

MoveEvent Splash Script [Powered by Ped0bear inside™]

hodleo

Formerly cbrm -Crypto enthusiast, Retired scripter
Staff member
Global Moderator
Joined
Jan 6, 2009
Messages
6,598
Solutions
3
Reaction score
955
Location
Caribbean Sea
-Script iz poweered by:

bearzb.png


-RAWR

Based on Kingdom Age's script, when you step on a recently killed creature, its blood splashes and decays. The same goes for water and green slime. If you step on blood and walk you'll notice the bloody footprints you leave behind. Admins in ghost mode won't be affected.

> data/movements/movements.xml
Lua:
<movevent type="StepIn" itemid="2016-2020" event="script" value="splash!.lua"/>
<movevent type="StepOut" itemid="100-355;384;405-407;431" event="script" value="splash!.lua"/>
*add the remaining grounds id's to StepOut script. i can't add all items.xml'ids because of error, altho there might be a lua fix

> data/movements/scripts/splash!.lua
Lua:
    --[[###############################################################
    |===============================================================|
    |  Splash! Script. TFS 0.3.6pl1. By Cybermaster                                                            |
    |  Powered by: Ped0bear inside™                                                                                   |
    ………………….._,,-~’’’¯¯¯’’~-,,
    ………………..,-‘’ ; ; ;_,,---,,_ ; ;’’-,…………………………….._,,,---,,_
    ……………….,’ ; ; ;,-‘ , , , , , ‘-, ; ;’-,,,,---~~’’’’’’~--,,,_…..,,-~’’ ; ; ; ;__;’-,
    ……………….| ; ; ;,’ , , , _,,-~’’ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ¯’’~’-,,_ ,,-~’’ , , ‘, ;’,
    ……………….’, ; ; ‘-, ,-~’’ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’’-, , , , , ,’ ; |
    …………………’, ; ;,’’ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’-, , ,-‘ ;,-‘
    ………………….,’-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’’-‘ ;,,-‘
    ………………..,’ ; ; ; ; ; ; ; ; ; ; ; ;__ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ‘-,’
    ………………,-‘ ; ; ; ; ; ; ; ; ; ;,-‘’¯: : ’’-, ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; _ ; ; ; ; ;’,
    ……………..,’ ; ; ; ; ; ; ; ; ; ; ;| : : : : : :| ; ; ; ; ; ; ; ; ; ; ; ; ,-‘’¯: ¯’’-, ; ; ;’,
    …………….,’ ; ; ; ; ; ; ; ; ; ; ; ‘-,_: : _,-‘ ; ; ; ; ; ; ; ; ; ; ; ; | : : : : : :| ; ; ; |
    ……………,’ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ¯¯ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’-,,_ : :,-‘ ; ; ; ;|
    …………..,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ,,-~’’ , , , , ,,,-~~-, , , , _ ; ; ;¯¯ ; ; ; ; ;|
    ..…………,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;,’ , , , , , , ,( : : : : :) , , , ,’’-, ; ; ; ; ; ; ; ;|
    ……….,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’, , , , , , , , ,’~---~’’ , , , , , ,’ ; ; ; ; ; ; ; ;’,
    …….,-‘’ ; _, ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ‘’~-,,,,--~~’’’¯’’’~-,,_ , ,_,-‘ ; ; ; ; ; ; ; ; ; ‘,
    ….,-‘’-~’’,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; | ; ; | . . . . . . ,’; ,’’¯ ; ; ; ; ; ; ; ; ; ,_ ; ‘-,
    ……….,’ ; ;,-, ; ;, ; ; ;, ; ; ; ; ; ; ; ; ; ; ‘, ; ;’, . . . . .,’ ;,’ ; ; ; ;, ; ; ;,’-, ; ;,’ ‘’~--‘’’
    ………,’-~’ ,-‘-~’’ ‘, ,-‘ ‘, ,,- ; ; ; ; ; ; ; ; ‘, ; ; ‘~-,,,-‘’ ; ,’ ; ; ; ; ‘, ;,-‘’ ; ‘, ,-‘,
    ……….,-‘’ ; ; ; ; ; ‘’ ; ; ;’’ ; ; ; ; ; ; ; ; ; ; ‘’-,,_ ; ; ; _,-‘ ; ; ; ; ; ;’-‘’ ; ; ; ‘’ ; ;’-,
    ……..,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;¯¯’’¯ ; ; ; ; ; ; ; ; , ; ; ; ; ; ; ; ; ;’’-,
    |================================================================|
    ################################################################]]

local s, t =
        12345, --player's storage
        {    
            [1] = CONST_ME_LOSEENERGY, --water
            [2] = CONST_ME_DRAWBLOOD,  --blood
            [4] = CONST_ME_HITBYPOISON,  --slime
        }

function onStepOut(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if isPlayer(cid) and getPlayerStorageValue(cid, s) > 0 then
        if not isPlayerGhost(cid) then
            doSendMagicEffect(fromPosition, CONST_ME_BLOODYSTEPS)
        end
        doPlayerSetStorageValue(cid, s, getPlayerStorageValue(cid,s)-1)
    end
return true
end

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)    
    if t[item.type] and not isPlayerGhost(cid) then
        doSendMagicEffect(position, t[item.type])
        doTransformItem(item.uid, item.itemid+1)
        doDecayItem(item.uid)
        if isPlayer(cid) then
            setPlayerStorageValue(cid, s, 5)
        end
    end    
return true
end

:thumbup: Enjoy!
 
Last edited:
Wouldn't it be better to give a certain % of chance to tranform the item?
because if you kill something and someone else keeps stepping on it, you probably can't loot it.
 
tank iou ^^
no need for screenshot, its a simple script and can be fastly tested

Wouldn't it be better to give a certain % of chance to tranform the item?
because if you kill something and someone else keeps stepping on it, you probably can't loot it.

oO transform wat man????
itz just a splash, nothing else
 
^^ just the "pool"
now, there must be a function to check the ground (isWalkable, querytileaddthing ) or something else
but itemid="" f*ks everything ^.0
 
nah, wont'work
i've tried wit querytileaddthing, removing itemid="", but nah
 
nah i bought the rights
 
I would add something like:
addEvent(setPlayerStorageValue,10*1000,cid,s,0)
Because it makes no sense that if you stand still in that pool for 3 days that your shoes arent dried then.. ;d
 
Hi,
Is it possible if you could make it to when admins are ghost it doesnt show their footsteps thanks!
 
Hi,
Is it possible if you could make it to when admins are ghost it doesnt show their footsteps thanks!

Lua:
   --[[###############################################################
    |===============================================================|
    |  Splash! Script. TFS 0.3.6pl1. By Cybermaster                                                            |
    |  Powered by: Ped0bear inside™                                                                                   |
    ………………….._,,-~’’’¯¯¯’’~-,,
    ………………..,-‘’ ; ; ;_,,---,,_ ; ;’’-,…………………………….._,,,---,,_
    ……………….,’ ; ; ;,-‘ , , , , , ‘-, ; ;’-,,,,---~~’’’’’’~--,,,_…..,,-~’’ ; ; ; ;__;’-,
    ……………….| ; ; ;,’ , , , _,,-~’’ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ¯’’~’-,,_ ,,-~’’ , , ‘, ;’,
    ……………….’, ; ; ‘-, ,-~’’ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’’-, , , , , ,’ ; |
    …………………’, ; ;,’’ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’-, , ,-‘ ;,-‘
    ………………….,’-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’’-‘ ;,,-‘
    ………………..,’ ; ; ; ; ; ; ; ; ; ; ; ;__ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ‘-,’
    ………………,-‘ ; ; ; ; ; ; ; ; ; ;,-‘’¯: : ’’-, ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; _ ; ; ; ; ;’,
    ……………..,’ ; ; ; ; ; ; ; ; ; ; ;| : : : : : :| ; ; ; ; ; ; ; ; ; ; ; ; ,-‘’¯: ¯’’-, ; ; ;’,
    …………….,’ ; ; ; ; ; ; ; ; ; ; ; ‘-,_: : _,-‘ ; ; ; ; ; ; ; ; ; ; ; ; | : : : : : :| ; ; ; |
    ……………,’ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ¯¯ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’-,,_ : :,-‘ ; ; ; ;|
    …………..,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ,,-~’’ , , , , ,,,-~~-, , , , _ ; ; ;¯¯ ; ; ; ; ;|
    ..…………,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;,’ , , , , , , ,( : : : : :) , , , ,’’-, ; ; ; ; ; ; ; ;|
    ……….,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;’, , , , , , , , ,’~---~’’ , , , , , ,’ ; ; ; ; ; ; ; ;’,
    …….,-‘’ ; _, ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ‘’~-,,,,--~~’’’¯’’’~-,,_ , ,_,-‘ ; ; ; ; ; ; ; ; ; ‘,
    ….,-‘’-~’’,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; | ; ; | . . . . . . ,’; ,’’¯ ; ; ; ; ; ; ; ; ; ,_ ; ‘-,
    ……….,’ ; ;,-, ; ;, ; ; ;, ; ; ; ; ; ; ; ; ; ; ‘, ; ;’, . . . . .,’ ;,’ ; ; ; ;, ; ; ;,’-, ; ;,’ ‘’~--‘’’
    ………,’-~’ ,-‘-~’’ ‘, ,-‘ ‘, ,,- ; ; ; ; ; ; ; ; ‘, ; ; ‘~-,,,-‘’ ; ,’ ; ; ; ; ‘, ;,-‘’ ; ‘, ,-‘,
    ……….,-‘’ ; ; ; ; ; ‘’ ; ; ;’’ ; ; ; ; ; ; ; ; ; ; ‘’-,,_ ; ; ; _,-‘ ; ; ; ; ; ;’-‘’ ; ; ; ‘’ ; ;’-,
    ……..,-‘ ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;¯¯’’¯ ; ; ; ; ; ; ; ; , ; ; ; ; ; ; ; ; ;’’-,
    |================================================================|
    ################################################################]]

local s, t =
        12345, --player's storage
        {    
            [1] = CONST_ME_LOSEENERGY, --water
            [2] = CONST_ME_DRAWBLOOD,  --blood
            [4] = CONST_ME_HITBYPOISON,  --slime
        }

function onStepOut(cid, item, position, lastPosition, fromPosition, toPosition, actor)
    if isPlayer(cid) and getPlayerStorageValue(cid, s) > 0 then
        if not isPlayerGhost(cid) then
            doSendMagicEffect(fromPosition, CONST_ME_BLOODYSTEPS)
        end
        doPlayerSetStorageValue(cid, s, getPlayerStorageValue(cid,s)-1)
    end
return true
end

function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)    
    if t[item.type] and not isPlayerGhost(cid) then
        doSendMagicEffect(position, t[item.type])
        doTransformItem(item.uid, item.itemid+1)
        doDecayItem(item.uid)
        if isPlayer(cid) then
            setPlayerStorageValue(cid, s, 5)
        end
    end    
return true
end

:D thanks for the suggestion
 
Back
Top