• 阅读3940
  • 回复20

关于社区宠物的最新研究结果

[复制链接]
发表于 2005-10-10 21:43 | 显示全部楼层 |阅读模式
<P>首先谢谢YY。</P>
<P>我下载了社区宠物插件的源程序,研究了一下,</P>
<P>得出以下一些经验同朋友们交流:</P>
<P>宠物物敏捷素质点的配置</P>
<P>1、获得先手<br>在大冒险中,只要宠物的速度比怪物的高,就可以获得先手。</P>
<P>各级怪物的速度如下:</P>
<P>1级  5<br>2级  10<br>3级  20<br>4级  30<br>5级  40<br>6级  50<br>7级  60<br>8级  80<br>9级  100<br>10级  120<br>11级  150</P>
<P>从这个角度来说,只要比相应级别的怪物略高就可以获得先手,</P>
<P>速度达到151就可以在所有的区域中获得先手攻击。</P>
<P>2、成功躲避<br>这是源程序:<br>  '躲避参数<br>  dim miss1,miss2<br>  speed=speed+5<br>  miss1=int(rnd*(200+monspeed/10-speed/10))<br>  '是否躲避成功<br>  if miss1&lt;10 then atk2=0 end if</P>
<P>式中:monspeed就是怪物的速度,speed是你的宠物的速度,miss1小于10时躲避成功</P>
<P>宠物的速度比怪物的速度高的越多,越容易躲避成功,</P>
<P>比起取得先手来说,需要更高的速度。</P>
<P>但从实际来说,只要能够取得先手,而你的宠物有足够的攻击力秒杀怪物,就完全可以不受怪物的伤害。</P><br>
[此贴子已经被作者于2005-10-10 13:45:49编辑过]

六安论坛
 楼主| 发表于 2005-10-10 21:44 | 显示全部楼层
<P><BR>幸运技能:</P>
<P><BR>根据我对程序的分析,幸运技能对于宠物掉宝和升级材料的使用毫无帮助,</P>
<P>只在攻击时起作用:</P>
<P>源程序:<BR>  if rs("luckskill")&gt;0 then<BR>   if int((100-rs("luckskill")/2)*rnd)&lt;2 then luck1=2<BR>  end if<BR>  if rs("luckskill")&gt;30 then<BR>   if int((100-rs("luckskill")/1.8)*rnd)&lt;2 then luck1=2<BR>  end if<BR>  if rs("luckskill")&gt;100 then<BR>   if int((100-rs("luckskill")/1.5)*rnd)&lt;2 then luck1=2<BR>  end if<BR>理论上幸运技能达到150就可以保证宠物每次都可以使出幸运攻击。</P>
<P>幸运攻击的使用效果:(以下为源程序)<BR>  '攻击者对防御者的伤害<BR>                atktmp=int((atktemp1/2+atktemp1/2*rnd)*1.5*atkrand1*atkskill1-deftemp2)<BR>  if luck1=2 then<BR>   atktmp=int((atktemp1*1.5*atkrand1*atkskill1-deftemp2)*1.5)<BR>                endif<BR>从这段程序分析,幸运攻击是普通攻击最高值的1.5倍!<BR></P>
六安论坛
 楼主| 发表于 2005-10-10 21:44 | 显示全部楼层
<P>掉宝的分析:</P>
<P>源程序如下:<BR>   temp1=int(rnd*(300000-int(monslv*1000))+1)<BR>   '龙系掉宝几率 <BR>   if monssx="龙" then<BR>    temp1=int(rnd*(100000-int(monslv*1000))+1)<BR>   end if<BR>   temp2=0<BR>   if temp1 &lt; 10000 and temp1 &gt; 8000 then<BR>    temp2 = 2 '掉防具升级材料<BR>   end if<BR>   if temp1 &lt;8000 and temp1&gt; 6000 then<BR>    temp2 = 3 '掉武器升级材料<BR>   end if<BR>   if temp1 &lt; 6000 then<BR>    temp2 = 1 '掉HP<BR>   end if<BR>   if temp1 &lt;3000 and monslv &gt;5 then<BR>    temp2 = 4<BR>   end if<BR>   if temp1 &lt; 2000 and monslv &gt;8 then<BR>    temp2 = 5<BR>   end if<BR>   if temp1 &lt; 1000 and monslv &gt;10 then<BR>    temp2 = 6<BR>   end if<BR>   if temp1 &lt; 200 and monslv &gt;15 then<BR>    temp2 = 7<BR>   end if<BR>   if temp1 &lt; 50 and monslv &gt;20 then<BR>    temp2 = 8<BR>   end if<BR>   if temp1 &lt; 10 and monslv &gt;25 then<BR>    temp2 = 9<BR>   end if<BR>   if temp1 =2 and monslv &gt;30 then<BR>    temp2 =10<BR>   end if</P>
<P>很明显,如果打的是龙怪的话,掉宝的几率大大增加,</P>
<P>temp1小于10000时就会掉宝,经分析,这个temp2就是所掉的武器的级别,</P>
<P>monslv是与宠物级别有关系的数值,5对应的是3级怪物,30对应的是9级怪物,</P>
<P>所以只有PK10级(80级的宠物冒险的地方)以上怪物才有可能掉最好的宝贝,</P>
<P>而由程序可以看出要使temp1=2实在是一件很难的事情,所以想打到10级的装备真的是一件不容易的事。</P>
<P>另外,从程序可以看出,其实掉宝完全与幸运技能无关。</P>
<P><BR> </P>
六安论坛
 楼主| 发表于 2005-10-10 21:45 | 显示全部楼层

