The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible?
Author Message
oONautilusOo
Apprentice
*

Posts: 29
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Jan 2013
Reputation: 3



Post: #1
Is it possible?
Is it possible to set up scripts to create the below:

1)Doors that will only open once a certain mob has been killed or item is in your posession as a work around.

2)Chests that will do the same but restock on kill

3)Resources that will only regenerate once a mob has been killed. This could be attributed to a mineable rock rather than the floor or walls.

4)Tele tiles that only activate or work when a mob has been killed.

I'm assuming the player would have to be tagged and the tile check that tag (also on a timer to limit to a time period) when find tag allow action. I'm more asking where i would start with this.
I'm learning to script again and working examples such as these would help me no end to improve! Not asking people to script this for me, (although you are welcome to if you really want to), but more what i would need to enable me to create this. I want to make my own instances and this is part of the way i wish to implement it.

Thanks for your time!
02-05-2013 03:51 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Is it possible?
1 2 and 4 yes, 3 i don't know
02-05-2013 03:54 AM
Find all posts by this user Like Post Quote this message in a reply
oONautilusOo
Apprentice
*

Posts: 29
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Jan 2013
Reputation: 3



Post: #3
RE: Is it possible?
Awesome, now to learn the code to do it!

Cheers Darksun
02-05-2013 03:58 AM
Find all posts by this user Like Post Quote this message in a reply
Soulless
Super Moderator
****

Posts: 335
Likes Given: 29
Likes Received: 49 in 27 posts
Joined: Jun 2012
Reputation: 12

Ye Olde Sphere

Post: #4
RE: Is it possible?
i would just have the items check to see if any of the creatures are in the area, or link em all to the spawn item, if there is any monsters currently alive, you cant use them. easy way to do it
02-05-2013 04:07 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #5
RE: Is it possible?
I used 1 and 4 in my instanced 'boss' rooms on an old quest system of mine, but when i put the server back up this year all the items had vanished and i cant work out how to set them up again.. lol Big Grin however, simulating instances in UO is pretty excessive for the end result, and usually not worth it unless you have 1000 players on Big Grin

Also, if the Monster being killed is within a close radius of the said item, you dont need to tag the player, add a death event to the NPC to look for an id within x radius, and change a value on that item to say it has been enabled.. e.g. change a door type from t_door_locked to t_door.

If there is a chance that there could be more than 1 item within that radius, you can always do the *NEVER DELETE THIS ITEM!* method of adding the door/telepad, and hard coding the UID in the script (set it to a var/def so you dont have to edit it in lots of places...). Then a simple UID. call on it to modify it. Although nasty, we do this on the gates for our automatic llama race rather than adding loads of tags to the npc Big Grin


#doesntLikeTagsAllThatMuch

ULTIMA ONE
The modern, sphere powered Ultima Online server
(This post was last modified: 02-05-2013 05:09 AM by Ultima One.)
02-05-2013 05:05 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)