The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script help
Author Message
evening
Journeyman
*

Posts: 138
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #7
RE: Script help
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
09-06-2013 01:44 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Script help - TigerBlitz - 09-06-2013, 05:21 AM
RE: Script help - darksun84 - 09-06-2013, 06:07 AM
RE: Script help - TigerBlitz - 09-06-2013, 06:19 AM
RE: Script help - RanXerox - 09-06-2013, 06:46 AM
RE: Script help - TigerBlitz - 09-06-2013, 06:57 AM
RE: Script help - Mordaunt - 09-06-2013, 08:35 AM
RE: Script help - evening - 09-06-2013 01:44 PM
RE: Script help - amonvangrell - 09-06-2013, 06:00 PM
RE: Script help - Rattlehead - 09-06-2013, 06:26 PM
RE: Script help - Adidas-=420=- - 09-23-2013, 02:55 AM
RE: Script help - jdchixin - 10-08-2013, 12:57 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)