<P>宠物升级材料的使用</P>
<P>源程序如下:</P>
<P>'升级成功率计算<BR>     randomize<BR>     uprnd=rnd*100+1<BR>     dim temp<BR>     if uprnd&lt;=cint((80-upnum*5)/2) then   <BR>      uppoint = 2 <BR>      upword = "运气真好 恭喜你 加强值提高 2 点!"<BR>     elseif uprnd&lt;=(80-upnum*5) then<BR>      uppoint = 1<BR>      upword = "运气不错 恭喜你 加强值提高 1 点!"<BR>     elseif uprnd &lt;= cint((80-upnum*5)+20) then<BR>      uppoint = 0<BR>      upword = "运气不好 加强值没有得到提高!"<BR>     else<BR>      uppoint = -1<BR>      upword = "运气不会这么差吧!加强值降低 1 点!&lt;br&gt;&lt;br&gt;&lt;font color=red&gt;请注意:等级越高的物品进行升级,越容易失败!&lt;/font&gt;"<BR>     end if</P>
<P>偶分析upnum应该是武器或防具的级别,+18就是6级,+21的就是7级,</P>
<P>以+21的7级为例计算,</P>
<P>产生的1~100的随机数小于23则提高2点,小于45提高1点,大于65降低1点</P>
<P>而如果是+24的8级计算</P>
<P>产生的1~100的随机数小于20则提高2点,小于40提高1点,大于60降低1点</P>
<P>也就是说级别越高越容易失败,而且与幸运技能完全无关。</P>
<P>另外,所有的武器和防具最多也只能加9个点就会达到最高强度,</P>
<P>就是说+21的武器(防具)最多只能升到+30</P>
<P>而+18的武器(防具)最多只能升到+27</P>
六安论坛
 楼主| 发表于 2005-10-11 04:01 | 显示全部楼层
<P>我算了一下,实际上加幸运技能实现幸运攻击远不如把相应的点数加到攻击技能上</P>
<P>所以这个幸运技能也可以完全不用加</P>
六安论坛
 楼主| 发表于 2005-10-11 05:09 | 显示全部楼层
<P>升级材料没什么用,</P>
<P>用了各400多个升级材料把偶的8级装备升到最高强度:</P>
<P><TH width="100%" colSpan="5" align="middle"></P><img src="attachments/dvbbs/2005-10/2005101021171879392.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2005-10/2005101021171879392.gif\');}" onmousewheel="return imgzoom(this);" alt="" /><br>
[此贴子已经被作者于2005-10-10 21:17:23编辑过]

六安论坛
 楼主| 发表于 2005-10-11 05:18 | 显示全部楼层
<P>晕!上面的居然显示不出来!</P>
<P>重写一遍:升级材料用处不大,偶用了各400多个把偶的8级武器和防具都升到最高强度了:</P><img src="attachments/dvbbs/2005-10/2005101021202360310.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2005-10/2005101021202360310.gif\');}" onmousewheel="return imgzoom(this);" alt="" /><br>
[此贴子已经被作者于2005-10-10 21:22:16编辑过]

六安论坛
发表于 2005-10-17 01:05 | 显示全部楼层
受益非浅!~
六安论坛
发表于 2005-10-28 20:25 | 显示全部楼层
<P>写的不错,看的是懂非懂,宠物的速度是怎么上去的,我不知道,你能告之吗?</P>
六安论坛
发表于 2005-11-12 00:10 | 显示全部楼层
看不懂
六安论坛
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

侵权举报:本页面所涉内容为用户发表并上传,相应的法律责任由用户自行承担;本网站仅提供存储服务;如存在侵权问题,请权利人与本网站联系删除!举报微信号:点击查看