Page 1 of 1

[Mod] Time2PWN [time2pwn]

PostPosted: Sun Dec 09, 2012 09:28
by LorenzoVulcan
Time2pwn is a mod that place player's inventory on the ground when a player dies.

Download: http://hidemyass.com/files/iZRNP/

Source code: http://paste.forkforge.net/source/?id=3981l&s=si&l=LUA

This is a simple and performable mod that makes griefing/PVP more fun!

PostPosted: Sun Dec 09, 2012 12:01
by xyz
Inventory is not guaranteed to have 32 items (same for craft grid), you should use get_size("name").

PostPosted: Sun Dec 09, 2012 12:21
by LorenzoVulcan
xyz wrote:Inventory is not guaranteed to have 32 items (same for craft grid), you should use get_size("name").

Thanks for the tip,anyway,that was scripted for minetest original core inventory.

Re: [Mod] Time2PWN [time2pwn]

PostPosted: Sun Jan 18, 2015 19:44
by Napiophelios
Does any one have a copy of this they can share?
None of the links work for me.

Re: [Mod] Time2PWN [time2pwn]

PostPosted: Sun Jan 18, 2015 20:45
by ExeterDad
The source code link doesn't work for you?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
--  _______          _     _______
-- (_______)        | |   (_______)                                  _
--  _____ ___   ____| |  _ _____ ___   ____ ____  ____   ____   ____| |_
-- |  ___) _ \ / ___) | / )  ___) _ \ / ___) _  |/ _  ) |  _ \ / _  )  _)
-- | |  | |_| | |   | |< (| |  | |_| | |  ( ( | ( (/ / _| | | ( (/ /| |__
-- |_|   \___/|_|   |_| \_)_|   \___/|_|   \_|| |\____|_)_| |_|\____)\___)
--                                        (_____|
--
-- ######################################################################
--                        LULZPACK | BLOCKFORGE 2#
-- ######################################################################
--
--
-- This project is granted under the zlib license.
-- You can modify or redistribute it under the zlib conditions.
 
pwned=function(player, drops)
     pos=player:getpos()
     itempos={x=pos.x,y=pos.y+1,z=pos.z}
     local inv=player:get_inventory()
     for i=1,32 do
        local item=inv:get_stack("main", i)
        for i=1,item:get_count() do
        minetest.env:add_item(itempos,item:get_name()) end
        inv:set_stack("main", i, nil)
        for i=1,9 do inv:set_stack("craft", i,nil) end
        inv:set_stack("craftpreview", 1,nil)
     end
end
 
 
minetest.register_on_dieplayer(pwned)

I don't know how to hide text in a spoiler. Sorry :)

Re: [Mod] Time2PWN [time2pwn]

PostPosted: Sun Jan 18, 2015 20:52
by Napiophelios
No, I dont know why either
Down For Everyone Or Just Me? says... "ITS JUST YOU!!" to me quite alot.
I think Comcast knows about those episodes of The Blacklist I downloaded last year.

Thanks man!

Re: [Mod] Time2PWN [time2pwn]

PostPosted: Sat Jan 24, 2015 20:14
by Hybrid Dog
Napiophelios wrote:http://downforeveryoneorjustme.com/

this website uses google analytics