![]() |
Can't use skills or attacking - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Can't use skills or attacking (/Thread-Can-t-use-skills-or-attacking) Pages: 1 2 |
Can't use skills or attacking - Oxtar - 01-09-2014 01:33 PM Hi guys, i came across something really weird which is getting on my nerves. I am currently using the latest version of sphere which is 56c. I am also using the latest scripts with custom ones i've made and some which have been done by other scripters. The issue i'm trying to figure is this. After a Resync ( AND ONLY AFTER IT ) the players get affected by a bug which prevent them from using any skill and they cannot attack an npc. The only way to attack the npc within this bug is to double click it non-stop. After using a travel stone (which is how players wander around) they can attack npc's normally and they are REQUIRED to kill an NPC to be able to use their skills normally. I've been through all my scripts, 1 by 1. Those made by my hand and those which aren't. After all, there is nothing that point me to something specific. At first i thought it might be related to my ethy mounts. Then i found out it still happened without me riding it before the resync. SOOO.... Any help is pretty welcome if you ever experienced this in the past. Thank you ![]() Code: Quick edit: RE: Can't use skills or attacking - Runcuks - 01-09-2014 09:45 PM Maybe remove these -> on=@click remove return 1 on=@npcrestock remove return 1 on=@skillstart remove return 1 RE: Can't use skills or attacking - Oxtar - 01-09-2014 10:00 PM (01-09-2014 09:45 PM)Runcuks Wrote: Maybe remove these -> Since this script wasn't made by me i wondered about those lines as well... which i already tried. The effect of removing those lines are that if you dismount the ethy mount, it does get into your backpack, but create a npc of that ethy mount into the world too. Another odd thing is, it isn't happening 100% of the time when i resync the server. Even more odd, it can happen a couple minutes after the resync as well... This drives me nuts. RE: Can't use skills or attacking - dagger4k - 01-09-2014 10:37 PM this is from the original Code: [itemdef i_et_ridgeback] RE: Can't use skills or attacking - Oxtar - 01-10-2014 12:18 PM I just tried your script and it isn't working. By the way, i finally managed to see that it IS the ethy mounts which are causing this bug. So now there is something wrong in the script for sure. RE: Can't use skills or attacking - darksun84 - 01-10-2014 10:06 PM I am using your ethereal script, after a while i got the problem too ! Looking into it RE: Can't use skills or attacking - Oxtar - 01-10-2014 10:10 PM Hah, at least i'm not crazy, Thanks! xD I've been trying to fix it for 1 whole week now. I'll let you know if i find out something as well ![]() RE: Can't use skills or attacking - darksun84 - 01-10-2014 11:10 PM I noticed that when the problem appears, the player Action value is changed to 06f ( 111) NPCACT_RIDDEN, // 111 = Being ridden or shrunk as figurine. I think it's caused by this line : src.act.more2=<src.uid> More2 in a t_eq_horse item must holds the mount uid(used by stabler npc guy). Also the @Equip doesn't fire(even if the item is actually equipped), so the link field and the ATTR are not properly setted PHP Code: newitem i_et_ridgeback I am not getting the problem for now with those changes. Maybe it looks weird that just placing the player uid in the more2 field of a t_eq_horse can cause that problem, but i think that sphere does something related to that more2 value after a worldsave is performed. PHP Code: 14:42:CliPeriodic Action -1 More information : the action is not changed until a @RegPeriodic/@CliPeriodic is fired after the save Also you'll get a skill failure message before the action change happens. RE: Can't use skills or attacking - Oxtar - 01-11-2014 09:15 AM Wow, ok i didn't go that deep into the code. I personally thought that the more2 wasn't a problem at all. So you didn't experience any problem yet? I'll give it a shot that way then. Would be nice to get a Dev to tell us what's happening behind the code and see why it is changing the value of more2 haha. EDIT: Ok, i already found a problem about that fix. After a save, the ethy mount just unequip itself and get back into the backpack. It's happening after about 3-5 second after the save has finished. I remember having this issue in the past and i think that's why it has been used on the more2 value. RE: Can't use skills or attacking - Ben - 01-12-2014 02:43 AM MORE2 of t_eq_horse is the UID of offline creature. During saves, sphere tries to fix weird things with memory items. Following this logic, the rider would become the ride... |