HristDead Posted September 24, 2012 Group: Members Topic Count: 66 Topics Per Day: 0.01 Content Count: 167 Reputation: 2 Joined: 08/01/12 Last Seen: October 9, 2019 Share Posted September 24, 2012 (edited) Solved by Emistry. Edited September 28, 2012 by HristDead Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 24, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 24, 2012 monster "caspen",0,0,"Treasure Chest",1845,1,"Treasure Chest Event::OnTBoxKilled"; initnpctimer; end; OnTimer1800000: announce "Event Cancelled",0; killmonster "caspen","All"; stopnpctimer; end; Quote Link to comment Share on other sites More sharing options...
HristDead Posted September 24, 2012 Group: Members Topic Count: 66 Topics Per Day: 0.01 Content Count: 167 Reputation: 2 Joined: 08/01/12 Last Seen: October 9, 2019 Author Share Posted September 24, 2012 Thank you emistry. i will try that, but what about this part? } else { end; } end; do i remove it? Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 24, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 24, 2012 yes..can be remove if you want.. Quote Link to comment Share on other sites More sharing options...
HristDead Posted September 28, 2012 Group: Members Topic Count: 66 Topics Per Day: 0.01 Content Count: 167 Reputation: 2 Joined: 08/01/12 Last Seen: October 9, 2019 Author Share Posted September 28, 2012 Hi emistry, the announce even comes if the chest gets destroyed... how to make it only when no one founds it? Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 28, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 28, 2012 refer to previous post i made and edit.. announce "Event Cancelled and treasure box removed.",0; Quote Link to comment Share on other sites More sharing options...
HristDead Posted September 28, 2012 Group: Members Topic Count: 66 Topics Per Day: 0.01 Content Count: 167 Reputation: 2 Joined: 08/01/12 Last Seen: October 9, 2019 Author Share Posted September 28, 2012 Yes that part works but i mean the announce shows up even when a player destroys the chest. its abit weird that announce comes when a player has already killed it. Any idea how to change? Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 28, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 28, 2012 remove this... announce "The Treasure Chest has been found and destroyed by "+strcharinfo(0)+"!", bc_all; Quote Link to comment Share on other sites More sharing options...
HristDead Posted September 28, 2012 Group: Members Topic Count: 66 Topics Per Day: 0.01 Content Count: 167 Reputation: 2 Joined: 08/01/12 Last Seen: October 9, 2019 Author Share Posted September 28, 2012 My scripting skill isnt far as great as you mister emistry, but using my own knowledge i dont see how that would be what i am searching for. this is what im looking for: script is fine, but only the announce "player failed to destroy chest. treasure chest removed by server",0; should come up if player FAILS to find the chest within 30 minutes after it spawned. i dont want to get rid of the "Chest has been found" line... Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 28, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 28, 2012 in 1st post...you request to remvoe the monster ... so i have provide you the solution in post#2 the script will be cancelled and remove all the monster... in post#5 , you request the script to announce after 30minute when nobody found the treasure box... so i have provide you the solution in post#6 then in post#7 , you want the the never announce if anyone killed / found it and request to remove it. so i have provide you the solution in post#8 and now in post#9 , now you said you dont want to remove the announce for chest is found / killed ....and the announce for failed to locate the treasure box should be shown after 30minute ...( isnt that solution is provided in post#6 ?? ) if you want to keep the announce for chest is found / killed ...then just dont follow what i said in post#8 .... is there anything did i missed ? Quote Link to comment Share on other sites More sharing options...
HristDead Posted September 28, 2012 Group: Members Topic Count: 66 Topics Per Day: 0.01 Content Count: 167 Reputation: 2 Joined: 08/01/12 Last Seen: October 9, 2019 Author Share Posted September 28, 2012 hi emistry sorry for the confusion. post #7 i ask for the announce to only show up if a player cant find the chest/destroy the chest, I'm talking about the "treasure chest has been killed by the server" and not about "treasure chest been killed by a player" right now when a player destroys the chest, it still announce 30 minutes later that the chest has not been found and so it gets destroyed by the server while that is not the case because player already destroyed it. Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 28, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 28, 2012 OnTBoxKilled: announce "The Treasure Chest has been found and destroyed by "+strcharinfo(0)+"!", bc_all; getitem 7227,1; stopnpctimer; end; Quote Link to comment Share on other sites More sharing options...
HristDead Posted September 28, 2012 Group: Members Topic Count: 66 Topics Per Day: 0.01 Content Count: 167 Reputation: 2 Joined: 08/01/12 Last Seen: October 9, 2019 Author Share Posted September 28, 2012 Thank you Emistry!! Quote Link to comment Share on other sites More sharing options...
Question
HristDead
Solved by Emistry.
Edited by HristDeadLink to comment
Share on other sites
12 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.