CreatureEvent [TFS 1.2] Revive system + resurrection spell by Zbizu

Discussion in 'GlobalEvents, Spells & CreatureEvents' started by zbizu, Oct 24, 2015.

  1. Lordaeron

    Lordaeron Member

    Joined:
    Mar 15, 2014
    Messages:
    132
    Likes Received:
    7
    Best Answers:
    0
    Got problem to make the buttons work for OT Client. Anyone has an fix for that?
     
  2. Caronte1

    Caronte1 if isBomb(ready) then cid:say("Alah AK bar") end

    Joined:
    Dec 5, 2014
    Messages:
    44
    Likes Received:
    21
    Best Answers:
    0
    You have to change group 0 flags...

    @zbizu nice script
     
  3. Colors

    Colors

    Joined:
    Mar 22, 2013
    Messages:
    905
    Likes Received:
    249
    Best Answers:
    0
    That won't fix the problem. In the original script I had to teleport the player to the temple and then teleport back to where the player died, so the monsters lose the target.
     
  4. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,438
    Likes Received:
    1,332
    Best Answers:
    0
    fixed
    @Colors' solution seems working, but only if a player decides to move
     
    Last edited: Jan 10, 2016
  5. Colors

    Colors

    Joined:
    Mar 22, 2013
    Messages:
    905
    Likes Received:
    249
    Best Answers:
    0
    If he decides to move? How so?
     
  6. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,438
    Likes Received:
    1,332
    Best Answers:
    0
    anyone knows why this script doesn't allow otclient users to move?
    that's a bug and is not intended

    @Colors
    nvm first post updated with weird solution
    can't think of anything better
     
    Last edited: Jan 10, 2016
  7. zygus0001

    zygus0001 Member

    Joined:
    Feb 26, 2015
    Messages:
    211
    Likes Received:
    9
    Best Answers:
    0
    good scripts
     
  8. Mandizinho

    Mandizinho New Member

    Joined:
    Dec 26, 2015
    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    When you enter any player happens in the image below error.

    [​IMG]
     
  9. narko

    narko ;_; hello world ;_;

    Joined:
    Oct 19, 2008
    Messages:
    1,286
    Likes Received:
    117
    Best Answers:
    2
    I assume you are using TFS 1.0
    Code (Text):
    1. local player = Player(cid)
     
  10. Mandizinho

    Mandizinho New Member

    Joined:
    Dec 26, 2015
    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    My version is 1.2....

    But, don't open the "DeathModal" and don't cure..

    I need include "local Player = Player(cid)", in start the modaldeath.lua or in function Login?
    [​IMG]

    [​IMG]
     
  11. jeanloq

    jeanloq New Member

    Joined:
    Jan 23, 2009
    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    I'm having the same problem , the message to use to revive item does not appear , only the normal death , the player can not use magic to revive , and made the same way as is the tutorial.

    tfs 1.2 also
     
  12. tommy91

    tommy91 Member

    Joined:
    Oct 27, 2010
    Messages:
    119
    Likes Received:
    9
    Best Answers:
    0
    I get that as well, i am using the latest tfs
     
  13. _M4G0_

    _M4G0_ Active Member

    Joined:
    Feb 6, 2016
    Messages:
    241
    Likes Received:
    38
    Best Answers:
    9
    Is possible exclude red and black skull to use ?
     
  14. _M4G0_

    _M4G0_ Active Member

    Joined:
    Feb 6, 2016
    Messages:
    241
    Likes Received:
    38
    Best Answers:
    9
  15. _M4G0_

    _M4G0_ Active Member

    Joined:
    Feb 6, 2016
    Messages:
    241
    Likes Received:
    38
    Best Answers:
    9
  16. _M4G0_

    _M4G0_ Active Member

    Joined:
    Feb 6, 2016
    Messages:
    241
    Likes Received:
    38
    Best Answers:
    9
    1
     
    Last edited: May 18, 2016
  17. Pedrook

    Pedrook Member

    Joined:
    May 24, 2009
    Messages:
    79
    Likes Received:
    2
    Best Answers:
    0
    Good evening, I found some details that might have changes ..
    For example I died surrounded by dragon and pressed in wait I could not ctrl + g or ctrl + q and log back in and come back when I wanted to, or move the doll, so I had to wait for 30min.
    It would be nice if the player could choose to get back or not ..
     
  18. strutZ

    strutZ Australian OT Member {AKA Beastn}

    Joined:
    Nov 16, 2014
    Messages:
    1,227
    Likes Received:
    429
    Best Answers:
    1
    Your signature "Please i'm learning english, if i wrote something wrong or unusual/uncommon, correct me quoting my post. i'll like your post..."

    Is not right it should be

    "Please, I'm learning English, if I write something wrong or unusual/uncommon, correct me quoting my post. I'll like your post..."
    There is an option for that. "Kill me now" or something
     
  19. Jeffro

    Jeffro Alpha

    Joined:
    Jan 17, 2015
    Messages:
    236
    Likes Received:
    256
    Best Answers:
    0
    I made this simple revive apple system based on your idea. I place it right in with my playerdeath.lua. Then declare it in creaturescripts.xml and login.lua.

    [EDIT] I tested this once, meaning I only used 1 apple to test this. Then after apple was consumed, player did die.

    Code (Text):
    1.  
    2. local aor = {id = 2674, count = 1}
    3.  
    4. function onPrepareDeath(creature, killer) --apple of rejuvenation/revive system
    5.     if creature:getItemCount(aor.id) == 0 then return true end
    6.  
    7.     creature:addHealth(creature:getMaxHealth())
    8.     creature:removeItem(aor.id, aor.count)
    9.     creature:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Apple of Rejuvenation")
    10.     return false
    11. end
    12.  
     
  20. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,438
    Likes Received:
    1,332
    Best Answers:
    0
    @Jeffro
    auto resurrection will make you lose all your revive items so if you are trapped you're going to lose all of them and die anyway
    unless you add tp to temple also
     
    Jeffro likes this.

Share This Page

Loading...