![]() |
combat bonus - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: combat bonus (/Thread-combat-bonus) |
combat bonus - cele_35 - 05-27-2019 03:36 PM hi guys im write new combat bonus but i can not pls help me .. example :hit to enemy %20 chance 3 second only walk is this possible ?? ON=@hit if (rand(7)==1) && !(<src.findid.i_cramp_kontrol>) src.newitem i_cramp_kontrol src.act.timer 3 src.act.equip src.sayua 025,6,0,enu Cramp ! src.damage 20 0001 <uid> src.flags=<src.flags>&~statf_mt_walk /// ??? /////////// return 1 RE: combat bonus - Seokotov - 05-27-2019 07:08 PM try to change speedmode instead flags RE: combat bonus - cele_35 - 05-27-2019 10:32 PM Old client bro not work speedmode RE: combat bonus - Coruja - 05-28-2019 10:01 AM SPEEDMODE is a bit dangerous because it's client-side, and you should never trust nothing based on client-side, so you can use an alternative method There's statf_freeze flag which will paralyze the char, but since this flag is also used for more actions (eg: paralyze spell, etc) it's not a good idea use it to avoid conflicts. There's also statf_stone flag which is not a good idea because it will totally freeze the client making it unable to speak, pickup/drop items, etc So the best solution is use the hardcoded TAG.NoMoveTill, where you set an SERV.TIME value and the client will be unable to walk until SERV.TIME reach this value set Code: ON=@Hit |