![]() |
refering item from pos or similar. - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: refering item from pos or similar. (/Thread-refering-item-from-pos-or-similar) Pages: 1 2 |
refering item from pos or similar. - kn4tseb - 07-17-2014 05:01 AM Hey guys, i need some help with a script and hardcoded behavior with mining when dclicking a t_weapon_mace_pick on t_rock ground the worldgem_bit appears i need to know how to make a reference to that worldgem when appearing. for example. Code: ON=@Targon_Ground Thank you very much. RE: refering item from pos or similar. - Coruja - 07-17-2014 07:20 AM You can use resource events like @ResourceTest / @ResourceFound / @ResourceGather Code: [REGIONRESOURCE mr_fish1] RE: refering item from pos or similar. - kn4tseb - 07-17-2014 07:37 AM gonna take a look, thanks ;> how can this be made as a global event for a regiontype? so i dont have to add the script under every regionresource ?? RE: refering item from pos or similar. - Extreme - 07-17-2014 08:37 AM http://wiki.sphere.torfo.org/index.php/@RegionResourceFound RE: refering item from pos or similar. - kn4tseb - 07-17-2014 08:47 AM Jesus, didnt know that trigger even exists, ty very much ![]() RE: refering item from pos or similar. - kn4tseb - 07-17-2014 10:39 AM How can i check if the player is inside a dungeon or not, because i see different minable regions rocks, r_default_rock and r_dungeon at sphere_regions.scp, would src.region.underground check this? if src is the player inside the region? Thanks! EDIT: Well for the moment used: strmatch(*r_dungeon*,<src.region.events>) // but would be nice to know whats the "underground" setting for ^^ RE: refering item from pos or similar. - XuN - 07-17-2014 04:19 PM Buildings, caves ... Everything with a roof over you. RE: refering item from pos or similar. - kn4tseb - 07-18-2014 03:21 AM understood ![]() one more thing, which trigger would recommend me if i want to found a resource but i dont want to gather it?, i want the worldgem_bit item to be created, with its respective resource (more1) and amounts but i dont know how to prevent the player from collecting/gathering... return 1 on resourceFound would work even if amount is set to 0 but i dont know how to prevent sphere to send the message, "There's nothing here to mine for." To be more accurate, what i'm tying to do is the Prospector's tool RE: refering item from pos or similar. - Extreme - 07-18-2014 05:25 AM (07-17-2014 08:37 AM)Extreme Wrote: http://wiki.sphere.torfo.org/index.php/@RegionResourceFound RE: refering item from pos or similar. - kn4tseb - 07-18-2014 05:59 AM ehhehhe i tried with that one but i cannot prevent the item to be gathered, and if i return 1 i receive the message: "There's nothing here to mine for." i'd have everything i need if i prevent that sphere message from being shown. Ty tho ![]() |