![]() |
Decay timer - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Decay timer (/Thread-Decay-timer) |
Decay timer - larmc20 - 01-28-2014 09:49 AM PHP Code: [Events e_decay] It's not working. Don't know why RE: Decay timer - Extreme - 01-28-2014 11:55 AM Go to sphere.ini and set the decay timer. I'm sorry for that, the item is not ARGO, its ACT. Something going wrong, after the timer, the item is getting the decay timer set on sphere.ini. And its a thread with the same question. RE: Decay timer - XuN - 01-28-2014 06:28 PM Wich part is not working? you have to be more descriptive so we can give you back a clear anwser. At first: reading the wiki solves almost all of these problems: http://wiki.sphere.torfo.org/index.php/@ItemDropOn_Ground , look at references and also argn1/args and you will have your problem solved. If you want to know why is this happening: Sphere is doing its work after this trigger takes proccess, setting the timer to de value from sphere.ini, so if you want it to stop this proccess you must use return 1 (wich will prevent too the item for being placed on the ground, so you will have to place it in the script too using <args> to retrieve the drop point), otherwise you can use argn1 wich is faster and easier ![]() RE: Decay timer - Extreme - 01-28-2014 10:22 PM Thanks XuN for the explanation. Don't know if it is a real problem... What happen is: - You drop the item on ground; - @ItemDropOn_Ground is fired and set attr_decay and timer 60. - After the timer (60), the item don't decay, it gets another timer (set on sphere.ini). In my opinion, the decay timer is overriding the behaviour at @itemdropon_ground. I can't test NOW, maybe next week hahaha But the argn1 thing SHOULD work, if not, if happen the same thing with the timer, its broken. So here is the script to test: PHP Code: ON=@ItemDropOn_Drop RE: Decay timer - Mordaunt - 01-29-2014 12:54 AM This might sound like a silly thing to suggest.... But have you tried to set the attr first and then the timer? If the item is not set to decay when the timer is put on it does it stick with the value you place or does it become -1? @ItemDropOn_Ground ref1 <argo> ref1.attr (<ref1.attr>&attr_decay) ref1.timer 600 Also as I pointed out in the trashcan thread... Without further checks this event will delete all items you drop, including those inside your house. RE: Decay timer - larmc20 - 01-29-2014 10:42 AM Well... [EVENT e_decay] on=@ItemDropOn_Ground src.sysmessage @0abc O item sumira em 1 minuto! argn1 600 Worked Very Well... For a War Shard the anywhere decay its acceptable. Thanks mates. RE: Decay timer - victorstelzer - 01-31-2014 09:36 AM Heim me ajuda a fazer isso abri um topico pra isto mas nao consegui resolver este problema RE: Decay timer - danielmuller - 06-17-2016 03:34 AM (01-31-2014 09:36 AM)victorstelzer Wrote: Heim me ajuda a fazer isso abri um topico pra isto mas nao consegui resolver este problema ON=@itemDROPON_GROUND if (<isgm>) sysmessage Este item esta travado! act.attr=08010 return 0 ELSE ACT.Timer = 180 SYSMESSAGE Tempo de decay de <aCT.NAME> 3 minutos ENDIF Poe num evento pra todos os players no skillclass abraços! |