![]() |
The best way to function ISMOVE - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: The best way to function ISMOVE (/Thread-The-best-way-to-function-ISMOVE) |
The best way to function ISMOVE - Monty - 03-13-2013 07:21 AM Hi all, At the beginning, I must apologize for my English. I need advice how do function something like ISMoveing or ChangePosition. In practice: Player staying on position 100,100 and when he go on 101,100 or something different start my function. I try do around invisible items and when he step on it start my function delete old items and create new invisiblle items. In my opinion this is the worst way what i can use. Please can anybody say me better way? I hope you understand my problem. Thx. RE: The best way to function ISMOVE - darksun84 - 03-13-2013 07:44 AM When and where you have to use this function ? it is a sort of "forever running function" or it is used in special cases? RE: The best way to function ISMOVE - Wap - 03-13-2013 08:19 AM ONPACKET_2 --> Character DIR == DIR in packet --> Movement try. RE: The best way to function ISMOVE - RanXerox - 03-13-2013 09:05 AM There is a reqion trigger called @Step, but I warn you, if you put code in this trigger your server will be VERY busy... RE: The best way to function ISMOVE - Monty - 03-13-2013 04:07 PM To darksun84: Not forever only for the selected player and only sometimes. To Wap: I never used packet in sphere or uo can you give me some tips how use it? To RanXerox: And if i will use it only for 2-5 player and only sometimes it was problem? RE: The best way to function ISMOVE - admin phoenix - 03-13-2013 05:31 PM put and memory item in your layer 30 and save the coordination x,y,z from the src on it. put a timer on it and compare the saved coordination with the new coordination from the source. that´s how I make my meditation script. RE: The best way to function ISMOVE - Wap - 03-13-2013 09:45 PM (03-13-2013 04:07 PM)Monty Wrote: To Wap: Quote:28-01-05, Vjaka So, write Quote:PACKET2=ONPACKET_2in sphere.ini after it create a function in scripts Quote:[FUNCTION ONPACKET_2] RE: The best way to function ISMOVE - RanXerox - 03-13-2013 11:27 PM 5 players wouldn't be too bad... But all the monsters in the region will be taking a step too. And if your region is the entire world, it might be too much. Try it and see. |