Script help - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions) +--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help) +--- Thread: Script help (/Thread-Script-help) Pages: 1 2 |
Script help - TigerBlitz - 09-06-2013 05:21 AM this script is right ? Code: ON=@DAMAGE RE: Script help - darksun84 - 09-06-2013 06:07 AM It's not very understeable formatted in that way RE: Script help - TigerBlitz - 09-06-2013 06:19 AM you said that I agree. its written for Sphere 51a. But Sphere not giving any error, when using. so i want to consult for it. RE: Script help - RanXerox - 09-06-2013 06:46 AM Lots of things in that code do not make sense... even for v51a @Damage is a trigger that gets fired when a item is damaged... in @Damage trigger, SRC is a reference to the source of the damage. 1. "IF X==0" is going to test that the X coordinate of the item taking damage is zero... that makes no sense. 2. "<SRC.npc> == 1 || <SRC.npc> == 2 ..." is not valid syntax unless it is in an IF condition, which it is not. 3. "SRC.SOUND" is pointless if the entity causing damage is not a player (items and npc's don't hear sounds).. 4. "<SRC.npc>==0" You cannot change the brain of a player, nor can you change the brain of a NPC to make it a player... makes no sense. 5. "SRC.str= (<SRC.str>-1)" if the source of the damage is an item, this doesn't make sense because items don't have strength. 6. "src.sleep" does not make sense if the source of the damage was an item. Regardless of all that, none of this code will ever be executed by the server because of #1... since an item's X position can never be zero. That is maybe why the server does not complain about it RE: Script help - TigerBlitz - 09-06-2013 06:57 AM thx Ran. so its useless i understand. RE: Script help - Mordaunt - 09-06-2013 08:35 AM This... would very clearly be.... The 56b/56c forum... 51a is in the basement, in a filing cabinet that is jammed against the wall and hidden behind a large potted plant. Moving... RE: Script help - evening - 09-06-2013 01:44 PM ONTRIGGER=DAMAGE IF (<SRC.REGION.FLAGS> & 04000) && (!(<LINK.REGION.FLAGS> & 02000)) && (<LINK.REGION.FLAGS> & 04000) && ((<SRC.OBODY> == 0190) || (<SRC.OBODY> == 0191)) LINK.EFFECT=1,0373A,6,15,1 LINK.HITS=0 link.speaku 卫兵区禁止使用神器攻击他人 return 1 endif if (<morey> <= 0) || (<morey> > 15) //未鉴定 return 1 endif //link.speaku <valstr ((<link.str> + -260) / 2 + (rand(<valstr <dam>>) / 2))> //link.speaku <valstr (rand(<valstr <dam>>) / 2)> src.damage <valstr ((<link.str> + -260) / 2 + (rand(<valstr <dam>>) / 2))> //按等级追加的伤害 //神器爆发率 = (等级 * 品质) / 120 //if (rand(120) > (<morey> * 2)) if ((<SRC.SKILLCLASS> >= 31) && (<SRC.SKILLCLASS> <= 40)) || ((<SRC.SKILLCLASS> >= 61) && (<SRC.SKILLCLASS> <= 70)) if (rand(900) > (<morey> * <morey>)) // 1/4 return 1 endif elseif ((<SRC.SKILLCLASS> >= 1) && (<SRC.SKILLCLASS> <= 10)) || ((<SRC.SKILLCLASS> >= 11) && (<SRC.SKILLCLASS> <= 20)) || (<SRC.SKILLCLASS> >= 71) // 1/5 if (rand(1125) > (<morey> * <morey>)) return 1 endif else if (rand(675) > (<morey> * <morey>)) // 1/3 return 1 endif endif LINK.SPEAKU 七 星 剑 阵 //****** src.EFFECT=3,03b20,6,15,1 if (<SRC.REGION.FLAGS> & 02000) //城里无效 return 1 endif IF (<SRC.STAM> > (<SRC.DEX> * 3 / 10)) SRC.STAM=<SRC.STAM> + -<valstr (<src.dex> * 3 / 10)> ELSE SRC.STAM=-1 ENDIF src.spelleffect 1 01 if (<src.findlayer(32).baseid>) src.findlayer(32).more=1 //表示要吸精力 src.findlayer(32).timer=1 if (<morey> > 10) src.findlayer(32).morex=<morey> + -8 src.findlayer(32).morez=<morey> + -8 elseif (<morey> > 5) src.findlayer(32).morex=2 src.findlayer(32).morez=3 else src.findlayer(32).morex=2 src.findlayer(32).morez=2 endif endif return 1 RE: Script help - amonvangrell - 09-06-2013 06:00 PM aways use code on your script post. Code: [code] RE: Script help - Rattlehead - 09-06-2013 06:26 PM ONTRIGGER=DAMAGE dafuk? oO RE: Script help - Adidas-=420=- - 09-23-2013 02:55 AM lol, you tell me what you want, and I will script it for you! its that simple. |