Management Karbust 4913 Posted July 27, 2014 Management Share Posted July 27, 2014 hi guys I want do request to the experts in quests if have anyone who can write a function for when the character die we can configure other things thanks Link to comment Share on other sites More sharing options...
Denis 1477 Posted July 27, 2014 Share Posted July 27, 2014 if pc.is_dead() then --do your stuff here end 2 Link to comment Share on other sites More sharing options...
xDeStRuCtx 2 Posted July 27, 2014 Share Posted July 27, 2014 if pc.is_dead() then --do your stuff here end I think he wants when dead begin @top you have to write your own event. 1 Link to comment Share on other sites More sharing options...
Denis 1477 Posted July 27, 2014 Share Posted July 27, 2014 Then you must write an event type in c++ 2 Link to comment Share on other sites More sharing options...
Management Karbust 4913 Posted July 28, 2014 Author Management Share Posted July 28, 2014 I use game 2089M, and I don't want to upgrade my game to a new it's possible write that function for questlib.lua?? thanks Link to comment Share on other sites More sharing options...
DarkWolf 11 Posted July 28, 2014 Share Posted July 28, 2014 try this: function player_is_dead() loop_timer("player_is_dead", 0.1) when player_is_dead.timer begin if pc.is_dead() then clear_timer("player_is_dead") --do your stuff here end end end 1 Link to comment Share on other sites More sharing options...
Management Karbust 4913 Posted July 28, 2014 Author Management Share Posted July 28, 2014 this woks like when the player die??? Link to comment Share on other sites More sharing options...
Denis 1477 Posted July 28, 2014 Share Posted July 28, 2014 call the function in your quest and then at the function add your stuff 2 Link to comment Share on other sites More sharing options...
Management Karbust 4913 Posted July 28, 2014 Author Management Share Posted July 28, 2014 thanks I go test... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now