Jump to content
  • 0

auto destroy after 30 mins?


HristDead

Question


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

Solved by Emistry. :)

Edited by HristDead
Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

monster "caspen",0,0,"Treasure Chest",1845,1,"Treasure Chest Event::OnTBoxKilled";
initnpctimer;
end;

OnTimer1800000:
announce "Event Cancelled",0;
killmonster "caspen","All";
stopnpctimer;
end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

Thank you emistry. i will try that, but what about this part?


} else {
end;
}
end;

do i remove it?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

yes..can be remove if you want..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

Hi emistry, the announce even comes if the chest gets destroyed...

how to make it only when no one founds it?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

refer to previous post i made and edit..

announce "Event Cancelled and treasure box removed.",0;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

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? :(

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

remove this...

announce "The Treasure Chest has been found and destroyed by "+strcharinfo(0)+"!", bc_all;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

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...

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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 ? /hmm

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

OnTBoxKilled:
announce "The Treasure Chest has been found and destroyed by "+strcharinfo(0)+"!", bc_all;
getitem 7227,1;
stopnpctimer;
end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  66
  • Topics Per Day:  0.02
  • Content Count:  167
  • Reputation:   2
  • Joined:  08/01/12
  • Last Seen:  

Thank you Emistry!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...