<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>书剑永恒MUD - 代码研讨</title>
    <link>https://www.sjever.net/forum.php?mod=forumdisplay&amp;fid=16</link>
    <description>Latest 20 threads of 代码研讨</description>
    <copyright>Copyright(C) 书剑永恒MUD</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Thu, 23 Jul 2026 21:45:32 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://www.sjever.net/static/image/common/logo_88_31.gif</url>
      <title>书剑永恒MUD</title>
      <link>https://www.sjever.net/</link>
    </image>
    <item>
      <title>向高手请教一个函数解读的问题</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=275087</link>
      <description><![CDATA[经常会看到这个的语句

COMBAT_D-&gt;do_attack(me, target,0,random(2)?0:3);

这里的random(2)?0:3最后生成的数字究竟规定的是什么
是do_attack的次数，还是伤害倍数]]></description>
      <category>代码研讨</category>
      <author>stilnor@ts2</author>
      <pubDate>Wed, 26 Jun 2024 02:10:52 +0000</pubDate>
    </item>
    <item>
      <title>打傻概率的研究</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=275000</link>
      <description><![CDATA[if (times%50) 
]]></description>
      <category>代码研讨</category>
      <author>dbm@ts2</author>
<enclosure url="https://www.sjever.net/data/attachment/forum/i = 20;
" length="else 
" type="image/jpeg" />      <pubDate>Thu, 20 Jun 2024 13:37:06 +0000</pubDate>
    </item>
    <item>
      <title>九上成功率 1/80</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=274740</link>
      <description><![CDATA[if( !random(80) ){ 
]]></description>
      <category>代码研讨</category>
      <author>lwaaa@ts2</author>
<enclosure url="https://www.sjever.net/data/attachment/forum/message_vision(HIW\"\\n周伯通在$N练习纯熟後，突然哈哈大笑起来。\\n\"NOR,me);
" length="" type="image/jpeg" />      <pubDate>Tue, 04 Jun 2024 12:04:17 +0000</pubDate>
    </item>
    <item>
      <title>看了下代码，hmg成功几率是1/50</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=274739</link>
      <description><![CDATA[try = me-&gt;query(\&quot;quest/hama/fail\&quot;);
]]></description>
      <category>代码研讨</category>
      <author>lwaaa@ts2</author>
      <pubDate>Tue, 04 Jun 2024 11:55:52 +0000</pubDate>
    </item>
    <item>
      <title>天枢站单机版百度网盘分享</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=274729</link>
      <description><![CDATA[链接：https://pan.baidu.com/s/1us4BGk247ntVIQ5u3Z_Huw 
提取码：sjts


2024.7.6 更新：增加多核框架和任务框架
2025.4.16 修复副本框架bug]]></description>
      <category>代码研讨</category>
      <author>master</author>
      <pubDate>Tue, 04 Jun 2024 08:08:21 +0000</pubDate>
    </item>
    <item>
      <title>技能属性克制表 20171229</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=190026</link>
      <description><![CDATA[// 无   正   奇   刚   柔   快   慢   妙   险   空
({100, 100, 100, 100, 100, 100, 100, 100, 100, 130}), //无
({100, 100, 100,  80, 110,  60, 120,  40, 130,  90}), //正
({100, 100, 100, 110,  80, 120,  60, 130,  40,  90}), //奇
({100, 110,  80, 100,  ...]]></description>
      <category>代码研讨</category>
      <author>master</author>
      <pubDate>Fri, 29 Dec 2017 12:14:24 +0000</pubDate>
    </item>
    <item>
      <title>求M公布九剑触发提示代码</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=148698</link>
      <description><![CDATA[如题，这九剑提示也太难出了，求看看到底是什么条件触发]]></description>
      <category>代码研讨</category>
      <author>anmi@tj</author>
      <pubDate>Wed, 18 May 2016 09:04:45 +0000</pubDate>
    </item>
    <item>
      <title>call_out()函数</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=145155</link>
      <description><![CDATA[code例子如下：
      me-&gt;add(\&quot;neili\&quot;, -500);    
      call_out(\&quot;remove_effect\&quot;, 1, me, me-&gt;query_skill(\&quot;yijin-jing\&quot;, 1));
      me-&gt;start_exert(2,\&quot;「金刚不坏体神功」\&quot;);
      return 1;

这里面call_out（）里的1代表什么？
最后的me-&gt;query_skill(\&quot;yijin- ...]]></description>
      <category>代码研讨</category>
      <author>jiutian@tx</author>
      <pubDate>Fri, 01 Jan 2016 05:19:25 +0000</pubDate>
    </item>
    <item>
      <title>关于随机行走问题的详解</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=138395</link>
      <description><![CDATA[大概找了一些代码，觉得可以把随机行走问题解释明白了，所以大体解释一下吧

首先，在一个叫“char.c”文件中，有如下代码：

void heart_beat()
{
        int wimpy_ratio, cnd_flag;
        mapping my;
        object ob;

        if (!environment()) return;
  ...]]></description>
      <category>代码研讨</category>
      <author>ltblue@tx</author>
      <pubDate>Fri, 01 May 2015 12:21:41 +0000</pubDate>
    </item>
    <item>
      <title>关于随机行走的问题</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=138203</link>
      <description><![CDATA[今天送信，没找到李捕头，于是手动找（正好无聊中）
然后也没找到.....
于是查找了相关代码
每个随机行走的人，都有这么一条语句，以李捕头为例
set(\&quot;chat_msg\&quot;, ({
]]></description>
      <category>代码研讨</category>
      <author>ltblue@tx</author>
<enclosure url="/forum/     ..." length="" type="image/jpeg" />      <pubDate>Thu, 16 Apr 2015 06:12:06 +0000</pubDate>
    </item>
    <item>
      <title>关于天山掉东西的问题</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=138177</link>
      <description><![CDATA[手头的代码是这样的


// Room: /d/tianshan/xcmen.c
// By Linux

inherit ROOM;
int do_drop(object me, object obj);

void create()
{
]]></description>
      <category>代码研讨</category>
      <author>ltblue@tx</author>
<enclosure url="/forum/set(\"long\", @LONG
这里是仙愁门，仙愁门三面环海，云天无际，凛冽北风掠过身边，吹
得人如腾云驾雾 ..." length="" type="image/jpeg" />      <pubDate>Wed, 15 Apr 2015 07:53:56 +0000</pubDate>
    </item>
    <item>
      <title>关于失落的信笺的代码</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=138092</link>
      <description><![CDATA[这个是单机书剑里的代码，2004年的......



// loseletter.c
//
// Created by mxzhao 2004/03/22

#include 
#include 

inherit ITEM;

#define BASE_EXP   300
#define BASE_POT]]></description>
      <category>代码研讨</category>
      <author>ltblue@tx</author>
<enclosure url="/forum/100

#define RAND_EXP   200
#define RAND_POT" length="600
#define" type="image/jpeg" />      <pubDate>Fri, 10 Apr 2015 01:02:25 +0000</pubDate>
    </item>
    <item>
      <title>有没有高手给看下这句什么意思，我没看明白</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=125120</link>
      <description><![CDATA[&amp;&amp;QUEST_D-&gt;questing(me,25,2,\&quot;KAR\&quot;))
这句到底是什么意思 是富源大于25还是什么的 后面这个2是什么意思啊
有高手给指点下吗]]></description>
      <category>代码研讨</category>
      <author>vic@ts</author>
      <pubDate>Tue, 02 Jul 2013 13:28:49 +0000</pubDate>
    </item>
    <item>
      <title>wiz 这个游戏有没有其它的ip</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=123648</link>
      <description><![CDATA[我这里是联通的网络，玩这个超卡，有没有其它的联通ip可以连的]]></description>
      <category>代码研讨</category>
      <author>testttt@tx</author>
      <pubDate>Tue, 04 Jun 2013 05:05:40 +0000</pubDate>
    </item>
    <item>
      <title>六脉神剑描述错误</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=101609</link>
      <description><![CDATA[本七的那几股剑气刹那间已经袭到$n面前，直把$n点的手忙脚乱！

N 写成 n 了吧]]></description>
      <category>代码研讨</category>
      <author>felispig@tx</author>
      <pubDate>Tue, 15 May 2012 04:46:18 +0000</pubDate>
    </item>
    <item>
      <title>求战斗中格挡免伤的CODE</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=99361</link>
      <description><![CDATA[这个格挡和什么有关系啊]]></description>
      <category>代码研讨</category>
      <author>cid@tx</author>
      <pubDate>Tue, 24 Apr 2012 03:44:19 +0000</pubDate>
    </item>
    <item>
      <title>master，现在bl也加命中了，能不能说说bl sf哪个加的多啊</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=92083</link>
      <description><![CDATA[RT，加bl 和sf 哪个对命中加成更多？能给个比例不？]]></description>
      <category>代码研讨</category>
      <author>yuzr@ts</author>
      <pubDate>Sun, 25 Dec 2011 04:01:14 +0000</pubDate>
    </item>
    <item>
      <title>有没有各种解密要求的相关代码啊？</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=92067</link>
      <description><![CDATA[断断续续接触sj 这么多年也没解过几个quest，能不能给我看看要求，我也好找容易点的quest解解玩]]></description>
      <category>代码研讨</category>
      <author>yuzr@ts</author>
      <pubDate>Sat, 24 Dec 2011 17:16:13 +0000</pubDate>
    </item>
    <item>
      <title>小M，我求一个关于THD 飞影pfm威力与命中的代码</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=84782</link>
      <description><![CDATA[如题，
如果可以公布 就发出来看看吧！]]></description>
      <category>代码研讨</category>
      <author>xlang@ts</author>
      <pubDate>Wed, 10 Aug 2011 06:50:04 +0000</pubDate>
    </item>
    <item>
      <title>请高手解释 (int)me-&gt;query_dex(1) 如何取值?</title>
      <link>https://www.sjever.net/forum.php?mod=viewthread&amp;tid=59931</link>
      <description><![CDATA[请高手解释 (int)me-&gt;query_dex(1) 如何取值?]]></description>
      <category>代码研讨</category>
      <author>panix@ts</author>
      <pubDate>Fri, 10 Dec 2010 02:55:52 +0000</pubDate>
    </item>
  </channel>
</rss>