Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Mod = RegisterMod(-- your mod, 1)
- local game = Game()
- local wasRevived = false
- local isLazarus = false
- function Mod:onPlayerUpdate(player)
- if player:HasCollectible(-- your item) then
- if wasRevived == false
- and player:IsDead() then
- player:Revive()
- wasRevived = true
- end
- if wasRevived == true
- and isLazarus == false
- and player:GetPlayerType() == PlayerType.PLAYER_LAZARUS) then
- isLazarus = true
- end
- While (wasRevived == true
- and isLazarus == false
- and player:GetPlayerType() ~= PlayerType.PLAYER_LAZARUS) do
- -- give fake item for Clicker
- player:AddCollectible(1, false)
- player:UseActiveItem(482, false, false, false, false)
- end
- end
- end
- Mod:AddCallback(ModCallbacks.MC_POST_PLAYER_UPDATE, Mod.onPlayerUpdate)
Add Comment
Please, Sign In to add comment