mud_sanc 板


LINE

我说明一下大致的做法。 首先,我刚刚看线上有 242 位玩家角色。 mapping allskill=([]); mixed usr=users(),skills=({}); object ppl; string msg="",sk; 对每一个玩家的每一个技能做登录: foreach(ppl in usr) { if((int)ppl->query("level")<1) continue; skills=keys((mapping)ppl->query("skill")); foreach(sk in skills) if((int)allskill[sk]<ppl->query("skill/"+sk)) allskill[sk]=((int)ppl->query("skill/"+sk)/100)*100; } 然後再做列表: skills=keys(allskill); foreach(sk in skills) msg+=sprintf("%-30s : %4d\n",sk,allskill[sk]); this_player()->more(explode(msg,"\n"),1,1); 底下是以 running code 产生的列表结果 holyball spell : 9900 girl fist : 9900 int control : 1000 zulai fist : 9900 holywar : 3000 air fist : 100 deadly-shiv : 2000 funeral-wind : 100 pen : 9900 sky-killer : 600 steal : 1000 seal spell : 900 war-dragon axe : 9900 holybell : 3000 swordmaster : 2000 goldfield : 1500 stone-force : 1000 blade heart : 9900 wind spell : 1600 thunder spell : 3100 icefire wand : 9900 time control : 900 bakunetsu-arm : 100 snow hands : 9900 burnbloom canto : 4900 pacify spell : 1000 pactio : 100 shutskill : 1000 blizzard : 100 shadow fist : 9900 return lance : 9900 hammer : 9900 firelance : 2400 enchant : 1500 lancemaaster : 2000 sankalekouken : 9900 dragon-recipe : 1000 body control : 1000 overload lance : 9900 flyinsky blade : 1000 longsee spell : 1500 windlance : 2400 creator-key : 1500 shuttindie : 100 waver : 100 watershield : 1000 lift-sprink : 1000 pray : 3000 burn-city lance : 9900 knight heart : 9900 gate : 2600 rainbow slash : 9900 syukuchi : 200 talent-arouse : 1500 clerical heart : 9900 biotech : 2000 sneak : 4000 magic-cycle : 1000 alchemist : 1000 holy body : 3000 parry : 9900 daggermaster : 2000 drafight_power : 100 wildnerve : 100 wu-lin axe : 9900 chuck-lance : 2000 wand : 9900 pkdog rodmaster : 1000 4-season slash : 2000 4->1 slash : 500 thief heart : 9900 magnum_punch : 3000 leadership : 1500 glamorous : 2400 explorer : 100 detoxify : 1000 evilmonster : 100 barefist : 9900 affliction : 9900 blader heart : 9900 absorb : 1600 gigabrake : 100 devilpower : 1000 ride skill : 4000 battle dagger : 9900 bless : 9900 grieffing : 1000 starlight wand : 9900 encasement : 100 cleanse : 9900 cyclone hands : 9900 dragoon : 100 interchange : 100 confine spell : 3000 evil-war axe : 1000 kamekameha : 900 fire axe : 9900 fixskill : 1000 ridespurt : 1000 drink fist : 9900 magic heart : 9900 devil-light : 1000 return spell : 3000 disaster-wall : 3000 colder fist : 2000 damage : 9900 duality-unite : 3000 sanctuary : 3000 kaioken : 1000 fighting-air : 600 runes : 9000 berserk : 100 earthaxe : 1000 sagepower : 1700 handpower : 200 bow : 9900 burning hands : 9900 dark-fog : 100 sunset blade : 9900 snow-moon blade : 9900 6-cold blade : 9900 counter : 200 burnperfume : 2400 hellfire : 900 evil destroy : 2000 hakendisdulu : 500 gy-rod : 2400 swallow-mai : 9900 bousou : 100 shooter : 9900 sand hands : 9900 legendary : 2000 frozen-orb : 3000 whip : 9900 claw : 9900 powerup : 3000 armor spell : 1500 wild heart : 500 entrench : 3000 sacramenti : 3000 snow-flower : 500 spiriten : 100 axe : 9900 atfield : 9900 hafe blade : 9900 illusion spell : 1500 sword : 9900 speed-cast : 3000 literature : 1500 crack slash : 100 greencloud fist : 2900 myskill : 9900 tissuell : 1500 whirl-shield : 1000 swimskill : 100 harp : 1000 japan blade : 1000 dragon fist : 9900 pure power : 3000 light wall : 100 magnificat : 3000 vitality spell : 1500 pkdog rod : 9900 thunder guard : 1000 fister heart : 9900 bigcross : 900 dragon-paw fist : 9900 slasher heart : 9900 holy power : 3000 phoenix-recipe : 1000 holy shield : 3000 vapor calligraphy : 2000 lance : 9900 cyclone-air : 600 moon ray : 600 shield : 2400 earth spell : 2000 rideto : 100 fosan foot : 9900 ice spell : 3000 feather fist : 2000 vampire touch : 300 heavry : 4200 sleep-cloud : 100 lightning blade : 9900 taichi fist : 9900 soulin fist : 9900 firecloud fist : 2000 axemaster : 2400 SM : 9900 knight slash : 9900 furiousaxe : 2400 tyoumabaka : 100 round-on : 200 dagger : 9900 angry-fire : 100 justice heart : 900 abanlance : 2400 sleep spell : 1500 avan slash : 1200 staff : 9900 drafight : 1000 multi-attack : 2000 thunder fist : 2000 wind fist : 9900 riot-supressing rod : 9900 burnedge chapter : 9900 backstab : 2000 heal spell : 3000 6-vessels swordray : 9900 flying-sky blade : 100 fighter heart : 9900 egingin : 500 shadow teeth : 9900 blademaster : 2400 king-road : 9900 magic missile : 9900 hardskill : 100 stigmata : 3000 nine-sword : 200 spirit-melody : 1000 light spell : 3000 adventure heart : 9900 light aura : 3000 gamble : 500 god-damn : 3000 powershield : 1500 weaponmaker : 500 toothstab : 9900 drift volume : 9900 silence spell : 1000 gun : 9900 destroy spell : 600 electric hands : 9900 lancemaster : 2400 dragonsword : 1000 float spell : 1500 blood-feast : 1000 earthquake : 1000 fire spell : 3000 bloody-scraid : 900 dash : 100 crazydragon blade : 900 judo : 9900 water-lotus slash : 9900 rod : 9900 fly-cloud wand : 9900 blade : 9900 life-sprink : 9900 phantom-strike : 2400 kendo : 9900 violent-shout : 2000 detoxify spell : 1500 buddha-seal fist : 1100 wudon slash : 9900 ragnarok : 3000 elf-wings : 100 watou blade : 1000 flower rod : 9900 multi-cast : 3000 dodge : 4000 rodmaster : 2400 know-maze : 100 encourage : 3000 目前似乎共 26x 个技能,实际上登录於 skill_stat.c 的技能 数则是 25x 个,扣掉部份「我身上的」错误技能,差不多match (没记错的话上限值 400 个左右,以前最高曾到 45x 个然後就 发生 error,因此才大砍冗余技能,目前技能量则在安全的水位) 当然实际上这麽做会有问题的,以进阶法师来说不是所有的进阶 法师都把技能练到满了,因此上面部份技能还需修正。 但是大部份都是对的,这时就可利用这一特性,「只需手动修正 几个错的即可」。 这东西将来会写成 /open/cmds/database.c,并写一个专门的指 令来控制这个房间,再让 skills 指令读取这个物件来取得资料 Laechan --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.61.157.53
1F:→ longhairpan :或是不动sk,现有的fist/blade/slash/force都有?跟all 01/10 10:11
2F:→ longhairpan :里面都有[满]这个资讯, cast目前没有? 只有all 01/10 10:12
3F:→ longhairpan :把en ?及en all也加上那些显示 01/10 10:15
4F:→ longhairpan :然後再加上对应的基本sk的技能值及练满显示 01/10 10:16
5F:→ longhairpan :或是乾脆再加个basic ?,basic all应该也差不多都有了 01/10 10:16
6F:→ laechan :写在各指令的?及all,是分散定义在各指令内的 01/10 11:51
7F:→ laechan :我这篇这个方法比较适用於 database.c 这种架构 01/10 11:51







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:WOW站内搜寻

TOP