SphereCommunity
Is it possible? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Is it possible? (/Thread-Is-it-possible)



Is it possible? - oONautilusOo - 02-05-2013 03:51 AM

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!


RE: Is it possible? - darksun84 - 02-05-2013 03:54 AM

1 2 and 4 yes, 3 i don't know


RE: Is it possible? - oONautilusOo - 02-05-2013 03:58 AM

Awesome, now to learn the code to do it!

Cheers Darksun


RE: Is it possible? - Soulless - 02-05-2013 04:07 AM

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


RE: Is it possible? - Ultima One - 02-05-2013 05:05 AM

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